Changes in src/SynTree/VarExprReplacer.h [c3b3799:c0b9f5d]
- File:
-
- 1 edited
-
src/SynTree/VarExprReplacer.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/VarExprReplacer.h
rc3b3799 rc0b9f5d 23 23 class VariableExpr; 24 24 25 /// Visitor that replaces the declarations that VariableExprs refer to, according to the supplied mapping 26 class VarExprReplacer : public Visitor { 27 public: 25 namespace VarExprReplacer { 28 26 typedef std::map< DeclarationWithType *, DeclarationWithType * > DeclMap; 29 private:30 const DeclMap & declMap;31 bool debug;32 public:33 VarExprReplacer( const DeclMap & declMap, bool debug = false );34 27 35 // replace variable with new node from decl map 36 virtual void visit( VariableExpr * varExpr ); 37 38 static void replace( BaseSyntaxNode * node, const DeclMap & declMap, bool debug = false ) { 39 VarExprReplacer replacer( declMap, debug ); 40 maybeAccept( node, replacer ); 41 } 42 }; 28 void replace( BaseSyntaxNode * node, const DeclMap & declMap, bool debug = false ); 29 } 43 30 44 31 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.