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

Function srcNeedTempVar

src/ast/ast_generate.cpp:1428–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426 }
1427
1428 bool srcNeedTempVar ( Expression * src, TypeDecl * type ) {
1429 if ( !type->isRef() ) return false;
1430 return src->rtti_isCallLikeExpr() || src->rtti_isMakeLocal();
1431 }
1432
1433 ExpressionPtr replaceGeneratorFor ( ExprFor * expr, const FunctionPtr & func ) {
1434 auto begin_loop_label = func->totalGenLabel ++;

Callers 1

replaceGeneratorForFunction · 0.85

Calls 1

isRefMethod · 0.80

Tested by

no test coverage detected