extensions/felixfbecker.php-intellisense-0.0.12/vendor/felixfbecker/language-server/src/Server/TextDocument.php
/**
     * The document symbol request is sent from the client to the server to list all symbols found in a given text
     * document.
     *
     * @param \LanguageServer\Protocol\TextDocumentIdentifier $textDocument
     * @return Promise <SymbolInformation[]>
     */
The document symbol request is sent from the client to the server to list all symbols found in a given text
document.


The document symbol request is sent from the client to the server to list all symbols found in a given text document .
public function documentSymbol(TextDocumentIdentifier $textDocument): Promise
    {
        return $this->project->getOrLoadDocument($textDocument->uri)->then(function (PhpDocument $document) {
            return array_values($document->getSymbols());
        });
    }
public function documentSymbol ( TextDocumentIdentifier $ textDocument ) : Promise { return $ this -> project -> getOrLoadDocument ( $ textDocument -> uri ) -> then ( function ( PhpDocument $ document ) { return array_values ( $ document -> getSymbols ( ) ) ; } ) ; }
The document symbol request is sent from the client to the server to list all symbols found in a given text
 document.
The document symbol request is sent from the client to the server to list all symbols found in a given text document .