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

Method preVisit

src/ast/ast_allocate_stack.cpp:30–33  ·  view source on GitHub ↗

function

Source from the content-addressed store, hash-verified

28 virtual bool canVisitFunction ( Function * fun ) override { return !fun->isTemplate && !fun->stub && (isEverything || fun->used); }
29 // function
30 virtual void preVisit ( Function * f ) override {
31 Visitor::preVisit(f);
32 func = f;
33 }
34 virtual FunctionPtr visit ( Function * that ) override {
35 if ( cmresVAR && !failedToCMRES ) cmresVAR->aliasCMRES = true;
36 func = nullptr;

Callers

nothing calls this directly

Calls 4

preVisitFunction · 0.85
push_backMethod · 0.45
sizeMethod · 0.45
isRefTypeMethod · 0.45

Tested by

no test coverage detected