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

Function bodyHasTopLevelReturn

src/ast/ast_generate.cpp:1113–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111 };
1112
1113 bool bodyHasTopLevelReturn ( Expression * body ) {
1114 HasTopLevelReturnVisitor v;
1115 body->visit(v);
1116 return v.found;
1117 }
1118
1119 ExpressionPtr generateYield( ExprYield * expr, const FunctionPtr & func ) {
1120 const auto & yarg = func->arguments[1];

Callers 2

replaceGeneratorWhileFunction · 0.85
replaceGeneratorForFunction · 0.85

Calls 1

visitMethod · 0.45

Tested by

no test coverage detected