Lines Matching defs:ASTNode
28 struct ASTNode { struct
31 static ID Invalid() { in Invalid()
55 friend struct ASTNode; argument
56 friend class Parser;
59 enum class Kind {
138 iterator old = *this;
175 iterator(std::vector<ASTNode>* nodes, ID id) in iterator() argument
179 std::vector<ASTNode>* fNodes; argument
183 friend struct ASTNode; argument
186 struct TypeData {
199 struct ParameterData {
212 struct VarData {
223 struct FunctionData {
236 struct InterfaceBlockData {
254 struct SectionData {
267 struct NodeData {
359 ASTNode() in ASTNode() argument
363 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind) in ASTNode() argument
425 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, Token t) in ASTNode() argument
431 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, StringFragment s) in ASTNode() function
437 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, const char* s) in ASTNode() argument
443 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, bool b) in ASTNode() argument
449 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, SKSL_INT i) in ASTNode() argument
455 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, SKSL_FLOAT f) in ASTNode() argument
461 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, Modifiers m) in ASTNode() argument
467 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, TypeData td) in ASTNode() function
473 ASTNode(std::vector<ASTNode>* nodes, int offset, Kind kind, SectionData s) in ASTNode() argument
483 Token getToken() const { in getToken()
490 bool getBool() const { in getBool()
497 SKSL_INT getInt() const { in getInt()
504 SKSL_FLOAT getFloat() const { in getFloat()
511 StringFragment getString() const { in getString()
536 void setTypeData(const ASTNode::TypeData& td) { in setTypeData() argument
548 void setParameterData(const ASTNode::ParameterData& pd) { in setParameterData() argument
560 void setVarData(const ASTNode::VarData& vd) { in setVarData() argument
572 void setFunctionData(const ASTNode::FunctionData& fd) { in setFunctionData() argument
584 void setInterfaceBlockData(const ASTNode::InterfaceBlockData& id) { in setInterfaceBlockData() argument
589 SectionData getSectionData() const { in getSectionData()
618 std::vector<ASTNode>* fNodes; argument
620 NodeData fData;
622 int fOffset;
624 Kind fKind;
626 ID fFirstChild;
628 ID fLastChild;
630 ID fNext;