Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Constant.h

    r3c398b6 rd67cdb7  
    1919#include <string>     // for string
    2020
    21 #include "BaseSyntaxNode.h"
    2221#include "Mutator.h"  // for Mutator
    2322#include "Visitor.h"  // for Visitor
     
    2524class Type;
    2625
    27 class Constant : public BaseSyntaxNode {
     26class Constant {
    2827  public:
    2928        Constant( Type * type, std::string rep, unsigned long long val );
     
    3130        Constant( const Constant & other );
    3231        virtual ~Constant();
    33 
    34         virtual Constant * clone() const { return new Constant( *this ); }
    3532
    3633        Type * get_type() { return type; }
     
    5754        virtual void accept( Visitor & v ) { v.visit( this ); }
    5855        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;
    6057  private:
    6158        Type * type;
Note: See TracChangeset for help on using the changeset viewer.