Class: LSP::ReferenceContext

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

Overview

export interface ReferenceContext

/**
 * Include the declaration of the current symbol.
 */
includeDeclaration: boolean;

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

#includeDeclarationObject

type: boolean



1036
1037
1038
# File 'lib/lsp/lsp_types.rb', line 1036

def includeDeclaration
  @includeDeclaration
end

Instance Method Details

#from_h!(value) ⇒ Object



1038
1039
1040
1041
1042
# File 'lib/lsp/lsp_types.rb', line 1038

def from_h!(value)
  value = {} if value.nil?
  self.includeDeclaration = value['includeDeclaration'] # Unknown type
  self
end