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

Method preVisit

src/ast/ast_typedecl.cpp:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 public:
19 TypeDeclVisitor ( TypeDecl * td ) : tracedType(td) {}
20 virtual void preVisit ( TypeDecl * td ) override {
21 Visitor::preVisit(td);
22 if ( td==tracedType ) {
23 os_debug_break(); // C++ stack contains the location (breakpoint goes here too)
24 }
25 }
26 virtual bool canVisitStructure ( Structure * ) override { return true; }
27 virtual bool canVisitGlobalVariable ( Variable * ) override { return true; }
28 virtual bool canVisitFunction ( Function * ) override { return true; }

Callers 1

visitMethod · 0.45

Calls 2

preVisitFunction · 0.85
os_debug_breakFunction · 0.85

Tested by

no test coverage detected