GCC Code Coverage Report


Directory: ../
File: src/ast/ASTVisitor.cpp
Date: 2025-08-26 18:26:32
Exec Total Coverage
Lines: 52 85 61.2%
Functions: 52 85 61.2%
Branches: 0 0 -%

Line Branch Exec Source
1 // Copyright (c) 2021-2025 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 517 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 12 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 19054 std::any ASTVisitor::visitStmtLst(StmtLstNode *node) { return visitChildren(node); }
58
59 1084 std::any ASTVisitor::visitTypeLst(TypeLstNode *node) { return visitChildren(node); }
60
61 std::any ASTVisitor::visitTypeLstWithEllipsis(TypeLstWithEllipsisNode *node) { return visitChildren(node); }
62
63 std::any ASTVisitor::visitTypeAltsLst(TypeAltsLstNode *node) { return visitChildren(node); }
64
65 8024 std::any ASTVisitor::visitParamLst(ParamLstNode *node) { return visitChildren(node); }
66
67 11297 std::any ASTVisitor::visitArgLst(ArgLstNode *node) { return visitChildren(node); }
68
69 65 std::any ASTVisitor::visitEnumItemLst(EnumItemLstNode *node) { return visitChildren(node); }
70
71 std::any ASTVisitor::visitEnumItem(EnumItemNode *node) { return visitChildren(node); }
72
73 std::any ASTVisitor::visitField(FieldNode *node) { return visitChildren(node); }
74
75 std::any ASTVisitor::visitSignature(SignatureNode *node) { return visitChildren(node); }
76
77 std::any ASTVisitor::visitDeclStmt(DeclStmtNode *node) { return visitChildren(node); }
78
79 23285 std::any ASTVisitor::visitExprStmt(ExprStmtNode *node) { return visitChildren(node); }
80
81 2456 std::any ASTVisitor::visitQualifierLst(QualifierLstNode *node) { return visitChildren(node); }
82
83 2456 std::any ASTVisitor::visitQualifier(QualifierNode *node) { return visitChildren(node); }
84
85 781 std::any ASTVisitor::visitModAttr(ModAttrNode *node) { return visitChildren(node); }
86
87 467 std::any ASTVisitor::visitTopLevelDefinitionAttr(TopLevelDefinitionAttrNode *node) { return visitChildren(node); }
88
89 std::any ASTVisitor::visitLambdaAttr(LambdaAttrNode *node) { return visitChildren(node); }
90
91 1552 std::any ASTVisitor::visitAttrLst(AttrLstNode *node) { return visitChildren(node); }
92
93 1657 std::any ASTVisitor::visitAttr(AttrNode *node) { return visitChildren(node); }
94
95 std::any ASTVisitor::visitCaseConstant(CaseConstantNode *node) { return visitChildren(node); }
96
97 8538 std::any ASTVisitor::visitReturnStmt(ReturnStmtNode *node) { return visitChildren(node); }
98
99 105 std::any ASTVisitor::visitBreakStmt(BreakStmtNode *node) { return visitChildren(node); }
100
101 183 std::any ASTVisitor::visitContinueStmt(ContinueStmtNode *node) { return visitChildren(node); }
102
103 6 std::any ASTVisitor::visitFallthroughStmt(FallthroughStmtNode *node) { return visitChildren(node); }
104
105 687 std::any ASTVisitor::visitAssertStmt(AssertStmtNode *node) { return visitChildren(node); }
106
107 1938 std::any ASTVisitor::visitBuiltinCall(BuiltinCallNode *node) { return visitChildren(node); }
108
109 790 std::any ASTVisitor::visitPrintfCall(PrintfCallNode *node) { return visitChildren(node); }
110
111 217 std::any ASTVisitor::visitSizeofCall(SizeofCallNode *node) { return visitChildren(node); }
112
113 11 std::any ASTVisitor::visitAlignofCall(AlignofCallNode *node) { return visitChildren(node); }
114
115 2 std::any ASTVisitor::visitTypeidCall(TypeidCallNode *node) { return visitChildren(node); }
116
117 112 std::any ASTVisitor::visitLenCall(LenCallNode *node) { return visitChildren(node); }
118
119 805 std::any ASTVisitor::visitPanicCall(PanicCallNode *node) { return visitChildren(node); }
120
121 1 std::any ASTVisitor::visitSysCall(SysCallNode *node) { return visitChildren(node); }
122
123 64937 std::any ASTVisitor::visitAssignExpr(AssignExprNode *node) { return visitChildren(node); }
124
125 58327 std::any ASTVisitor::visitTernaryExpr(TernaryExprNode *node) { return visitChildren(node); }
126
127 59158 std::any ASTVisitor::visitLogicalOrExpr(LogicalOrExprNode *node) { return visitChildren(node); }
128
129 60297 std::any ASTVisitor::visitLogicalAndExpr(LogicalAndExprNode *node) { return visitChildren(node); }
130
131 60534 std::any ASTVisitor::visitBitwiseOrExpr(BitwiseOrExprNode *node) { return visitChildren(node); }
132
133 60600 std::any ASTVisitor::visitBitwiseXorExpr(BitwiseXorExprNode *node) { return visitChildren(node); }
134
135 60607 std::any ASTVisitor::visitBitwiseAndExpr(BitwiseAndExprNode *node) { return visitChildren(node); }
136
137 60626 std::any ASTVisitor::visitEqualityExpr(EqualityExprNode *node) { return visitChildren(node); }
138
139 65220 std::any ASTVisitor::visitRelationalExpr(RelationalExprNode *node) { return visitChildren(node); }
140
141 67461 std::any ASTVisitor::visitShiftExpr(ShiftExprNode *node) { return visitChildren(node); }
142
143 67575 std::any ASTVisitor::visitAdditiveExpr(AdditiveExprNode *node) { return visitChildren(node); }
144
145 71091 std::any ASTVisitor::visitMultiplicativeExpr(MultiplicativeExprNode *node) { return visitChildren(node); }
146
147 72206 std::any ASTVisitor::visitCastExpr(CastExprNode *node) { return visitChildren(node); }
148
149 77476 std::any ASTVisitor::visitPrefixUnaryExpr(PrefixUnaryExprNode *node) { return visitChildren(node); }
150
151 96439 std::any ASTVisitor::visitPostfixUnaryExpr(PostfixUnaryExprNode *node) { return visitChildren(node); }
152
153 76364 std::any ASTVisitor::visitAtomicExpr(AtomicExprNode *node) { return visitChildren(node); }
154
155 15753 std::any ASTVisitor::visitValue(ValueNode *node) { return visitChildren(node); }
156
157 13997 std::any ASTVisitor::visitConstant(ConstantNode *node) { return visitChildren(node); }
158
159 14298 std::any ASTVisitor::visitFctCall(FctCallNode *node) { return visitChildren(node); }
160
161 66 std::any ASTVisitor::visitArrayInitialization(ArrayInitializationNode *node) { return visitChildren(node); }
162
163 213 std::any ASTVisitor::visitStructInstantiation(StructInstantiationNode *node) { return visitChildren(node); }
164
165 std::any ASTVisitor::visitLambdaFunc(LambdaFuncNode *node) { return visitChildren(node); }
166
167 std::any ASTVisitor::visitLambdaProc(LambdaProcNode *node) { return visitChildren(node); }
168
169 std::any ASTVisitor::visitLambdaExpr(LambdaExprNode *node) { return visitChildren(node); }
170
171 5357 std::any ASTVisitor::visitDataType(DataTypeNode *node) { return visitChildren(node); }
172
173 5357 std::any ASTVisitor::visitBaseDataType(BaseDataTypeNode *node) { return visitChildren(node); }
174
175 1859 std::any ASTVisitor::visitCustomDataType(CustomDataTypeNode *node) { return visitChildren(node); }
176
177 3 std::any ASTVisitor::visitFunctionDataType(FunctionDataTypeNode *node) { return visitChildren(node); }
178
179 } // namespace spice::compiler
180