Class: LSP::SemanticTokensLegend
- Defined in:
- lib/lsp/lsp_protocol_sematictokens.proposed.rb
Overview
export interface SemanticTokensLegend
/**
* The token types a server uses.
*/
tokenTypes: string[];
/**
* The token modifiers a server uses.
*/
tokenModifiers: string[];
Instance Attribute Summary collapse
-
#tokenModifiers ⇒ Object
type: string[] # type: string[].
-
#tokenTypes ⇒ Object
type: string[] # type: string[].
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#tokenModifiers ⇒ Object
type: string[] # type: string[]
20 21 22 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 20 def tokenModifiers @tokenModifiers end |
#tokenTypes ⇒ Object
type: string[] # type: string[]
20 21 22 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 20 def tokenTypes @tokenTypes end |
Instance Method Details
#from_h!(value) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 22 def from_h!(value) value = {} if value.nil? self.tokenTypes = value['tokenTypes'].map { |val| val } unless value['tokenTypes'].nil? self.tokenModifiers = value['tokenModifiers'].map { |val| val } unless value['tokenModifiers'].nil? self end |