lib/dap/goto_target.rb in ruby-dap-0.1.2 vs lib/dap/goto_target.rb in ruby-dap-0.1.3
- old
+ new
@@ -1,22 +1,25 @@
+# A GotoTarget describes a code location that can be used as a target in the
+# ‘goto’ request. The possible goto targets can be determined via the
+# ‘gotoTargets’ request.
class DAP::GotoTarget < DAP::Base
# Unique identifier for a goto target. This is used in the goto request.
- property :id
+ property :id, as: 'number'
# The name of the goto target (shown in the UI).
- property :label
+ property :label, as: 'string'
# The line of the goto target.
- property :line
+ property :line, as: 'number'
# An optional column of the goto target.
- property :column, required: false
+ property :column, required: false, as: 'number'
# An optional end line of the range covered by the goto target.
- property :endLine, required: false
+ property :endLine, required: false, as: 'number'
# An optional end column of the range covered by the goto target.
- property :endColumn, required: false
+ property :endColumn, required: false, as: 'number'
# Optional memory reference for the instruction pointer value represented by this target.
- property :instructionPointerReference, required: false
+ property :instructionPointerReference, required: false, as: 'string'
end