1
0
Fork 0

Append backlash to namespace identifer in IdentifierResolver.

Refs #400.
pull/437/head
ADmad 2017-07-14 02:31:36 +05:30
parent 35f33c8c91
commit 3d6682a12c
47 changed files with 140 additions and 140 deletions

View File

@ -1109,10 +1109,10 @@ class DefinitionResolver
} }
// INPUT OUTPUT: // INPUT OUTPUT:
// namespace A\B; A\B // namespace A\B; A\B\
if ($node instanceof Node\Statement\NamespaceDefinition && $node->name instanceof Node\QualifiedName) { if ($node instanceof Node\Statement\NamespaceDefinition && $node->name instanceof Node\QualifiedName) {
$name = (string) PhpParser\ResolvedName::buildName($node->name->nameParts, $node->getFileContents()); $name = (string) PhpParser\ResolvedName::buildName($node->name->nameParts, $node->getFileContents());
return $name === "" ? null : $name; return $name === "" ? null : $name . '\\';
} }
// INPUT OUTPUT: // INPUT OUTPUT:

View File

@ -21,7 +21,7 @@ class DefinitionCollectorTest extends TestCase
$defNodes = $this->collectDefinitions($path); $defNodes = $this->collectDefinitions($path);
$this->assertEquals([ $this->assertEquals([
'TestNamespace', 'TestNamespace\\',
'TestNamespace\\TEST_CONST', 'TestNamespace\\TEST_CONST',
'TestNamespace\\TestClass', 'TestNamespace\\TestClass',
'TestNamespace\\TestClass::TEST_CLASS_CONST', 'TestNamespace\\TestClass::TEST_CLASS_CONST',
@ -60,8 +60,8 @@ class DefinitionCollectorTest extends TestCase
$path = realpath(__DIR__ . '/../../fixtures/references.php'); $path = realpath(__DIR__ . '/../../fixtures/references.php');
$defNodes = $this->collectDefinitions($path); $defNodes = $this->collectDefinitions($path);
$this->assertEquals(['TestNamespace', 'TestNamespace\\whatever()'], array_keys($defNodes)); $this->assertEquals(['TestNamespace\\', 'TestNamespace\\whatever()'], array_keys($defNodes));
$this->assertInstanceOf(Node\Statement\NamespaceDefinition::class, $defNodes['TestNamespace']); $this->assertInstanceOf(Node\Statement\NamespaceDefinition::class, $defNodes['TestNamespace\\']);
$this->assertInstanceOf(Node\Statement\FunctionDeclaration::class, $defNodes['TestNamespace\\whatever()']); $this->assertInstanceOf(Node\Statement\FunctionDeclaration::class, $defNodes['TestNamespace\\whatever()']);
} }

View File

@ -18,7 +18,7 @@ class DocumentSymbolTest extends ServerTestCase
$result = $this->textDocument->documentSymbol(new TextDocumentIdentifier($uri))->wait(); $result = $this->textDocument->documentSymbol(new TextDocumentIdentifier($uri))->wait();
// @codingStandardsIgnoreStart // @codingStandardsIgnoreStart
$this->assertEquals([ $this->assertEquals([
new SymbolInformation('TestNamespace', SymbolKind::NAMESPACE, $this->getDefinitionLocation('TestNamespace'), ''), new SymbolInformation('TestNamespace', SymbolKind::NAMESPACE, $this->getDefinitionLocation('TestNamespace'), 'TestNamespace'),
new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), 'TestNamespace'), new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), 'TestNamespace'),
new SymbolInformation('TestClass', SymbolKind::CLASS_, $this->getDefinitionLocation('TestNamespace\\TestClass'), 'TestNamespace'), new SymbolInformation('TestClass', SymbolKind::CLASS_, $this->getDefinitionLocation('TestNamespace\\TestClass'), 'TestNamespace'),
new SymbolInformation('TEST_CLASS_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TestClass::TEST_CLASS_CONST'), 'TestNamespace\\TestClass'), new SymbolInformation('TEST_CLASS_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TestClass::TEST_CLASS_CONST'), 'TestNamespace\\TestClass'),

View File

@ -30,7 +30,7 @@ class SymbolTest extends ServerTestCase
// @codingStandardsIgnoreStart // @codingStandardsIgnoreStart
$this->assertEquals([ $this->assertEquals([
new SymbolInformation('TestNamespace', SymbolKind::NAMESPACE, new Location($referencesUri, new Range(new Position(2, 0), new Position(2, 24))), ''), new SymbolInformation('TestNamespace', SymbolKind::NAMESPACE, new Location($referencesUri, new Range(new Position(2, 0), new Position(2, 24))), 'TestNamespace'),
// Namespaced // Namespaced
new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), 'TestNamespace'), new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), 'TestNamespace'),
new SymbolInformation('TestClass', SymbolKind::CLASS_, $this->getDefinitionLocation('TestNamespace\\TestClass'), 'TestNamespace'), new SymbolInformation('TestClass', SymbolKind::CLASS_, $this->getDefinitionLocation('TestNamespace\\TestClass'), 'TestNamespace'),
@ -65,7 +65,7 @@ class SymbolTest extends ServerTestCase
new SymbolInformation('unusedMethod', SymbolKind::METHOD, $this->getDefinitionLocation('UnusedClass::unusedMethod'), 'UnusedClass'), new SymbolInformation('unusedMethod', SymbolKind::METHOD, $this->getDefinitionLocation('UnusedClass::unusedMethod'), 'UnusedClass'),
new SymbolInformation('whatever', SymbolKind::FUNCTION, $this->getDefinitionLocation('whatever()'), ''), new SymbolInformation('whatever', SymbolKind::FUNCTION, $this->getDefinitionLocation('whatever()'), ''),
new SymbolInformation('SecondTestNamespace', SymbolKind::NAMESPACE, $this->getDefinitionLocation('SecondTestNamespace'), ''), new SymbolInformation('SecondTestNamespace', SymbolKind::NAMESPACE, $this->getDefinitionLocation('SecondTestNamespace'), 'SecondTestNamespace'),
], $result); ], $result);
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd
} }

View File

