1
0
Fork 0

changes language server protocol namespace

pull/661/head
Daniel Leech 2018-09-09 09:35:49 +01:00
parent 49ebf7cb24
commit a23c14ceba
40 changed files with 57 additions and 60 deletions

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer\Client; namespace LanguageServer\Client;
use LanguageServer\ClientHandler; use LanguageServer\ClientHandler;
use LanguageServer\Protocol\{TextDocumentItem, TextDocumentIdentifier}; use LanguageServerProtocol\{TextDocumentItem, TextDocumentIdentifier};
use Sabre\Event\Promise; use Sabre\Event\Promise;
use JsonMapper; use JsonMapper;

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer\Client; namespace LanguageServer\Client;
use LanguageServer\ClientHandler; use LanguageServer\ClientHandler;
use LanguageServer\Protocol\TextDocumentIdentifier; use LanguageServerProtocol\TextDocumentIdentifier;
use Sabre\Event\Promise; use Sabre\Event\Promise;
use JsonMapper; use JsonMapper;

View File

@ -5,7 +5,7 @@ namespace LanguageServer;
use LanguageServer\Index\ReadableIndex; use LanguageServer\Index\ReadableIndex;
use LanguageServer\Factory\CompletionItemFactory; use LanguageServer\Factory\CompletionItemFactory;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
TextEdit, TextEdit,
Range, Range,
Position, Position,

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer\ContentRetriever; namespace LanguageServer\ContentRetriever;
use LanguageServer\LanguageClient; use LanguageServer\LanguageClient;
use LanguageServer\Protocol\{TextDocumentIdentifier, TextDocumentItem}; use LanguageServerProtocol\{TextDocumentIdentifier, TextDocumentItem};
use Sabre\Event\Promise; use Sabre\Event\Promise;
/** /**

View File

@ -5,7 +5,7 @@ namespace LanguageServer;
use LanguageServer\Index\ReadableIndex; use LanguageServer\Index\ReadableIndex;
use phpDocumentor\Reflection\{Types, Type, Fqsen, TypeResolver}; use phpDocumentor\Reflection\{Types, Type, Fqsen, TypeResolver};
use LanguageServer\Protocol\SymbolInformation; use LanguageServerProtocol\SymbolInformation;
use Generator; use Generator;
/** /**

View File

@ -5,7 +5,7 @@ namespace LanguageServer;
use LanguageServer\Index\ReadableIndex; use LanguageServer\Index\ReadableIndex;
use LanguageServer\Factory\SymbolInformationFactory; use LanguageServer\Factory\SymbolInformationFactory;
use LanguageServer\Protocol\SymbolInformation; use LanguageServerProtocol\SymbolInformation;
use Microsoft\PhpParser; use Microsoft\PhpParser;
use Microsoft\PhpParser\Node; use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\FunctionLike; use Microsoft\PhpParser\FunctionLike;

View File

@ -3,9 +3,9 @@
namespace LanguageServer\Factory; namespace LanguageServer\Factory;
use LanguageServer\Definition; use LanguageServer\Definition;
use LanguageServer\Protocol\CompletionItem; use LanguageServerProtocol\CompletionItem;
use LanguageServer\Protocol\CompletionItemKind; use LanguageServerProtocol\CompletionItemKind;
use LanguageServer\Protocol\SymbolKind; use LanguageServerProtocol\SymbolKind;
class CompletionItemFactory class CompletionItemFactory
{ {

View File

@ -2,9 +2,9 @@
namespace LanguageServer\Factory; namespace LanguageServer\Factory;
use LanguageServer\Protocol\Location; use LanguageServerProtocol\Location;
use LanguageServer\Protocol\Position; use LanguageServerProtocol\Position;
use LanguageServer\Protocol\Range; use LanguageServerProtocol\Range;
use Microsoft\PhpParser\Node; use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\PositionUtilities; use Microsoft\PhpParser\PositionUtilities;

View File

@ -2,8 +2,8 @@
namespace LanguageServer\Factory; namespace LanguageServer\Factory;
use LanguageServer\Protocol\Position; use LanguageServerProtocol\Position;
use LanguageServer\Protocol\Range; use LanguageServerProtocol\Range;
use Microsoft\PhpParser\Node; use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\PositionUtilities; use Microsoft\PhpParser\PositionUtilities;

View File

@ -2,9 +2,9 @@
namespace LanguageServer\Factory; namespace LanguageServer\Factory;
use LanguageServer\Protocol\Location; use LanguageServerProtocol\Location;
use LanguageServer\Protocol\SymbolInformation; use LanguageServerProtocol\SymbolInformation;
use LanguageServer\Protocol\SymbolKind; use LanguageServerProtocol\SymbolKind;
use Microsoft\PhpParser\Node; use Microsoft\PhpParser\Node;
use Microsoft\PhpParser\ResolvedName; use Microsoft\PhpParser\ResolvedName;
use LanguageServer\Factory\LocationFactory; use LanguageServer\Factory\LocationFactory;

View File

@ -6,7 +6,7 @@ namespace LanguageServer;
use LanguageServer\Cache\Cache; use LanguageServer\Cache\Cache;
use LanguageServer\FilesFinder\FilesFinder; use LanguageServer\FilesFinder\FilesFinder;
use LanguageServer\Index\{DependenciesIndex, Index}; use LanguageServer\Index\{DependenciesIndex, Index};
use LanguageServer\Protocol\MessageType; use LanguageServerProtocol\MessageType;
use Webmozart\PathUtil\Path; use Webmozart\PathUtil\Path;
use Sabre\Event\Promise; use Sabre\Event\Promise;
use function Sabre\Event\coroutine; use function Sabre\Event\coroutine;

View File

@ -3,7 +3,7 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
ServerCapabilities, ServerCapabilities,
ClientCapabilities, ClientCapabilities,
TextDocumentSyncKind, TextDocumentSyncKind,

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use LanguageServer\Index\Index; use LanguageServer\Index\Index;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
Diagnostic, Position, Range Diagnostic, Position, Range
}; };
use Microsoft\PhpParser; use Microsoft\PhpParser;

View File

@ -9,7 +9,7 @@ use LanguageServer\{
use LanguageServer\Index\ReadableIndex; use LanguageServer\Index\ReadableIndex;
use LanguageServer\Factory\LocationFactory; use LanguageServer\Factory\LocationFactory;
use LanguageServer\Factory\RangeFactory; use LanguageServer\Factory\RangeFactory;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
FormattingOptions, FormattingOptions,
Hover, Hover,
Location, Location,
@ -110,7 +110,7 @@ class TextDocument
* The document symbol request is sent from the client to the server to list all symbols found in a given text * The document symbol request is sent from the client to the server to list all symbols found in a given text
* document. * document.
* *
* @param \LanguageServer\Protocol\TextDocumentIdentifier $textDocument * @param \LanguageServerProtocol\TextDocumentIdentifier $textDocument
* @return Promise <SymbolInformation[]> * @return Promise <SymbolInformation[]>
*/ */
public function documentSymbol(TextDocumentIdentifier $textDocument): Promise public function documentSymbol(TextDocumentIdentifier $textDocument): Promise
@ -129,7 +129,7 @@ class TextDocument
* document's truth is now managed by the client and the server must not try to read the document's truth using the * document's truth is now managed by the client and the server must not try to read the document's truth using the
* document's uri. * document's uri.
* *
* @param \LanguageServer\Protocol\TextDocumentItem $textDocument The document that was opened. * @param \LanguageServerProtocol\TextDocumentItem $textDocument The document that was opened.
* @return void * @return void
*/ */
public function didOpen(TextDocumentItem $textDocument) public function didOpen(TextDocumentItem $textDocument)
@ -143,8 +143,8 @@ class TextDocument
/** /**
* The document change notification is sent from the client to the server to signal changes to a text document. * The document change notification is sent from the client to the server to signal changes to a text document.
* *
* @param \LanguageServer\Protocol\VersionedTextDocumentIdentifier $textDocument * @param \LanguageServerProtocol\VersionedTextDocumentIdentifier $textDocument
* @param \LanguageServer\Protocol\TextDocumentContentChangeEvent[] $contentChanges * @param \LanguageServerProtocol\TextDocumentContentChangeEvent[] $contentChanges
* @return void * @return void
*/ */
public function didChange(VersionedTextDocumentIdentifier $textDocument, array $contentChanges) public function didChange(VersionedTextDocumentIdentifier $textDocument, array $contentChanges)
@ -159,7 +159,7 @@ class TextDocument
* The document's truth now exists where the document's uri points to (e.g. if the document's uri is a file uri the * The document's truth now exists where the document's uri points to (e.g. if the document's uri is a file uri the
* truth now exists on disk). * truth now exists on disk).
* *
* @param \LanguageServer\Protocol\TextDocumentIdentifier $textDocument The document that was closed * @param \LanguageServerProtocol\TextDocumentIdentifier $textDocument The document that was closed
* @return void * @return void
*/ */
public function didClose(TextDocumentIdentifier $textDocument) public function didClose(TextDocumentIdentifier $textDocument)

