|
Blender V5.3
|
#include <ast.hh>
Inherits blender::gpu::shader::parser::ast::Node.
Public Member Functions | |
| NODE_COMMON (FuncDecl) | |
| bool | is_method () const |
| bool | is_static () const |
| bool | is_const () const |
| bool | is_template () const |
| AttrList | attributes () const |
| IdType | return_type () const |
| IdQualified | identifier () const |
| FuncArgList | arguments () const |
| ClassDecl | parent_class () const |
| LocalScope | body () const |
| Public Member Functions inherited from blender::gpu::shader::parser::ast::Node | |
| Node ()=default | |
| Node (const ParserBase *p, NodeID id) | |
| const NodeData * | data () const |
| NodeType | type () const |
| Token | front () const |
| Token | back () const |
| Node | prev () const |
| Node | next () const |
| Node | parent () const |
| Node | children () const |
| Node | child_first () const |
| Node | child_last () const |
| Node | prev (NodeType type) const |
| Node | next (NodeType type) const |
| Node | parent (NodeType type) const |
| Node | child_first (NodeType type) const |
| Node | child_last (NodeType type) const |
| int | child_count () const |
| bool | is_empty () const |
| bool | has_single_child () const |
| bool | is_valid () const |
| std::string_view | str () const |
| std::string_view | str_full () const |
| void | print_ast () const |
| bool | operator== (NodeType type) const |
| bool | operator!= (NodeType type) const |
| std::ostream & | operator<< (std::ostream &os) |
| ChildRange | children_range () const |
| template<typename NodeT> | |
| TypedChildRange< NodeT > | children_of_type () const |
| template<typename NodeT> | |
| RecursiveTypedRange< NodeT > | descendants_of_type () const |
Additional Inherited Members | |
| Public Attributes inherited from blender::gpu::shader::parser::ast::Node | |
| const ParserBase * | p = nullptr |
| NodeID | id = -1 |
|
inline |
Definition at line 1103 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first(), and blender::gpu::shader::parser::ast::FuncArgList.
Referenced by bsl::SymbolTemplate< T >::SymbolTemplate().
|
inline |
Definition at line 1088 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first().
|
inline |
Definition at line 1325 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_last(), and blender::gpu::shader::parser::ast::LocalScope.
|
inline |
Definition at line 1098 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::next(), and return_type().
Referenced by blender::gpu::shader::parser::ast::TemplateSpec::parameters(), and bsl::SymbolParser::parse_template_decl().
|
inline |
Definition at line 1078 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_last(), blender::gpu::shader::parser::ast::Const, and blender::gpu::shader::parser::ast::Node::is_valid().
|
inline |
Definition at line 1068 of file ast.hh.
References blender::gpu::shader::parser::ast::ClassDecl, blender::gpu::shader::parser::ast::Node::is_valid(), and blender::gpu::shader::parser::ast::Node::parent().
|
inline |
Definition at line 1073 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first(), blender::gpu::shader::parser::ast::Node::is_valid(), and blender::gpu::shader::parser::ast::StaticStmt.
|
inline |
Definition at line 1083 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::is_valid(), and blender::gpu::shader::parser::ast::Node::parent().
Referenced by parent_class().
| blender::gpu::shader::parser::ast::FuncDecl::NODE_COMMON | ( | FuncDecl | ) |
|
inline |
Definition at line 1320 of file ast.hh.
References is_template(), and blender::gpu::shader::parser::ast::Node::parent().
|
inline |
Definition at line 1093 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first(), and blender::gpu::shader::parser::ast::IdType.
Referenced by identifier().