Line |
Branch |
Exec |
Source |
1 |
|
|
// Copyright (c) 2021-2024 ChilliBits. All rights reserved. |
2 |
|
|
|
3 |
|
|
#include "ASTVisitor.h" |
4 |
|
|
|
5 |
|
|
#include <ast/ASTNodes.h> |
6 |
|
|
|
7 |
|
|
namespace spice::compiler { |
8 |
|
|
|
9 |
|
✗ |
std::any ASTVisitor::visitEntry(EntryNode *node) { return visitChildren(node); } |
10 |
|
|
|
11 |
|
✗ |
std::any ASTVisitor::visitMainFctDef(MainFctDefNode *node) { return visitChildren(node); } |
12 |
|
|
|
13 |
|
✗ |
std::any ASTVisitor::visitFctDef(FctDefNode *node) { return visitChildren(node); } |
14 |
|
|
|
15 |
|
✗ |
std::any ASTVisitor::visitProcDef(ProcDefNode *node) { return visitChildren(node); } |
16 |
|
|
|
17 |
|
✗ |
std::any ASTVisitor::visitFctName(FctNameNode *node) { return visitChildren(node); } |
18 |
|
|
|
19 |
|
✗ |
std::any ASTVisitor::visitStructDef(StructDefNode *node) { return visitChildren(node); } |
20 |
|
|
|
21 |
|
✗ |
std::any ASTVisitor::visitInterfaceDef(InterfaceDefNode *node) { return visitChildren(node); } |
22 |
|
|
|
23 |
|
✗ |
std::any ASTVisitor::visitEnumDef(EnumDefNode *node) { return visitChildren(node); } |
24 |
|
|
|
25 |
|
✗ |
std::any ASTVisitor::visitGenericTypeDef(GenericTypeDefNode *node) { return visitChildren(node); } |
26 |
|
|
|
27 |
|
✗ |
std::any ASTVisitor::visitAliasDef(AliasDefNode *node) { return visitChildren(node); } |
28 |
|
|
|
29 |
|
✗ |
std::any ASTVisitor::visitGlobalVarDef(GlobalVarDefNode *node) { return visitChildren(node); } |
30 |
|
|
|
31 |
|
✗ |
std::any ASTVisitor::visitExtDecl(ExtDeclNode *node) { return visitChildren(node); } |
32 |
|
|
|
33 |
|
362 |
std::any ASTVisitor::visitImportDef(ImportDefNode *node) { return visitChildren(node); } |
34 |
|
|
|
35 |
|
✗ |
std::any ASTVisitor::visitUnsafeBlock(UnsafeBlockNode *node) { return visitChildren(node); } |
36 |
|
|
|
37 |
|
✗ |
std::any ASTVisitor::visitForLoop(ForLoopNode *node) { return visitChildren(node); } |
38 |
|
|
|
39 |
|
✗ |
std::any ASTVisitor::visitForeachLoop(ForeachLoopNode *node) { return visitChildren(node); } |
40 |
|
|
|
41 |
|
✗ |
std::any ASTVisitor::visitWhileLoop(WhileLoopNode *node) { return visitChildren(node); } |
42 |
|
|
|
43 |
|
✗ |
std::any ASTVisitor::visitDoWhileLoop(DoWhileLoopNode *node) { return visitChildren(node); } |
44 |
|
|
|
45 |
|
✗ |
std::any ASTVisitor::visitIfStmt(IfStmtNode *node) { return visitChildren(node); } |
46 |
|
|
|
47 |
|
✗ |
std::any ASTVisitor::visitElseStmt(ElseStmtNode *node) { return visitChildren(node); } |
48 |
|
|
|
49 |
|
8 |
std::any ASTVisitor::visitSwitchStmt(SwitchStmtNode *node) { return visitChildren(node); } |
50 |
|
|
|
51 |
|
✗ |
std::any ASTVisitor::visitCaseBranch(CaseBranchNode *node) { return visitChildren(node); } |
52 |
|
|
|
53 |
|
✗ |
std::any ASTVisitor::visitDefaultBranch(DefaultBranchNode *node) { return visitChildren(node); } |
54 |
|
|
|
55 |
|
✗ |
std::any ASTVisitor::visitAnonymousBlockStmt(AnonymousBlockStmtNode *node) { return visitChildren(node); } |
56 |
|
|
|
57 |
|
13712 |
std::any ASTVisitor::visitStmtLst(StmtLstNode *node) { return visitChildren(node); } |
58 |
|
|
|
59 |
|
905 |
std::any ASTVisitor::visitTypeLst(TypeLstNode *node) { return visitChildren(node); } |
60 |
|
|
|
61 |
|
✗ |
std::any ASTVisitor::visitTypeAltsLst(TypeAltsLstNode *node) { return visitChildren(node); } |
62 |
|
|
|
63 |
|
4937 |
std::any ASTVisitor::visitParamLst(ParamLstNode *node) { return visitChildren(node); } |
64 |
|
|
|
65 |
|
7506 |
std::any ASTVisitor::visitArgLst(ArgLstNode *node) { return visitChildren(node); } |
66 |
|
|
|
67 |
|
40 |
std::any ASTVisitor::visitEnumItemLst(EnumItemLstNode *node) { return visitChildren(node); } |
68 |
|
|
|
69 |
|
✗ |
std::any ASTVisitor::visitEnumItem(EnumItemNode *node) { return visitChildren(node); } |
70 |
|
|
|
71 |
|
✗ |
std::any ASTVisitor::visitField(FieldNode *node) { return visitChildren(node); } |
72 |
|
|
|
73 |
|
✗ |
std::any ASTVisitor::visitSignature(SignatureNode *node) { return visitChildren(node); } |
74 |
|
|
|
75 |
|
✗ |
std::any ASTVisitor::visitDeclStmt(DeclStmtNode *node) { return visitChildren(node); } |
76 |
|
|
|
77 |
|
1788 |
std::any ASTVisitor::visitSpecifierLst(SpecifierLstNode *node) { return visitChildren(node); } |
78 |
|
|
|
79 |
|
1788 |
std::any ASTVisitor::visitSpecifier(SpecifierNode *node) { return visitChildren(node); } |
80 |
|
|
|
81 |
|
2522 |
std::any ASTVisitor::visitModAttr(ModAttrNode *node) { return visitChildren(node); } |
82 |
|
|
|
83 |
|
169 |
std::any ASTVisitor::visitTopLevelDefinitionAttr(TopLevelDefinitionAttrNode *node) { return visitChildren(node); } |
84 |
|
|
|
85 |
|
✗ |
std::any ASTVisitor::visitLambdaAttr(LambdaAttrNode *node) { return visitChildren(node); } |
86 |
|
|
|
87 |
|
2968 |
std::any ASTVisitor::visitAttrLst(AttrLstNode *node) { return visitChildren(node); } |
88 |
|
|
|
89 |
|
3155 |
std::any ASTVisitor::visitAttr(AttrNode *node) { return visitChildren(node); } |
90 |
|
|
|
91 |
|
✗ |
std::any ASTVisitor::visitCaseConstant(CaseConstantNode *node) { return visitChildren(node); } |
92 |
|
|
|
93 |
|
5609 |
std::any ASTVisitor::visitReturnStmt(ReturnStmtNode *node) { return visitChildren(node); } |
94 |
|
|
|
95 |
|
98 |
std::any ASTVisitor::visitBreakStmt(BreakStmtNode *node) { return visitChildren(node); } |
96 |
|
|
|
97 |
|
171 |
std::any ASTVisitor::visitContinueStmt(ContinueStmtNode *node) { return visitChildren(node); } |
98 |
|
|
|
99 |
|
6 |
std::any ASTVisitor::visitFallthroughStmt(FallthroughStmtNode *node) { return visitChildren(node); } |
100 |
|
|
|
101 |
|
608 |
std::any ASTVisitor::visitAssertStmt(AssertStmtNode *node) { return visitChildren(node); } |
102 |
|
|
|
103 |
|
665 |
std::any ASTVisitor::visitPrintfCall(PrintfCallNode *node) { return visitChildren(node); } |
104 |
|
|
|
105 |
|
185 |
std::any ASTVisitor::visitSizeofCall(SizeofCallNode *node) { return visitChildren(node); } |
106 |
|
|
|
107 |
|
11 |
std::any ASTVisitor::visitAlignofCall(AlignofCallNode *node) { return visitChildren(node); } |
108 |
|
|
|
109 |
|
22 |
std::any ASTVisitor::visitLenCall(LenCallNode *node) { return visitChildren(node); } |
110 |
|
|
|
111 |
|
459 |
std::any ASTVisitor::visitPanicCall(PanicCallNode *node) { return visitChildren(node); } |
112 |
|
|
|
113 |
|
1 |
std::any ASTVisitor::visitSysCall(SysCallNode *node) { return visitChildren(node); } |
114 |
|
|
|
115 |
|
45148 |
std::any ASTVisitor::visitAssignExpr(AssignExprNode *node) { return visitChildren(node); } |
116 |
|
|
|
117 |
|
39738 |
std::any ASTVisitor::visitTernaryExpr(TernaryExprNode *node) { return visitChildren(node); } |
118 |
|
|
|
119 |
|
40245 |
std::any ASTVisitor::visitLogicalOrExpr(LogicalOrExprNode *node) { return visitChildren(node); } |
120 |
|
|
|
121 |
|
40569 |
std::any ASTVisitor::visitLogicalAndExpr(LogicalAndExprNode *node) { return visitChildren(node); } |
122 |
|
|
|
123 |
|
40681 |
std::any ASTVisitor::visitBitwiseOrExpr(BitwiseOrExprNode *node) { return visitChildren(node); } |
124 |
|
|
|
125 |
|
40711 |
std::any ASTVisitor::visitBitwiseXorExpr(BitwiseXorExprNode *node) { return visitChildren(node); } |
126 |
|
|
|
127 |
|
40713 |
std::any ASTVisitor::visitBitwiseAndExpr(BitwiseAndExprNode *node) { return visitChildren(node); } |
128 |
|
|
|
129 |
|
40735 |
std::any ASTVisitor::visitEqualityExpr(EqualityExprNode *node) { return visitChildren(node); } |
130 |
|
|
|
131 |
|
44289 |
std::any ASTVisitor::visitRelationalExpr(RelationalExprNode *node) { return visitChildren(node); } |
132 |
|
|
|
133 |
|
45862 |
std::any ASTVisitor::visitShiftExpr(ShiftExprNode *node) { return visitChildren(node); } |
134 |
|
|
|
135 |
|
45876 |
std::any ASTVisitor::visitAdditiveExpr(AdditiveExprNode *node) { return visitChildren(node); } |
136 |
|
|
|
137 |
|
48501 |
std::any ASTVisitor::visitMultiplicativeExpr(MultiplicativeExprNode *node) { return visitChildren(node); } |
138 |
|
|
|
139 |
|
49477 |
std::any ASTVisitor::visitCastExpr(CastExprNode *node) { return visitChildren(node); } |
140 |
|
|
|
141 |
|
55800 |
std::any ASTVisitor::visitPrefixUnaryExpr(PrefixUnaryExprNode *node) { return visitChildren(node); } |
142 |
|
|
|
143 |
|
70835 |
std::any ASTVisitor::visitPostfixUnaryExpr(PostfixUnaryExprNode *node) { return visitChildren(node); } |
144 |
|
|
|
145 |
|
54887 |
std::any ASTVisitor::visitAtomicExpr(AtomicExprNode *node) { return visitChildren(node); } |
146 |
|
|
|
147 |
|
10890 |
std::any ASTVisitor::visitValue(ValueNode *node) { return visitChildren(node); } |
148 |
|
|
|
149 |
|
9688 |
std::any ASTVisitor::visitConstant(ConstantNode *node) { return visitChildren(node); } |
150 |
|
|
|
151 |
|
9956 |
std::any ASTVisitor::visitFctCall(FctCallNode *node) { return visitChildren(node); } |
152 |
|
|
|
153 |
|
61 |
std::any ASTVisitor::visitArrayInitialization(ArrayInitializationNode *node) { return visitChildren(node); } |
154 |
|
|
|
155 |
|
138 |
std::any ASTVisitor::visitStructInstantiation(StructInstantiationNode *node) { return visitChildren(node); } |
156 |
|
|
|
157 |
|
✗ |
std::any ASTVisitor::visitLambdaFunc(LambdaFuncNode *node) { return visitChildren(node); } |
158 |
|
|
|
159 |
|
✗ |
std::any ASTVisitor::visitLambdaProc(LambdaProcNode *node) { return visitChildren(node); } |
160 |
|
|
|
161 |
|
✗ |
std::any ASTVisitor::visitLambdaExpr(LambdaExprNode *node) { return visitChildren(node); } |
162 |
|
|
|
163 |
|
4108 |
std::any ASTVisitor::visitDataType(DataTypeNode *node) { return visitChildren(node); } |
164 |
|
|
|
165 |
|
4108 |
std::any ASTVisitor::visitBaseDataType(BaseDataTypeNode *node) { return visitChildren(node); } |
166 |
|
|
|
167 |
|
1447 |
std::any ASTVisitor::visitCustomDataType(CustomDataTypeNode *node) { return visitChildren(node); } |
168 |
|
|
|
169 |
|
3 |
std::any ASTVisitor::visitFunctionDataType(FunctionDataTypeNode *node) { return visitChildren(node); } |
170 |
|
|
|
171 |
|
|
} // namespace spice::compiler |
172 |
|
|
|