Class: DSP::GotoTargetsArguments

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface GotoTargetsArguments {

    /** The source location for which the goto targets are determined. */
    source: Source;
    /** The line location for which the goto targets are determined. */
    line: number;
    /** An optional column location for which the goto targets are determined. */
    column?: number;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ GotoTargetsArguments

Returns a new instance of GotoTargetsArguments.



3220
3221
3222
3223
# File 'lib/dsp/dsp_protocol.rb', line 3220

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[column]
end

Instance Attribute Details

#columnObject

type: Source # type: number # type: number



3218
3219
3220
# File 'lib/dsp/dsp_protocol.rb', line 3218

def column
  @column
end

#lineObject

type: Source # type: number # type: number



3218
3219
3220
# File 'lib/dsp/dsp_protocol.rb', line 3218

def line
  @line
end

#sourceObject

type: Source # type: number # type: number



3218
3219
3220
# File 'lib/dsp/dsp_protocol.rb', line 3218

def source
  @source
end

Instance Method Details

#from_h!(value) ⇒ Object



3225
3226
3227
3228
3229
3230
3231
# File 'lib/dsp/dsp_protocol.rb', line 3225

def from_h!(value)
  value = {} if value.nil?
  self.source = Source.new(value['source']) unless value['source'].nil?
  self.line = value['line']
  self.column = value['column']
  self
end