MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / assignDefaultArguments

Function assignDefaultArguments

src/ast/ast_generate.cpp:2316–2326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2314 }
2315
2316 void assignDefaultArguments ( Function * func ) {
2317 for ( auto & arg : func->arguments ) {
2318 if ( arg->type->baseType==Type::fakeContext ) {
2319 arg->init = new ExprFakeContext(arg->at);
2320 arg->init->generated = true;
2321 } else if ( arg->type->baseType==Type::fakeLineInfo ) {
2322 arg->init = new ExprFakeLineInfo(arg->at);
2323 arg->init->generated = true;
2324 }
2325 }
2326 }
2327}
2328

Callers 4

yyparseFunction · 0.85
yyparseFunction · 0.85
ast_structVarDefFunction · 0.85
yyparseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected