| 1173 | } |
| 1174 | |
| 1175 | ASTNode* NewFunctionCall( ParserState& state, const Type& type, const char* name, const std::vector<ASTNode*>& args ) |
| 1176 | { |
| 1177 | ScannerToken token = ScannerToken::ID( MakeInlineString( name ) ); |
| 1178 | auto ctr = state.NewNode( NT_FUNCTION_CALL ); |
| 1179 | ctr->SetToken( &token ); |
| 1180 | ctr->SetType( type ); |
| 1181 | for( auto arg : args ) |
| 1182 | { |
| 1183 | ctr->AddChild( arg ); |
| 1184 | } |
| 1185 | return ctr; |
| 1186 | } |
| 1187 | |
| 1188 | ASTNode* NewCastExpression( ParserState& state, const Type& type, ASTNode* child ) |
| 1189 | { |
no test coverage detected