Class: DatadogAPIClient::V2::AstNode
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::AstNode
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/ast_node.rb
Overview
A node in the abstract syntax tree of the parsed source code.
Instance Attribute Summary collapse
-
#_end ⇒ Object
readonly
A position in source code, identified by line and column numbers.
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#ast_type ⇒ Object
readonly
The tree-sitter node type of this AST node.
-
#children ⇒ Object
The child nodes of this AST node, or null for a leaf node.
-
#field_name ⇒ Object
The name of the field this node occupies within its parent node, when the parent addresses it by name.
-
#start ⇒ Object
readonly
A position in source code, identified by line and column numbers.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#_end ⇒ Object
A position in source code, identified by line and column numbers.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/ast_node.rb', line 31 def _end @_end end |
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
39 40 41 |
# File 'lib/datadog_api_client/v2/models/ast_node.rb', line 39 def additional_properties @additional_properties end |
#ast_type ⇒ Object
The tree-sitter node type of this AST node.
25 26 27 |
# File 'lib/datadog_api_client/v2/models/ast_node.rb', line 25 def ast_type @ast_type end |
#children ⇒ Object
The child nodes of this AST node, or null for a leaf node.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/ast_node.rb', line 28 def children @children end |
#field_name ⇒ Object
The name of the field this node occupies within its parent node, when the parent addresses it by name.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/ast_node.rb', line 34 def field_name @field_name end |
#start ⇒ Object
A position in source code, identified by line and column numbers.
37 38 39 |
# File 'lib/datadog_api_client/v2/models/ast_node.rb', line 37 def start @start end |