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