|
Blender V5.3
|
#include <ast.hh>
Inherits blender::gpu::shader::parser::ast::Node.
Public Member Functions | |
| NODE_COMMON (IdType) | |
| bool | is_const () const |
| bool | is_constexpr () const |
| bool | is_static () const |
| Const | constant () const |
| IdQualified | identifier () const |
| Reference | reference () 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 683 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first(), and blender::gpu::shader::parser::ast::Const.
Referenced by is_const(), and is_constexpr().
|
inline |
Definition at line 688 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first(), and blender::gpu::shader::parser::ast::IdQualified.
Referenced by bsl::SymbolParser::parse_function_return_type(), and bsl::SymbolParser::parse_var_decl().
|
inline |
Definition at line 671 of file ast.hh.
References constant(), and blender::gpu::shader::parser::ast::Node::is_valid().
Referenced by is_constexpr().
| bool blender::gpu::shader::parser::ast::IdType::is_constexpr | ( | ) | const |
Definition at line 165 of file ast.cc.
References constant(), lexit::Constexpr, blender::gpu::shader::parser::ast::Node::front(), and is_const().
|
inline |
Definition at line 678 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.
| blender::gpu::shader::parser::ast::IdType::NODE_COMMON | ( | IdType | ) |
|
inline |
Definition at line 693 of file ast.hh.
References blender::gpu::shader::parser::ast::Node::child_first(), and blender::gpu::shader::parser::ast::Reference.