Changeset d9a0e76 for translator/ControlStruct/LabelTypeChecker.h
- Timestamp:
- Dec 16, 2014, 9:41:50 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 17cd4eb
- Parents:
- 3848e0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ControlStruct/LabelTypeChecker.h
r3848e0e rd9a0e76 9 9 10 10 namespace ControlStruct { 11 class LabelTypeChecker : public Visitor { 12 public: 13 //LabelTypeChecker() { 11 14 12 class LabelTypeChecker : public Visitor 13 { 14 public: 15 //LabelTypeChecker() { 16 17 virtual void visit(CompoundStmt *compoundStmt); 18 virtual void visit(DeclStmt *declStmt); 19 virtual void visit(BranchStmt *branchStmt); 20 virtual void visit(UntypedExpr *untypedExpr); 21 private: 22 SymTab::Indexer index; 23 }; 24 15 virtual void visit( CompoundStmt *compoundStmt ); 16 virtual void visit( DeclStmt *declStmt ); 17 virtual void visit( BranchStmt *branchStmt ); 18 virtual void visit( UntypedExpr *untypedExpr ); 19 private: 20 SymTab::Indexer index; 21 }; 25 22 } // namespace ControlStruct 26 23 27 #endif // #ifndefLABEL_TYPE_H24 #endif // LABEL_TYPE_H 28 25 29 26 /*
Note: See TracChangeset
for help on using the changeset viewer.