Changeset bff09c8 for src/ResolvExpr
- Timestamp:
- Sep 14, 2017, 1:57:20 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- aa685db
- Parents:
- 522363e
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativePrinter.cc
r522363e rbff09c8 26 26 27 27 namespace ResolvExpr { 28 AlternativePrinter::AlternativePrinter( std::ostream &os ) : SymTab::Indexer( false ),os( os ) {}28 AlternativePrinter::AlternativePrinter( std::ostream &os ) : os( os ) {} 29 29 30 void AlternativePrinter:: visit( ExprStmt *exprStmt ) {30 void AlternativePrinter::postvisit( ExprStmt *exprStmt ) { 31 31 TypeEnvironment env; 32 AlternativeFinder finder( *this, env );32 AlternativeFinder finder( indexer, env ); 33 33 finder.findWithAdjustment( exprStmt->get_expr() ); 34 34 int count = 1; -
src/ResolvExpr/AlternativePrinter.h
r522363e rbff09c8 18 18 #include <iostream> // for ostream 19 19 20 #include " SymTab/Indexer.h" // for Indexer20 #include "Common/PassVisitor.h" 21 21 22 22 class ExprStmt; 23 23 24 24 namespace ResolvExpr { 25 class AlternativePrinter final : public SymTab::Indexer {25 class AlternativePrinter final : public WithIndexer { 26 26 public: 27 27 AlternativePrinter( std::ostream &os ); 28 28 29 using SymTab::Indexer::visit; 30 virtual void visit( ExprStmt *exprStmt ) override; 29 void postvisit( ExprStmt *exprStmt ); 31 30 private: 32 31 std::ostream &os;
Note: See TracChangeset
for help on using the changeset viewer.