View File

@ -6,7 +6,7 @@ namespace LanguageServer\Server;
use LanguageServer\{LanguageClient, PhpDocumentLoader}; use LanguageServer\{LanguageClient, PhpDocumentLoader};
use LanguageServer\Index\{ProjectIndex, DependenciesIndex, Index}; use LanguageServer\Index\{ProjectIndex, DependenciesIndex, Index};
use LanguageServer\Factory\LocationFactory; use LanguageServer\Factory\LocationFactory;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
FileChangeType, FileChangeType,
FileEvent, FileEvent,
SymbolInformation, SymbolInformation,

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use LanguageServer\Index\ReadableIndex; use LanguageServer\Index\ReadableIndex;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
Position, Position,
SignatureHelp, SignatureHelp,
ParameterInformation ParameterInformation

View File

@ -3,7 +3,7 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use LanguageServer\Protocol\{SignatureInformation, ParameterInformation}; use LanguageServerProtocol\{SignatureInformation, ParameterInformation};
use Microsoft\PhpParser\FunctionLike; use Microsoft\PhpParser\FunctionLike;
class SignatureInformationFactory class SignatureInformationFactory

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer; namespace LanguageServer;
use LanguageServer\Factory\RangeFactory; use LanguageServer\Factory\RangeFactory;
use LanguageServer\Protocol\{Diagnostic, DiagnosticSeverity, Range, Position}; use LanguageServerProtocol\{Diagnostic, DiagnosticSeverity, Range, Position};
use phpDocumentor\Reflection\DocBlockFactory; use phpDocumentor\Reflection\DocBlockFactory;
use Microsoft\PhpParser; use Microsoft\PhpParser;
use Microsoft\PhpParser\Node; use Microsoft\PhpParser\Node;

