Changes in src/SynTree/Constant.h [3c398b6:d67cdb7]
- File:
-
- 1 edited
-
src/SynTree/Constant.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Constant.h
r3c398b6 rd67cdb7 19 19 #include <string> // for string 20 20 21 #include "BaseSyntaxNode.h"22 21 #include "Mutator.h" // for Mutator 23 22 #include "Visitor.h" // for Visitor … … 25 24 class Type; 26 25 27 class Constant : public BaseSyntaxNode{26 class Constant { 28 27 public: 29 28 Constant( Type * type, std::string rep, unsigned long long val ); … … 31 30 Constant( const Constant & other ); 32 31 virtual ~Constant(); 33 34 virtual Constant * clone() const { return new Constant( *this ); }35 32 36 33 Type * get_type() { return type; } … … 57 54 virtual void accept( Visitor & v ) { v.visit( this ); } 58 55 virtual Constant * acceptMutator( Mutator & m ) { return m.mutate( this ); } 59 virtual void print( std::ostream & os , int indent = 0) const;56 virtual void print( std::ostream & os ) const; 60 57 private: 61 58 Type * type;
Note:
See TracChangeset
for help on using the changeset viewer.