Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Constant.h

    r7870799 rc36298d  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jul 10 15:57:38 2019
    13 // Update Count     : 19
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Fri Spt 28 14:48:00 2018
     13// Update Count     : 18
    1414//
    1515
     
    3030        Constant( Type * type, std::string rep, std::optional<unsigned long long> i );
    3131        Constant( const Constant & other );
    32         Constant & operator=( const Constant & ) = default;
    3332        virtual ~Constant();
    3433
    35         virtual Constant * clone() const override { return new Constant( *this ); }
     34        virtual Constant * clone() const { return new Constant( *this ); }
    3635
    3736        Type * get_type() { return type; }
     
    5150        static Constant null( Type * ptrtype = nullptr );
    5251
    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 
     52        virtual void accept( Visitor & v ) { v.visit( this ); }
     53        virtual Constant * acceptMutator( Mutator & m ) { return m.mutate( this ); }
     54        virtual void print( std::ostream & os, Indenter indent = 0 ) const;
     55  private:
    5856        Type * type;
    5957        std::string rep;
    6058        std::optional<unsigned long long> ival;
     59
     60        friend class ConverterOldToNew;
    6161};
    6262
Note: See TracChangeset for help on using the changeset viewer.