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

Function initIsAllocatedOnStack

src/ast/ast_escape_analysis.cpp:259–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 }
258
259 static bool initIsAllocatedOnStack ( Expression * init ) {
260 if ( init && init->rtti_isNewExpr() ) return ((ExprNew *)init)->allocate_on_stack;
261 if ( init && init->rtti_isAscend() ) return ((ExprAscend *)init)->allocate_on_stack;
262 return false;
263 }
264
265 class ScopeFreeVisitor : public Visitor {
266 public:

Callers 1

visitLetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected