MCPcopy Create free account
hub / github.com/devosoft/avida / VisitForeachBlock

Method VisitForeachBlock

avida-core/source/script/cDumpASTVisitor.cc:105–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105void cDumpASTVisitor::VisitForeachBlock(cASTForeachBlock& node)
106{
107 indent();
108 cout << "foreach:" << endl;
109
110 m_depth++;
111 node.GetVariable()->Accept(*this);
112
113 indent();
114 cout << "values:" << endl;
115 m_depth++;
116 node.GetValues()->Accept(*this);
117
118 m_depth--;
119 indent();
120 cout << "code:" << endl;
121
122 m_depth++;
123 node.GetCode()->Accept(*this);
124 m_depth--;
125
126 m_depth--;
127}
128
129
130void cDumpASTVisitor::VisitIfBlock(cASTIfBlock& node)

Callers 1

AcceptMethod · 0.45

Calls 4

AcceptMethod · 0.80
GetVariableMethod · 0.80
GetValuesMethod · 0.45
GetCodeMethod · 0.45

Tested by

no test coverage detected