|
Blender V5.3
|
#include <ast.hh>
Public Member Functions | |
| NodeData ()=default | |
| NodeData (Nodes &nodes, NodeID id, NodeID parent_id, lexit::Token tok, NodeType type) | |
| std::string | location (const ParserBase &parser) const |
Public Attributes | |
| NodeType | type = NodeType::Invalid |
| TokenID | front = -1 |
| TokenID | back = -1 |
| NodeID | parent = -1 |
| NodeID | prev = -1 |
| NodeID | next = -1 |
| NodeID | child_first = -1 |
| NodeID | child_last = -1 |
Immutable AST node data. Contains indices of its neighbor and the token range it covers.
A node cannot overlap with its neighbors. All nodes are stored in source order.
|
default |
Referenced by NodeData().
|
inline |
Definition at line 118 of file ast.hh.
References back, child_first, child_last, front, NodeData(), parent, and type.
| std::string blender::gpu::shader::parser::ast::NodeData::location | ( | const ParserBase & | parser | ) | const |
Definition at line 14 of file ast.cc.
References blender::gpu::shader::parser::char_number(), front, blender::gpu::shader::parser::line_number(), and str.
| TokenID blender::gpu::shader::parser::ast::NodeData::back = -1 |
Definition at line 108 of file ast.hh.
Referenced by NodeData().
| NodeID blender::gpu::shader::parser::ast::NodeData::child_first = -1 |
Definition at line 114 of file ast.hh.
Referenced by NodeData().
| NodeID blender::gpu::shader::parser::ast::NodeData::child_last = -1 |
Definition at line 114 of file ast.hh.
Referenced by NodeData().
| TokenID blender::gpu::shader::parser::ast::NodeData::front = -1 |
Definition at line 107 of file ast.hh.
Referenced by location(), and NodeData().
| NodeID blender::gpu::shader::parser::ast::NodeData::next = -1 |
| NodeID blender::gpu::shader::parser::ast::NodeData::parent = -1 |
Definition at line 110 of file ast.hh.
Referenced by NodeData().
| NodeID blender::gpu::shader::parser::ast::NodeData::prev = -1 |
| NodeType blender::gpu::shader::parser::ast::NodeData::type = NodeType::Invalid |
Definition at line 104 of file ast.hh.
Referenced by NodeData().