src/Psalm/Internal/LanguageServer/Client/TextDocument.php
public function xcontent(TextDocumentIdentifier $textDocument): Promise
    {
        return call(
            /**
             * @return \Generator<int, mixed, mixed, TextDocumentItem>
             */
            function () use ($textDocument) {
                $result = yield $this->handler->request(
                    'textDocument/xcontent',
                    ['textDocument' => $textDocument]
                );

                /** @var TextDocumentItem */
                return $this->mapper->map($result, new TextDocumentItem);
            }
        );
    }
public function xcontent(TextDocumentIdentifier $textDocument): Promise
    {
        return call(
            /**
             * @return \Generator<int, mixed, mixed, TextDocumentItem>
             */
            function () use ($textDocument) {
                $result = yield $this->handler->request(
                    'textDocument/xcontent',
                    ['textDocument' => $textDocument]
                );

                /** @var TextDocumentItem */
                return $this->mapper->map($result, new TextDocumentItem);
            }
        );
    }
public function xcontent ( TextDocumentIdentifier $ textDocument ) : Promise { return call ( /**
             * @return \Generator<int, mixed, mixed, TextDocumentItem>
             */ function ( ) use ( $ textDocument ) { $ result = yield $ this -> handler -> request ( 'textDocument/xcontent' , [ 'textDocument' => $ textDocument ] ) ; /** @var TextDocumentItem */ return $ this -> mapper -> map ( $ result , new TextDocumentItem ) ; } ) ; }
The content request is sent from a server to a client
to request the current content of a text document identified by the URI

@param TextDocumentIdentifier $textDocument The document to get the content for
@return Promise<TextDocumentItem> The document's current content
The content request is sent from a server to a client to request the current content of a text document identified by the URI