@ -17,8 +17,8 @@
] ]
}, },
"definitions": { "definitions": {
"Fixtures\\Prophecy": { "Fixtures\\Prophecy\\": {
"fqn": "Fixtures\\Prophecy", "fqn": "Fixtures\\Prophecy\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -30,7 +30,7 @@
"location": { "location": {
"uri": "./WithReturnTypehints.php" "uri": "./WithReturnTypehints.php"
}, },
"containerName": "Fixtures" "containerName": "Fixtures\\Prophecy"
}, },
"type": null, "type": null,
"declarationLine": "namespace Fixtures\\Prophecy;", "declarationLine": "namespace Fixtures\\Prophecy;",

View File

@ -1,8 +1,8 @@
{ {
"references": [], "references": [],
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -14,7 +14,7 @@
"location": { "location": {
"uri": "./anonymousClassMembersShouldNotBeSymbols.php" "uri": "./anonymousClassMembersShouldNotBeSymbols.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./caseStatement1.php" "uri": "./caseStatement1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"TestNamespace": { "TestNamespace\\": {
"fqn": "TestNamespace", "fqn": "TestNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./classDefinition1.php" "uri": "./classDefinition1.php"
}, },
"containerName": "" "containerName": "TestNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace TestNamespace;", "declarationLine": "namespace TestNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"TestNamespace": { "TestNamespace\\": {
"fqn": "TestNamespace", "fqn": "TestNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./classProperty1.php" "uri": "./classProperty1.php"
}, },
"containerName": "" "containerName": "TestNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace TestNamespace;", "declarationLine": "namespace TestNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./constants.php" "uri": "./constants.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./constants2.php" "uri": "./constants2.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./constants3.php" "uri": "./constants3.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./constants4.php" "uri": "./constants4.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./constants5.php" "uri": "./constants5.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -1,8 +1,8 @@
{ {
"references": [], "references": [],
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -14,7 +14,7 @@
"location": { "location": {
"uri": "./docBlocksOnNamespaceDefinition.php" "uri": "./docBlocksOnNamespaceDefinition.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./exceptions1.php" "uri": "./exceptions1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./ifStatement1.php" "uri": "./ifStatement1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"B": { "B\\": {
"fqn": "B", "fqn": "B\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./magicConstantsShouldBeGlobal.php" "uri": "./magicConstantsShouldBeGlobal.php"
}, },
"containerName": "" "containerName": "B"
}, },
"type": null, "type": null,
"declarationLine": "namespace B;", "declarationLine": "namespace B;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./memberAccess1.php" "uri": "./memberAccess1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./memberAccess2.php" "uri": "./memberAccess2.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -23,8 +23,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -36,7 +36,7 @@
"location": { "location": {
"uri": "./memberAccess3.php" "uri": "./memberAccess3.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -14,8 +14,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -27,7 +27,7 @@
"location": { "location": {
"uri": "./memberAccess4.php" "uri": "./memberAccess4.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./memberAccess5.php" "uri": "./memberAccess5.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./memberCall1.php" "uri": "./memberCall1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -14,8 +14,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace1": { "MyNamespace1\\": {
"fqn": "MyNamespace1", "fqn": "MyNamespace1\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -27,7 +27,7 @@
"location": { "location": {
"uri": "./multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "" "containerName": "MyNamespace1"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace1;", "declarationLine": "namespace MyNamespace1;",
@ -72,8 +72,8 @@
"declarationLine": "function b() {", "declarationLine": "function b() {",
"documentation": null "documentation": null
}, },
"MyNamespace2": { "MyNamespace2\\": {
"fqn": "MyNamespace2", "fqn": "MyNamespace2\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -85,7 +85,7 @@
"location": { "location": {
"uri": "./multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "" "containerName": "MyNamespace2"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace2;", "declarationLine": "namespace MyNamespace2;",

View File

@ -14,8 +14,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace1": { "MyNamespace1\\": {
"fqn": "MyNamespace1", "fqn": "MyNamespace1\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -27,7 +27,7 @@
"location": { "location": {
"uri": "./namespaces2.php" "uri": "./namespaces2.php"
}, },
"containerName": "" "containerName": "MyNamespace1"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace1;", "declarationLine": "namespace MyNamespace1;",

View File

@ -23,8 +23,8 @@
] ]
}, },
"definitions": { "definitions": {
"B": { "B\\": {
"fqn": "B", "fqn": "B\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -36,7 +36,7 @@
"location": { "location": {
"uri": "./namespaces5.php" "uri": "./namespaces5.php"
}, },
"containerName": "" "containerName": "B"
}, },
"type": null, "type": null,
"declarationLine": "namespace B;", "declarationLine": "namespace B;",

View File

@ -1,8 +1,8 @@
{ {
"references": [], "references": [],
"definitions": { "definitions": {
"A\\B": { "A\\B\\": {
"fqn": "A\\B", "fqn": "A\\B\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -14,7 +14,7 @@
"location": { "location": {
"uri": "./namespaces6.php" "uri": "./namespaces6.php"
}, },
"containerName": "A" "containerName": "A\\B"
}, },
"type": null, "type": null,
"declarationLine": "namespace A \\ B;", "declarationLine": "namespace A \\ B;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"LanguageServer\\Tests\\Utils": { "LanguageServer\\Tests\\Utils\\": {
"fqn": "LanguageServer\\Tests\\Utils", "fqn": "LanguageServer\\Tests\\Utils\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./namespaces8.php" "uri": "./namespaces8.php"
}, },
"containerName": "LanguageServer\\Tests" "containerName": "LanguageServer\\Tests\\Utils"
}, },
"type": null, "type": null,
"declarationLine": "namespace LanguageServer\\Tests\\Utils;", "declarationLine": "namespace LanguageServer\\Tests\\Utils;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./objectCreation.php" "uri": "./objectCreation.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./objectCreation2.php" "uri": "./objectCreation2.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./param1.php" "uri": "./param1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./parent1.php" "uri": "./parent1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./parent3.php" "uri": "./parent3.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"TestNamespace": { "TestNamespace\\": {
"fqn": "TestNamespace", "fqn": "TestNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./returnType.php" "uri": "./returnType.php"
}, },
"containerName": "" "containerName": "TestNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace TestNamespace;", "declarationLine": "namespace TestNamespace;",

View File

@ -8,8 +8,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -21,7 +21,7 @@
"location": { "location": {
"uri": "./scopedPropertyAccess.php" "uri": "./scopedPropertyAccess.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./scopedPropertyAccess2.php" "uri": "./scopedPropertyAccess2.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./self1.php" "uri": "./self1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./self2.php" "uri": "./self2.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./self3.php" "uri": "./self3.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -20,8 +20,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -33,7 +33,7 @@
"location": { "location": {
"uri": "./self4.php" "uri": "./self4.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./self5.php" "uri": "./self5.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./static1.php" "uri": "./static1.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./static2.php" "uri": "./static2.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -11,8 +11,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -24,7 +24,7 @@
"location": { "location": {
"uri": "./static3.php" "uri": "./static3.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"MyNamespace": { "MyNamespace\\": {
"fqn": "MyNamespace", "fqn": "MyNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./static4.php" "uri": "./static4.php"
}, },
"containerName": "" "containerName": "MyNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace MyNamespace;", "declarationLine": "namespace MyNamespace;",

View File

@ -5,8 +5,8 @@
] ]
}, },
"definitions": { "definitions": {
"SomeNamespace": { "SomeNamespace\\": {
"fqn": "SomeNamespace", "fqn": "SomeNamespace\\",
"extends": [], "extends": [],
"isGlobal": true, "isGlobal": true,
"roamed": false, "roamed": false,
@ -18,7 +18,7 @@
"location": { "location": {
"uri": "./testQualifiedNameOutsideOfNamespace.php" "uri": "./testQualifiedNameOutsideOfNamespace.php"
}, },
"containerName": "" "containerName": "SomeNamespace"
}, },
"type": null, "type": null,
"declarationLine": "namespace SomeNamespace { }", "declarationLine": "namespace SomeNamespace { }",