Class: DSP::BreakpointLocation

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

Overview

interface BreakpointLocation {

    /** Start line of breakpoint location. */
    line: number;
    /** Optional start column of breakpoint location. */
    column?: number;
    /** Optional end line of breakpoint location if the location covers a range. */
    endLine?: number;
    /** Optional end column of breakpoint location if the location covers a range. */
    endColumn?: number;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ BreakpointLocation

Returns a new instance of BreakpointLocation.



4152
4153
4154
4155
# File 'lib/dsp/dsp_protocol.rb', line 4152

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

Instance Attribute Details

#columnObject

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



4150
4151
4152
# File 'lib/dsp/dsp_protocol.rb', line 4150

def column
  @column
end

#endColumnObject

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



4150
4151
4152
# File 'lib/dsp/dsp_protocol.rb', line 4150

def endColumn
  @endColumn
end

#endLineObject

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



4150
4151
4152
# File 'lib/dsp/dsp_protocol.rb', line 4150

def endLine
  @endLine
end

#lineObject

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



4150
4151
4152
# File 'lib/dsp/dsp_protocol.rb', line 4150

def line
  @line
end

Instance Method Details

#from_h!(value) ⇒ Object



4157
4158
4159
4160
4161
4162
4163
4164
# File 'lib/dsp/dsp_protocol.rb', line 4157

def from_h!(value)
  value = {} if value.nil?
  self.line = value['line']
  self.column = value['column']
  self.endLine = value['endLine']
  self.endColumn = value['endColumn']
  self
end