Class: DatadogAPIClient::V2::AstNode

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#_endObject

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_propertiesObject

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_typeObject

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

#childrenObject

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_nameObject

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

#startObject

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