MCPcopy Create free account
hub / github.com/BrunoLevy/geogram / makeFunctionCall

Function makeFunctionCall

src/bin/fpg/parse.tab.cpp:2493–2503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2491}
2492
2493inline
2494AST::Expression*
2495makeFunctionCall( const std::string &id, AST::ExpressionList *l ) {
2496 if( l == nullptr )
2497 l = new AST::ExpressionList();
2498 FunctionType *fun_type = symbol_env.findFunction( id, (unsigned int)(l->size()) );
2499 if( fun_type == nullptr ) {
2500 yyerror( std::string("function ") + id + " not declared!" );
2501 }
2502 return new AST::FunctionCall( fun_type, l );
2503}

Callers 1

yyparseFunction · 0.85

Calls 3

yyerrorFunction · 0.85
findFunctionMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected