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

Function NewCastExpression

shadercompiler/ParserUtils.cpp:1188–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1186}
1187
1188ASTNode* NewCastExpression( ParserState& state, const Type& type, ASTNode* child )
1189{
1190 auto cast = state.NewNode( NT_CAST_EXPRESSION );
1191 cast->SetType( type );
1192 cast->AddChild( child );
1193 return cast;
1194}
1195
1196ASTNode* NewExpressionStatement( ParserState& state, ASTNode* expr )
1197{

Callers 1

PatchRtShaderFunction · 0.85

Calls 3

NewNodeMethod · 0.80
AddChildMethod · 0.80
SetTypeMethod · 0.45

Tested by

no test coverage detected