| 2491 | } |
| 2492 | |
| 2493 | inline |
| 2494 | AST::Expression* |
| 2495 | makeFunctionCall( 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 | } |
no test coverage detected