Lines Matching refs:namespace

165 					" split the last \ segment as a classname, everything else is the namespace
167 let namespace = join(classname_parts[0:-2], '\')
170 let namespace = '\'
172 let classlocation = phpcomplete#GetClassLocation(classname, namespace)
225 …" completes classnames from tags within the already typed out namespace using the "namespace" fiel…
230 …" class and namespace names are always considered absoltute in use ... expressions, leading slash …
253 if has_key(tag, 'namespace')
260 …elseif has_key(tag, 'namespace') && (tag.kind ==? 'c' || tag.kind ==? 'i' || tag.kind ==? 't') && …
266 " if it seems that the tags file have namespace information we can safely throw
361 …if !has_key(tag, 'namespace') || tag.namespace ==? a:current_namespace || tag.namespace ==? namesp…
362 if has_key(tag, 'namespace')
363 let full_name = tag.namespace.'\'.tag.name " absolute namespaced name (without leading '\')
376 …" patched ctag provides absolute namespace names as tag name, namespace tags dont have namespace f…
383 …" so if it's a sub namespace of a renamed namespace, just use the typed in segments in place of th…
385 " you have a namespace NS1\SUBNS as SUB
386 " you have a sub-sub-namespace NS1\SUBNS\SUBSUB
414 if !has_key(tag, 'namespace')
417 if tag.namespace ==? namespace_for_tag
427 if !has_key(tag, 'namespace')
430 if tag.namespace ==? namespace_for_tag
442 if !has_key(tag, 'namespace')
445 if tag.namespace ==? namespace_for_tag
791 …let filterstr = 'v:val =~? "\\(class\\|namespace\\)\\s\\+[a-zA-Z_\\x7f-\\xff][a-zA-Z_0-9\\x7f-\\xf…
827 if has_key(tag, 'namespace')
831 …" match base without the namespace part for namespaced base but not namespaced tags, for tagfiles …
832 …if !has_key(tag, 'namespace') && index(kinds, tag.kind) != -1 && stridx(tolower(tag.name), tolower…
835 …if has_key(tag, 'namespace') && index(kinds, tag.kind) != -1 && tag.namespace ==? namespace_for_cl…
836 let full_name = tag.namespace.'\'.tag.name " absolute namespaced name (without leading '\')
840 " if there was a tag with namespace field, assume tag files with namespace support, so the matches
841 " without a namespace field are in the global namespace so if there were namespace in the base
1339 " Tries to get the classname and namespace for a chained method call like:
1389 " Get Structured information of all classes and subclasses including namespace and includes
1417 " there's a namespace in the type, threat the type as FQCN
1422 " check for renamed namespace in imports
1427 " no namespace in the type, threat it as a relative classname
1430 if has_key(classstructure.imports[returnclass], 'namespace')
1431 let fullnamespace = classstructure.imports[returnclass].namespace
1910 function! phpcomplete#GetClassLocation(classname, namespace) " {{{ argument
1912 …if has_key(g:php_builtin_classes, tolower(a:classname)) && (a:namespace == '' || a:namespace == '\…
1915 …if has_key(g:php_builtin_interfaces, tolower(a:classname)) && (a:namespace == '' || a:namespace ==…
1919 if a:namespace == '' || a:namespace == '\'
1922 let search_namespace = tolower(a:namespace)
1945 if !has_key(tag, 'namespace')
1948 if search_namespace == tolower(tag.namespace)
1962 function! phpcomplete#GetFunctionLocation(function_name, namespace) " {{{ argument
1980 if a:namespace == '' || a:namespace == '\'
1983 let search_namespace = tolower(a:namespace)
1990 if !has_key(tag, 'namespace')
1993 if search_namespace == tolower(tag.namespace)
2058 …" returns dictionary containing content, namespace and imports for the class and all parent classe…
2064 " namespace: 'NS\Foo',
2072 " namespace: 'NS\Bar',
2168 \ 'namespace': current_namespace,
2183 let [class, namespace] = phpcomplete#ExpandClassName(class, current_namespace, imports)
2184 if namespace == ''
2185 let namespace = '\'
2187 let classlocation = phpcomplete#GetClassLocation(class, namespace)
2198 …elseif tolower(current_namespace) == tolower(namespace) && match(join(a:file_lines, "\n"), '\c\(cl…
2267 \ 'namespace': '',
2562 if line =~? '^\(<?php\)\?\s*namespace\s*'.namespace_name_pattern
2563 …let current_namespace = matchstr(line, '\c^\(<?php\)\?\s*namespace\s*\zs'.namespace_name_pattern.'…
2613 " can be a namespace name as is, or can be a tagname at the end with a namespace
2617 " if there's a namespace with the name of the import
2624 " if the name matches with the extracted classname and namespace
2626 if has_key(tag, 'namespace')
2628 if tag.namespace == namespace_for_classes
2636 let tag.namespace = namespace_for_classes
2648 " if no tags are found, extract the namespace from the name
2652 let import['namespace'] = ns
2668 " search for the first matching namespace, class, interface with no namespace
2669 …if !has_key(tag, 'namespace') && (tag.kind == 'n' || tag.kind == 'c' || tag.kind == 'i' || tag.kin…
2729 …let namespace = has_key(a:imports[a:classname], 'namespace') ? a:imports[a:classname].namespace : …
2730 return [a:imports[a:classname].name, namespace]
2733 " try to find relative namespace in imports, imported names takes precedence over
2734 " current namespace when resolving relative namespaced class names
2739 let namespace = join(classname_parts[0:-2], '\')
2741 return [classname, namespace]
2745 " no imported class or namespace matched, expand with the current namespace
2746 let namespace = ''
2748 " if the classname have namespaces in in or we are in a namespace
2750 " add current namespace to the a:classname
2757 " split classname to classname and namespace
2760 let namespace = join(classname_parts[0:-2], '\')
2764 return [classname, namespace]
2828namespace]] | void','return_type':'void'},'addChild':{'signature':'string $name [, string $value […