Class: DSP::BreakpointLocationsArguments

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

Overview

interface BreakpointLocationsArguments {

    /** The source location of the breakpoints; either 'source.path' or 'source.reference' must be specified. */
    source: Source;
    /** Start line of range to search possible breakpoint locations in. If only the line is specified, the request returns all possible locations in that line. */
    line: number;
    /** Optional start column of range to search possible breakpoint locations in. If no start column is given, the first column in the start line is assumed. */
    column?: number;
    /** Optional end line of range to search possible breakpoint locations in. If no end line is given, then the end line is assumed to be the start line. */
    endLine?: number;
    /** Optional end column of range to search possible breakpoint locations in. If no end column is given, then it is assumed to be in the last column of the end line. */
    endColumn?: number;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ BreakpointLocationsArguments

Returns a new instance of BreakpointLocationsArguments.



1334
1335
1336
1337
# File 'lib/dsp/dsp_protocol.rb', line 1334

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

Instance Attribute Details

#columnObject

type: Source # type: number # type: number # type: number # type: number



1332
1333
1334
# File 'lib/dsp/dsp_protocol.rb', line 1332

def column
  @column
end

#endColumnObject

type: Source # type: number # type: number # type: number # type: number



1332
1333
1334
# File 'lib/dsp/dsp_protocol.rb', line 1332

def endColumn
  @endColumn
end

#endLineObject

type: Source # type: number # type: number # type: number # type: number



1332
1333
1334
# File 'lib/dsp/dsp_protocol.rb', line 1332

def endLine
  @endLine
end

#lineObject

type: Source # type: number # type: number # type: number # type: number



1332
1333
1334
# File 'lib/dsp/dsp_protocol.rb', line 1332

def line
  @line
end

#sourceObject

type: Source # type: number # type: number # type: number # type: number



1332
1333
1334
# File 'lib/dsp/dsp_protocol.rb', line 1332

def source
  @source
end

Instance Method Details

#from_h!(value) ⇒ Object



1339
1340
1341
1342
1343
1344
1345
1346
1347
# File 'lib/dsp/dsp_protocol.rb', line 1339

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.endLine = value['endLine']
  self.endColumn = value['endColumn']
  self
end