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

Method preVisit

src/ast/ast_visitor.cpp:26–29  ·  view source on GitHub ↗

function

Source from the content-addressed store, hash-verified

24 }
25 // function
26 virtual void preVisit ( Function * f ) override {
27 Visitor::preVisit(f);
28 astc.func = f;
29 }
30 virtual FunctionPtr visit ( Function * that ) override {
31 // if any of this asserts failed, there is logic error in how we pop
32 DAS_ASSERT(astc.loop.size()==0);

Callers

nothing calls this directly

Calls 2

preVisitFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected