lib/dap/scope.rb in ruby-dap-0.1.2 vs lib/dap/scope.rb in ruby-dap-0.1.3

- old
+ new

@@ -1,43 +1,45 @@ require_relative 'source' +# A Scope is a named container for variables. Optionally a scope can map to a +# source or a range within a source. class DAP::Scope < DAP::Base # Name of the scope such as 'Arguments', 'Locals', or 'Registers'. This string is shown in the UI as is and can be translated. - property :name + property :name, as: 'string' # An optional hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI. # Values: # 'arguments': Scope contains method arguments. # 'locals': Scope contains local variables. # 'registers': Scope contains registers. Only a single 'registers' scope should be returned from a 'scopes' request. # etc. - property :presentationHint, required: false # 'arguments' | 'locals' | 'registers' | string + property :presentationHint, required: false, as: 'string' # The variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest. - property :variablesReference + property :variablesReference, as: 'number' # The number of named variables in this scope. # The client can use this optional information to present the variables in a paged UI and fetch them in chunks. - property :namedVariables, required: false + property :namedVariables, required: false, as: 'number' # The number of indexed variables in this scope. # The client can use this optional information to present the variables in a paged UI and fetch them in chunks. - property :indexedVariables, required: false + property :indexedVariables, required: false, as: 'number' # If true, the number of variables in this scope is large or expensive to retrieve. - property :expensive + property :expensive, as: 'boolean' # Optional source for this scope. property :source, required: false, as: DAP::Source # Optional start line of the range covered by this scope. - property :line, required: false + property :line, required: false, as: 'number' # Optional start column of the range covered by this scope. - property :column, required: false + property :column, required: false, as: 'number' # Optional end line of the range covered by this scope. - property :endLine, required: false + property :endLine, required: false, as: 'number' # Optional end column of the range covered by this scope. - property :endColumn, required: false + property :endColumn, required: false, as: 'number' end