Changeset bff09c8
- 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
- Files:
-
- 3 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; -
src/main.cc
r522363e rbff09c8 35 35 #include "CodeTools/DeclStats.h" // for printDeclStats 36 36 #include "CodeTools/TrackLoc.h" // for fillLocations 37 #include "Common/PassVisitor.h" 37 38 #include "Common/CompilerError.h" // for CompilerError 38 39 #include "Common/SemanticError.h" // for SemanticError … … 250 251 251 252 if ( expraltp ) { 252 ResolvExpr::AlternativePrinterprinter( cout );253 PassVisitor<ResolvExpr::AlternativePrinter> printer( cout ); 253 254 acceptAll( translationUnit, printer ); 254 255 return 0;
Note: See TracChangeset
for help on using the changeset viewer.