Changeset 7870799 for src/SynTree/Constant.h
- Timestamp:
- Jul 12, 2019, 10:49:02 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ef5b828
- Parents:
- ee6dbae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.h
ree6dbae r7870799 33 33 virtual ~Constant(); 34 34 35 virtual Constant * clone() const { return new Constant( *this ); }35 virtual Constant * clone() const override { return new Constant( *this ); } 36 36 37 37 Type * get_type() { return type; } … … 51 51 static Constant null( Type * ptrtype = nullptr ); 52 52 53 virtual void accept( Visitor & v ) { v.visit( this ); } 54 virtual Constant * acceptMutator( Mutator & m ) { return m.mutate( this ); } 55 virtual void print( std::ostream & os, Indenter indent = 0 ) const; 56 private: 53 virtual void accept( Visitor & v ) override { v.visit( this ); } 54 virtual void accept( Visitor & v ) const override { v.visit( this ); } 55 virtual Constant * acceptMutator( Mutator & m ) override { return m.mutate( this ); } 56 virtual void print( std::ostream & os, Indenter indent = 0 ) const override; 57 57 58 Type * type; 58 59 std::string rep; 59 60 std::optional<unsigned long long> ival; 60 61 friend class ConverterOldToNew;62 61 }; 63 62
Note: See TracChangeset
for help on using the changeset viewer.