updated docs and comments
parent
f84b6a48b6
commit
7b54ecd67c
|
@ -98,6 +98,7 @@ class Definition
|
|||
* @var string
|
||||
*/
|
||||
public $documentation;
|
||||
|
||||
/**
|
||||
* Parameters array (for methods and functions), for use in textDocument/signatureHelp
|
||||
*
|
||||
|
|
|
@ -238,10 +238,8 @@ class DefinitionResolver
|
|||
$def->parameters = [];
|
||||
if (property_exists($node, 'parameters') && $node->parameters) {
|
||||
foreach ($node->parameters->getElements() as $param) {
|
||||
//var_dump($param); die();
|
||||
$def->parameters[] = new ParameterInformation(
|
||||
$this->getDeclarationLineFromNode($param),
|
||||
//$param->getName(), // TODO: rebuild this
|
||||
$this->getDocumentationFromNode($param)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -417,6 +417,14 @@ class TextDocument
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* The signature help request is sent from the client to the server to request signature information
|
||||
* at a given cursor position.
|
||||
*
|
||||
* @param TextDocumentIdentifier $textDocument The text document
|
||||
* @param Position $position The position inside the text document
|
||||
* @return Promise <SignatureHelp>
|
||||
*/
|
||||
public function signatureHelp(TextDocumentIdentifier $textDocument, Position $position): Promise
|
||||
{
|
||||
return coroutine(function () use ($textDocument, $position) {
|
||||
|
|
Loading…
Reference in New Issue