Changeset 712348a for src/SynTree
- Timestamp:
- May 13, 2019, 5:10:04 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6d51bd7
- Parents:
- 768b3b4f
- Location:
- src/SynTree
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r768b3b4f r712348a 245 245 virtual void print( std::ostream &os, Indenter indent = {} ) const override; 246 246 247 private:248 247 Kind kind; 249 248 }; … … 306 305 virtual void accept( Visitor &v ) override { v.visit( this ); } 307 306 virtual Declaration *acceptMutator( Mutator &m ) override { return m.mutate( this ); } 308 private:309 307 DeclarationNode::Aggregate kind; 308 private: 310 309 virtual std::string typeString() const override; 311 310 }; -
src/SynTree/Label.h
r768b3b4f r712348a 35 35 operator std::string() const { return name; } 36 36 bool empty() { return name.empty(); } 37 private: 37 38 38 std::string name; 39 39 Statement * labelled; -
src/SynTree/Mutator.h
r768b3b4f r712348a 121 121 virtual Initializer * mutate( ConstructorInit * ctorInit ) = 0 ; 122 122 123 virtual Subrange * mutate( Subrange * subrange ) = 0;124 125 123 virtual Constant * mutate( Constant * constant ) = 0; 126 124 -
src/SynTree/SynTree.h
r768b3b4f r712348a 132 132 class ConstructorInit; 133 133 134 class Subrange;135 136 134 //template <class T> // emulate a union with templates? 137 135 class Constant; -
src/SynTree/Visitor.h
r768b3b4f r712348a 123 123 virtual void visit( ConstructorInit * ctorInit ) = 0; 124 124 125 virtual void visit( Subrange * subrange ) = 0;126 127 125 virtual void visit( Constant * constant ) = 0; 128 126
Note: See TracChangeset
for help on using the changeset viewer.