Class: DSP::BreakpointLocationsArguments
- 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
-
#column ⇒ Object
type: Source # type: number # type: number # type: number # type: number.
-
#endColumn ⇒ Object
type: Source # type: number # type: number # type: number # type: number.
-
#endLine ⇒ Object
type: Source # type: number # type: number # type: number # type: number.
-
#line ⇒ Object
type: Source # type: number # type: number # type: number # type: number.
-
#source ⇒ Object
type: Source # type: number # type: number # type: number # type: number.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ BreakpointLocationsArguments
constructor
A new instance of BreakpointLocationsArguments.
Methods inherited from DSPBase
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
#column ⇒ Object
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 |
#endColumn ⇒ Object
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 |
#endLine ⇒ Object
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 |
#line ⇒ Object
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 |
#source ⇒ Object
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 |