Class: DSP::SetExpressionResponse
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface SetExpressionResponse extends Response {
body: {
/** The new value of the expression. */
value: string;
/** The optional type of the value.
This attribute should only be returned by a debug adapter if the client has passed the value true for the 'supportsVariableType' capability of the 'initialize' request.
*/
type?: string;
/** Properties of a value that can be used to determine how to render the result in the UI. */
presentationHint?: VariablePresentationHint;
/** If variablesReference is > 0, the value is structured and its children can be retrieved by passing variablesReference to the VariablesRequest.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/
variablesReference?: number;
/** The number of named child variables.
The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/
namedVariables?: number;
/** The number of indexed child variables.
The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/
indexedVariables?: number;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** The new value of the expression.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SetExpressionResponse
constructor
A new instance of SetExpressionResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ SetExpressionResponse
Returns a new instance of SetExpressionResponse.
3114 3115 3116 3117 |
# File 'lib/dsp/dsp_protocol.rb', line 3114 def initialize(initial_hash = nil) super @optional_method_names = %i[message] end |
Instance Attribute Details
#body ⇒ Object
type: {
3088 3089 3090 |
# File 'lib/dsp/dsp_protocol.rb', line 3088 def body @body end |
#command ⇒ Object
type: {
3088 3089 3090 |
# File 'lib/dsp/dsp_protocol.rb', line 3088 def command @command end |
#message ⇒ Object
type: {
3088 3089 3090 |
# File 'lib/dsp/dsp_protocol.rb', line 3088 def @message end |
#request_seq ⇒ Object
/** The new value of the expression. */
value: string;
/** The optional type of the value.
This attribute should only be returned by a debug adapter if the client has passed the value true for the 'supportsVariableType' capability of the 'initialize' request.
*/
type?: string;
/** Properties of a value that can be used to determine how to render the result in the UI. */
presentationHint?: VariablePresentationHint;
/** If variablesReference is > 0, the value is structured and its children can be retrieved by passing variablesReference to the VariablesRequest.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/
variablesReference?: number;
/** The number of named child variables.
The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/
namedVariables?: number;
/** The number of indexed child variables.
The client can use this optional information to present the variables in a paged UI and fetch them in chunks.
The value should be less than or equal to 2147483647 (2^31 - 1).
*/
indexedVariables?: number;
}
3112 3113 3114 |
# File 'lib/dsp/dsp_protocol.rb', line 3112 def request_seq @request_seq end |
#seq ⇒ Object
type: {
3088 3089 3090 |
# File 'lib/dsp/dsp_protocol.rb', line 3088 def seq @seq end |
#success ⇒ Object
type: {
3088 3089 3090 |
# File 'lib/dsp/dsp_protocol.rb', line 3088 def success @success end |
#type ⇒ Object
type: {
3088 3089 3090 |
# File 'lib/dsp/dsp_protocol.rb', line 3088 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 |
# File 'lib/dsp/dsp_protocol.rb', line 3119 def from_h!(value) value = {} if value.nil? self.body = value['body'] # Unknown type self.request_seq = value['request_seq'] self.success = value['success'] # Unknown type self.command = value['command'] self. = value['message'] self.seq = value['seq'] self.type = value['type'] self end |