Class: LSP::DiagnosticRelatedInformation

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

Overview

export interface DiagnosticRelatedInformation

/**
 * The location of this related diagnostic information.
 */
location: Location;
/**
 * The message of this related diagnostic information.
 */
message: string;

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

#locationObject

type: Location # type: string



260
261
262
# File 'lib/lsp/lsp_types.rb', line 260

def location
  @location
end

#messageObject

type: Location # type: string



260
261
262
# File 'lib/lsp/lsp_types.rb', line 260

def message
  @message
end

Instance Method Details

#from_h!(value) ⇒ Object



262
263
264
265
266
267
# File 'lib/lsp/lsp_types.rb', line 262

def from_h!(value)
  value = {} if value.nil?
  self.location = Location.new(value['location']) unless value['location'].nil?
  self.message = value['message']
  self
end