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

Method preVisit

src/ast/ast_allocate_stack.cpp:1014–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012 class RenameVariables : public Visitor {
1013 public:
1014 virtual void preVisit ( ExprVar * var ) override {
1015 Visitor::preVisit(var);
1016 auto it = variables.find(var->variable);
1017 if ( it != variables.end() ) {
1018 var->name = it->second;
1019 }
1020 }
1021 virtual void preVisit ( ExprLet * let ) override {
1022 Visitor::preVisit(let);
1023 for ( auto & v : let->variables ) {

Callers

nothing calls this directly

Calls 3

preVisitFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected