MCPcopy Create free account
hub / github.com/carbonengine/trinity / NewFunctionCall

Function NewFunctionCall

shadercompiler/ParserUtils.cpp:1175–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173}
1174
1175ASTNode* 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
1188ASTNode* NewCastExpression( ParserState& state, const Type& type, ASTNode* child )
1189{

Callers 1

PatchRtShaderFunction · 0.85

Calls 5

MakeInlineStringFunction · 0.85
NewNodeMethod · 0.80
SetTokenMethod · 0.80
AddChildMethod · 0.80
SetTypeMethod · 0.45

Tested by

no test coverage detected