parent
35f33c8c91
commit
3d6682a12c
|
@ -1109,10 +1109,10 @@ class DefinitionResolver
|
|||
}
|
||||
|
||||
// INPUT OUTPUT:
|
||||
// namespace A\B; A\B
|
||||
// namespace A\B; A\B\
|
||||
if ($node instanceof Node\Statement\NamespaceDefinition && $node->name instanceof Node\QualifiedName) {
|
||||
$name = (string) PhpParser\ResolvedName::buildName($node->name->nameParts, $node->getFileContents());
|
||||
return $name === "" ? null : $name;
|
||||
return $name === "" ? null : $name . '\\';
|
||||
}
|
||||
|
||||
// INPUT OUTPUT:
|
||||
|
|
|
@ -21,7 +21,7 @@ class DefinitionCollectorTest extends TestCase
|
|||
$defNodes = $this->collectDefinitions($path);
|
||||
|
||||
$this->assertEquals([
|
||||
'TestNamespace',
|
||||
'TestNamespace\\',
|
||||
'TestNamespace\\TEST_CONST',
|
||||
'TestNamespace\\TestClass',
|
||||
'TestNamespace\\TestClass::TEST_CLASS_CONST',
|
||||
|
@ -60,8 +60,8 @@ class DefinitionCollectorTest extends TestCase
|
|||
$path = realpath(__DIR__ . '/../../fixtures/references.php');
|
||||
$defNodes = $this->collectDefinitions($path);
|
||||
|
||||
$this->assertEquals(['TestNamespace', 'TestNamespace\\whatever()'], array_keys($defNodes));
|
||||
$this->assertInstanceOf(Node\Statement\NamespaceDefinition::class, $defNodes['TestNamespace']);
|
||||
$this->assertEquals(['TestNamespace\\', 'TestNamespace\\whatever()'], array_keys($defNodes));
|
||||
$this->assertInstanceOf(Node\Statement\NamespaceDefinition::class, $defNodes['TestNamespace\\']);
|
||||
$this->assertInstanceOf(Node\Statement\FunctionDeclaration::class, $defNodes['TestNamespace\\whatever()']);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class DocumentSymbolTest extends ServerTestCase
|
|||
$result = $this->textDocument->documentSymbol(new TextDocumentIdentifier($uri))->wait();
|
||||
// @codingStandardsIgnoreStart
|
||||
$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('TestClass', SymbolKind::CLASS_, $this->getDefinitionLocation('TestNamespace\\TestClass'), 'TestNamespace'),
|
||||
new SymbolInformation('TEST_CLASS_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TestClass::TEST_CLASS_CONST'), 'TestNamespace\\TestClass'),
|
||||
|
|
|
@ -30,7 +30,7 @@ class SymbolTest extends ServerTestCase
|
|||
|
||||
// @codingStandardsIgnoreStart
|
||||
$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
|
||||
new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), '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('whatever', SymbolKind::FUNCTION, $this->getDefinitionLocation('whatever()'), ''),
|
||||
|
||||
new SymbolInformation('SecondTestNamespace', SymbolKind::NAMESPACE, $this->getDefinitionLocation('SecondTestNamespace'), ''),
|
||||
new SymbolInformation('SecondTestNamespace', SymbolKind::NAMESPACE, $this->getDefinitionLocation('SecondTestNamespace'), 'SecondTestNamespace'),
|
||||
], $result);
|
||||
// @codingStandardsIgnoreEnd
|
||||
}
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"Fixtures\\Prophecy": {
|
||||
"fqn": "Fixtures\\Prophecy",
|
||||
"Fixtures\\Prophecy\\": {
|
||||
"fqn": "Fixtures\\Prophecy\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -30,7 +30,7 @@
|
|||
"location": {
|
||||
"uri": "./WithReturnTypehints.php"
|
||||
},
|
||||
"containerName": "Fixtures"
|
||||
"containerName": "Fixtures\\Prophecy"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace Fixtures\\Prophecy;",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"references": [],
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -14,7 +14,7 @@
|
|||
"location": {
|
||||
"uri": "./anonymousClassMembersShouldNotBeSymbols.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./caseStatement1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"TestNamespace": {
|
||||
"fqn": "TestNamespace",
|
||||
"TestNamespace\\": {
|
||||
"fqn": "TestNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./classDefinition1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "TestNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace TestNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"TestNamespace": {
|
||||
"fqn": "TestNamespace",
|
||||
"TestNamespace\\": {
|
||||
"fqn": "TestNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./classProperty1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "TestNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace TestNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./constants.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./constants2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./constants3.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./constants4.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./constants5.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"references": [],
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -14,7 +14,7 @@
|
|||
"location": {
|
||||
"uri": "./docBlocksOnNamespaceDefinition.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./exceptions1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./ifStatement1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"B": {
|
||||
"fqn": "B",
|
||||
"B\\": {
|
||||
"fqn": "B\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./magicConstantsShouldBeGlobal.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "B"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace B;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./memberAccess1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./memberAccess2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -36,7 +36,7 @@
|
|||
"location": {
|
||||
"uri": "./memberAccess3.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -27,7 +27,7 @@
|
|||
"location": {
|
||||
"uri": "./memberAccess4.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./memberAccess5.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./memberCall1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace1": {
|
||||
"fqn": "MyNamespace1",
|
||||
"MyNamespace1\\": {
|
||||
"fqn": "MyNamespace1\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -27,7 +27,7 @@
|
|||
"location": {
|
||||
"uri": "./multipleNamespaces.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace1"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace1;",
|
||||
|
@ -72,8 +72,8 @@
|
|||
"declarationLine": "function b() {",
|
||||
"documentation": null
|
||||
},
|
||||
"MyNamespace2": {
|
||||
"fqn": "MyNamespace2",
|
||||
"MyNamespace2\\": {
|
||||
"fqn": "MyNamespace2\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -85,7 +85,7 @@
|
|||
"location": {
|
||||
"uri": "./multipleNamespaces.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace2"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace2;",
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace1": {
|
||||
"fqn": "MyNamespace1",
|
||||
"MyNamespace1\\": {
|
||||
"fqn": "MyNamespace1\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -27,7 +27,7 @@
|
|||
"location": {
|
||||
"uri": "./namespaces2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace1"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace1;",
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"B": {
|
||||
"fqn": "B",
|
||||
"B\\": {
|
||||
"fqn": "B\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -36,7 +36,7 @@
|
|||
"location": {
|
||||
"uri": "./namespaces5.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "B"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace B;",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"references": [],
|
||||
"definitions": {
|
||||
"A\\B": {
|
||||
"fqn": "A\\B",
|
||||
"A\\B\\": {
|
||||
"fqn": "A\\B\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -14,7 +14,7 @@
|
|||
"location": {
|
||||
"uri": "./namespaces6.php"
|
||||
},
|
||||
"containerName": "A"
|
||||
"containerName": "A\\B"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace A \\ B;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"LanguageServer\\Tests\\Utils": {
|
||||
"fqn": "LanguageServer\\Tests\\Utils",
|
||||
"LanguageServer\\Tests\\Utils\\": {
|
||||
"fqn": "LanguageServer\\Tests\\Utils\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./namespaces8.php"
|
||||
},
|
||||
"containerName": "LanguageServer\\Tests"
|
||||
"containerName": "LanguageServer\\Tests\\Utils"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace LanguageServer\\Tests\\Utils;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./objectCreation.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./objectCreation2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./param1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./parent1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./parent3.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"TestNamespace": {
|
||||
"fqn": "TestNamespace",
|
||||
"TestNamespace\\": {
|
||||
"fqn": "TestNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./returnType.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "TestNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace TestNamespace;",
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -21,7 +21,7 @@
|
|||
"location": {
|
||||
"uri": "./scopedPropertyAccess.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./scopedPropertyAccess2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./self1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./self2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./self3.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -33,7 +33,7 @@
|
|||
"location": {
|
||||
"uri": "./self4.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./self5.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./static1.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./static2.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -24,7 +24,7 @@
|
|||
"location": {
|
||||
"uri": "./static3.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"MyNamespace": {
|
||||
"fqn": "MyNamespace",
|
||||
"MyNamespace\\": {
|
||||
"fqn": "MyNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./static4.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "MyNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace MyNamespace;",
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
]
|
||||
},
|
||||
"definitions": {
|
||||
"SomeNamespace": {
|
||||
"fqn": "SomeNamespace",
|
||||
"SomeNamespace\\": {
|
||||
"fqn": "SomeNamespace\\",
|
||||
"extends": [],
|
||||
"isGlobal": true,
|
||||
"roamed": false,
|
||||
|
@ -18,7 +18,7 @@
|
|||
"location": {
|
||||
"uri": "./testQualifiedNameOutsideOfNamespace.php"
|
||||
},
|
||||
"containerName": ""
|
||||
"containerName": "SomeNamespace"
|
||||
},
|
||||
"type": null,
|
||||
"declarationLine": "namespace SomeNamespace { }",
|
||||
|
|
Loading…
Reference in New Issue