Class: LSP::SignatureHelp

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_types.rb

Overview

export interface SignatureHelp { /** * One or more signatures. / signatures: SignatureInformation; /* * The active signature. Set to null if no * signatures exist. / activeSignature: number | null; /* * The active parameter of the active signature. Set to null * if the active signature has no parameters. */ activeParameter: number | null; }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#activeParameterObject

type: SignatureInformation # type: number | null # type: number | null



1018
1019
1020
# File 'lib/lsp/lsp_types.rb', line 1018

def activeParameter
  @activeParameter
end

#activeSignatureObject

type: SignatureInformation # type: number | null # type: number | null



1018
1019
1020
# File 'lib/lsp/lsp_types.rb', line 1018

def activeSignature
  @activeSignature
end

#signaturesObject

type: SignatureInformation # type: number | null # type: number | null



1018
1019
1020
# File 'lib/lsp/lsp_types.rb', line 1018

def signatures
  @signatures
end

Instance Method Details

#from_h!(value) ⇒ Object



1020
1021
1022
1023
1024
1025
1026
# File 'lib/lsp/lsp_types.rb', line 1020

def from_h!(value)
  value = {} if value.nil?
  self.signatures = to_typed_aray(value['signatures'], SignatureInformation)
  self.activeSignature = value['activeSignature'] # Unknown type
  self.activeParameter = value['activeParameter'] # Unknown type
  self
end