7 #include "ast_visitor.h"
19 typedef std::pair<int, Symbol *> RankedVar;
23 std::map<Symbol *, RankedVar> m_ranked_var_map;
29 std::vector<RankedVar> get_ranked_vars()
const;
Base class for AST visitors.
Definition: ast_visitor.h:7
Definition: loopvars.h:17
virtual void visit_variable_ref(Node *n)
Visit a Node with the AST_VARIABLE_REF tag value.
Definition: loopvars.cpp:77
virtual void visit_while_statement(Node *n)
Visit a Node with the AST_WHILE_STATEMENT tag value.
Definition: loopvars.cpp:46
virtual void visit_for_statement(Node *n)
Visit a Node with the AST_FOR_STATEMENT tag value.
Definition: loopvars.cpp:66
virtual void visit_do_while_statement(Node *n)
Visit a Node with the AST_DO_WHILE_STATEMENT tag value.
Definition: loopvars.cpp:56