View File

@ -9,7 +9,7 @@ use LanguageServer\{
DefinitionResolver, TreeAnalyzer DefinitionResolver, TreeAnalyzer
}; };
use LanguageServer\Index\{Index}; use LanguageServer\Index\{Index};
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
Diagnostic, DiagnosticSeverity, Position, Range Diagnostic, DiagnosticSeverity, Position, Range
}; };
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;

View File

@ -6,7 +6,7 @@ namespace LanguageServer\Tests;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use LanguageServer\LanguageServer; use LanguageServer\LanguageServer;
use LanguageServer\Message; use LanguageServer\Message;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
ClientCapabilities, ClientCapabilities,
TextDocumentSyncKind, TextDocumentSyncKind,
MessageType, MessageType,

View File

@ -9,7 +9,7 @@ use LanguageServer\{
use LanguageServer\Index\{ use LanguageServer\Index\{
Index Index
}; };
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
Position Position
}; };
use Microsoft\PhpParser; use Microsoft\PhpParser;

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\Index\{ProjectIndex, DependenciesIndex, Index}; use LanguageServer\Index\{ProjectIndex, DependenciesIndex, Index};
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Protocol\{Position, Location, Range}; use LanguageServerProtocol\{Position, Location, Range};
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;
abstract class ServerTestCase extends TestCase abstract class ServerTestCase extends TestCase

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex}; use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex};
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
TextDocumentIdentifier, TextDocumentIdentifier,
TextEdit, TextEdit,
Range, Range,

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex}; use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex};
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Protocol\{TextDocumentIdentifier, Position, Range, Location}; use LanguageServerProtocol\{TextDocumentIdentifier, Position, Range, Location};
class GlobalFallbackTest extends ServerTestCase class GlobalFallbackTest extends ServerTestCase
{ {

View File

@ -4,7 +4,7 @@ declare(strict_types = 1);
namespace LanguageServer\Tests\Server\TextDocument\Definition; namespace LanguageServer\Tests\Server\TextDocument\Definition;
use LanguageServer\Tests\Server\ServerTestCase; use LanguageServer\Tests\Server\ServerTestCase;
use LanguageServer\Protocol\{TextDocumentIdentifier, Position, Location, Range}; use LanguageServerProtocol\{TextDocumentIdentifier, Position, Location, Range};
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;
class GlobalTest extends ServerTestCase class GlobalTest extends ServerTestCase

View File

@ -3,7 +3,7 @@ declare(strict_types = 1);
namespace LanguageServer\Tests\Server\TextDocument\Definition; namespace LanguageServer\Tests\Server\TextDocument\Definition;
use LanguageServer\Protocol\{TextDocumentIdentifier, Location}; use LanguageServerProtocol\{TextDocumentIdentifier, Location};
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;
class NamespacedTest extends GlobalTest class NamespacedTest extends GlobalTest

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex}; use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex};
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
VersionedTextDocumentIdentifier, VersionedTextDocumentIdentifier,
TextDocumentContentChangeEvent, TextDocumentContentChangeEvent,
Range, Range,

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex}; use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex};
use LanguageServer\Protocol\{TextDocumentItem, TextDocumentIdentifier}; use LanguageServerProtocol\{TextDocumentItem, TextDocumentIdentifier};
class DidCloseTest extends TestCase class DidCloseTest extends TestCase
{ {

View File

@ -6,7 +6,7 @@ namespace LanguageServer\Tests\Server\TextDocument;
use LanguageServer\Tests\Server\ServerTestCase; use LanguageServer\Tests\Server\ServerTestCase;
use LanguageServer\Tests\MockProtocolStream; use LanguageServer\Tests\MockProtocolStream;
use LanguageServer\{Server, LanguageClient, Project}; use LanguageServer\{Server, LanguageClient, Project};
use LanguageServer\Protocol\{TextDocumentIdentifier, SymbolInformation, SymbolKind, Position, Location, Range}; use LanguageServerProtocol\{TextDocumentIdentifier, SymbolInformation, SymbolKind, Position, Location, Range};
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;
class DocumentSymbolTest extends ServerTestCase class DocumentSymbolTest extends ServerTestCase

View File

@ -6,7 +6,7 @@ namespace LanguageServer\Tests\Server\TextDocument;
use LanguageServer\Tests\MockProtocolStream; use LanguageServer\Tests\MockProtocolStream;
use LanguageServer\Tests\Server\ServerTestCase; use LanguageServer\Tests\Server\ServerTestCase;
use LanguageServer\{Server, LanguageClient, Project}; use LanguageServer\{Server, LanguageClient, Project};
use LanguageServer\Protocol\{TextDocumentIdentifier, Position, Range, Hover, MarkedString}; use LanguageServerProtocol\{TextDocumentIdentifier, Position, Range, Hover, MarkedString};
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;
class HoverTest extends ServerTestCase class HoverTest extends ServerTestCase

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex}; use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex};
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Protocol\{TextDocumentItem, DiagnosticSeverity}; use LanguageServerProtocol\{TextDocumentItem, DiagnosticSeverity};
use Sabre\Event\Promise; use Sabre\Event\Promise;
use JsonMapper; use JsonMapper;

View File

@ -10,7 +10,7 @@ use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Index\{ use LanguageServer\Index\{
DependenciesIndex, Index, ProjectIndex DependenciesIndex, Index, ProjectIndex
}; };
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
Location, Position, Range, ReferenceContext, TextDocumentIdentifier Location, Position, Range, ReferenceContext, TextDocumentIdentifier
}; };
use LanguageServer\Tests\MockProtocolStream; use LanguageServer\Tests\MockProtocolStream;

View File

@ -3,7 +3,7 @@ declare(strict_types = 1);
namespace LanguageServer\Tests\Server\TextDocument\References; namespace LanguageServer\Tests\Server\TextDocument\References;
use LanguageServer\Protocol\{TextDocumentIdentifier, Position, ReferenceContext, Location, Range}; use LanguageServerProtocol\{TextDocumentIdentifier, Position, ReferenceContext, Location, Range};
use LanguageServer\Tests\Server\ServerTestCase; use LanguageServer\Tests\Server\ServerTestCase;
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;

View File

@ -3,7 +3,7 @@ declare(strict_types = 1);
namespace LanguageServer\Tests\Server\TextDocument\References; namespace LanguageServer\Tests\Server\TextDocument\References;
use LanguageServer\Protocol\{TextDocumentIdentifier, Position, ReferenceContext, Location, Range}; use LanguageServerProtocol\{TextDocumentIdentifier, Position, ReferenceContext, Location, Range};
use function LanguageServer\pathToUri; use function LanguageServer\pathToUri;
class NamespacedTest extends GlobalTest class NamespacedTest extends GlobalTest

View File

@ -10,7 +10,7 @@ use LanguageServer\{
}; };
use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex}; use LanguageServer\Index\{Index, ProjectIndex, DependenciesIndex};
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
TextDocumentIdentifier, TextDocumentIdentifier,
TextEdit, TextEdit,
Range, Range,

View File

@ -6,7 +6,7 @@ namespace LanguageServer\Tests\Server\Workspace;
use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\ContentRetriever\FileSystemContentRetriever;
use LanguageServer\{DefinitionResolver, LanguageClient, PhpDocumentLoader, Server}; use LanguageServer\{DefinitionResolver, LanguageClient, PhpDocumentLoader, Server};
use LanguageServer\Index\{DependenciesIndex, Index, ProjectIndex}; use LanguageServer\Index\{DependenciesIndex, Index, ProjectIndex};
use LanguageServer\Protocol\{FileChangeType, FileEvent}; use LanguageServerProtocol\{FileChangeType, FileEvent};
use LanguageServer\Message; use LanguageServer\Message;
use LanguageServer\Tests\MockProtocolStream; use LanguageServer\Tests\MockProtocolStream;
use LanguageServer\Tests\Server\ServerTestCase; use LanguageServer\Tests\Server\ServerTestCase;

View File

@ -6,7 +6,7 @@ namespace LanguageServer\Tests\Server\Workspace;
use LanguageServer\Tests\MockProtocolStream; use LanguageServer\Tests\MockProtocolStream;
use LanguageServer\Tests\Server\ServerTestCase; use LanguageServer\Tests\Server\ServerTestCase;
use LanguageServer\{Server, Client, LanguageClient, Project, PhpDocument}; use LanguageServer\{Server, Client, LanguageClient, Project, PhpDocument};
use LanguageServer\Protocol\{ use LanguageServerProtocol\{
TextDocumentItem, TextDocumentItem,
TextDocumentIdentifier, TextDocumentIdentifier,
SymbolInformation, SymbolInformation,

View File

@ -64,7 +64,7 @@ class ValidationTest extends TestCase
try { try {
$this->assertEquals($expectedValues['definitions'], $actualValues['definitions']); $this->assertEquals($expectedValues['definitions'], $actualValues['definitions']);
$this->assertEquals((array)$expectedValues['references'], (array)$actualValues['references'], 'references don\'t match.'); $this->assertEquals((array)$expectedValues['references'], (array)$actualValues['references'], sprintf('references match in "%s"', $outputFile));
} catch (\Throwable $e) { } catch (\Throwable $e) {
$outputFile = getExpectedValuesFile($testCaseFile); $outputFile = getExpectedValuesFile($testCaseFile);
file_put_contents($outputFile, json_encode($actualValues, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES)); file_put_contents($outputFile, json_encode($actualValues, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));

View File

@ -1,3 +1,3 @@
<?php <?php
namespace B; namespace B;
use LanguageServer\Protocol\{TextDocumentIdentifier, Position, ReferenceContext, Location, Range}; use LanguageServerProtocol\{TextDocumentIdentifier, Position, ReferenceContext, Location, Range};

View File

@ -1,24 +1,21 @@
{ {
"references": { "references": {
"LanguageServer\\Protocol": [ "LanguageServerProtocol": [
"./namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer": [ "LanguageServerProtocol\\TextDocumentIdentifier": [
"./namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\TextDocumentIdentifier": [ "LanguageServerProtocol\\Position": [
"./namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\Position": [ "LanguageServerProtocol\\ReferenceContext": [
"./namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\ReferenceContext": [ "LanguageServerProtocol\\Location": [
"./namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\Location": [ "LanguageServerProtocol\\Range": [
"./namespaces5.php"
],
"LanguageServer\\Protocol\\Range": [
"./namespaces5.php" "./namespaces5.php"
] ]
}, },