Changes in src/SynTree/Constant.h [39156ed:7870799]
- File:
-
- 1 edited
-
src/SynTree/Constant.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.h
r39156ed 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.