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

Method PostCheck

avida-core/source/script/cSemanticASTVisitor.cc:872–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870}
871
872void cSemanticASTVisitor::PostCheck()
873{
874 // Check all functions in the current scope level and make sure they have been defined
875 cSymbolTable::cFunctionIterator fit = m_global_symtbl->ActiveFunctionIterator();
876 while (fit.Next()) if (!fit.HasCode())
877 reportError(AS_SEMANTIC_ERR_FUNCTION_UNDEFINED, m_global_symtbl->GetFunctionDefinition(0)->GetFilePosition()
878 , __LINE__, (const char*)fit.GetName());
879}
880
881
882

Callers 1

mainFunction · 0.80

Calls 5

HasCodeMethod · 0.80
GetFunctionDefinitionMethod · 0.80
NextMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected