Changes in src/SynTree/Constant.h [7870799:39156ed]
- File:
-
- 1 edited
-
src/SynTree/Constant.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.h
r7870799 r39156ed 33 33 virtual ~Constant(); 34 34 35 virtual Constant * clone() const override{ return new Constant( *this ); }35 virtual Constant * clone() const { 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 ) 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 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: 58 57 Type * type; 59 58 std::string rep; 60 59 std::optional<unsigned long long> ival; 60 61 friend class ConverterOldToNew; 61 62 }; 62 63
Note:
See TracChangeset
for help on using the changeset viewer.