Changeset 712348a


Ignore:
Timestamp:
May 13, 2019, 5:10:04 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
6d51bd7
Parents:
768b3b4f
Message:

Removed all traces of SubRange? which didn't actually exist and made some more fields public

Location:
src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    r768b3b4f r712348a  
    155155        virtual void visit( ConstructorInit * ctorInit ) override final;
    156156
    157         virtual void visit( Subrange * subrange ) override final;
    158 
    159157        virtual void visit( Constant * constant ) override final;
    160158
     
    257255        virtual Initializer * mutate( ConstructorInit * ctorInit ) override final;
    258256
    259         virtual Subrange * mutate( Subrange * subrange ) override final;
    260 
    261257        virtual Constant * mutate( Constant * constant ) override final;
    262258
  • src/Common/PassVisitor.impl.h

    r768b3b4f r712348a  
    27122712
    27132713//--------------------------------------------------------------------------
    2714 // Subrange
    2715 template< typename pass_type >
    2716 void PassVisitor< pass_type >::visit( Subrange * node ) {
    2717         VISIT_START( node );
    2718 
    2719         VISIT_END( node );
    2720 }
    2721 
    2722 template< typename pass_type >
    2723 Subrange * PassVisitor< pass_type >::mutate( Subrange * node  )  {
    2724         MUTATE_START( node );
    2725 
    2726         MUTATE_END( Subrange, node );
    2727 }
    2728 
    2729 //--------------------------------------------------------------------------
    27302714// Attribute
    27312715template< typename pass_type >
  • src/SynTree/Declaration.h

    r768b3b4f r712348a  
    245245        virtual void print( std::ostream &os, Indenter indent = {} ) const override;
    246246
    247   private:
    248247        Kind kind;
    249248};
     
    306305        virtual void accept( Visitor &v ) override { v.visit( this ); }
    307306        virtual Declaration *acceptMutator( Mutator &m )  override { return m.mutate( this ); }
    308   private:
    309307        DeclarationNode::Aggregate kind;
     308  private:
    310309        virtual std::string typeString() const override;
    311310};
  • src/SynTree/Label.h

    r768b3b4f r712348a  
    3535        operator std::string() const { return name; }
    3636        bool empty() { return name.empty(); }
    37   private:
     37
    3838        std::string name;
    3939        Statement * labelled;
  • src/SynTree/Mutator.h

    r768b3b4f r712348a  
    121121        virtual Initializer * mutate( ConstructorInit * ctorInit ) = 0 ;
    122122
    123         virtual Subrange * mutate( Subrange * subrange ) = 0;
    124 
    125123        virtual Constant * mutate( Constant * constant ) = 0;
    126124
  • src/SynTree/SynTree.h

    r768b3b4f r712348a  
    132132class ConstructorInit;
    133133
    134 class Subrange;
    135 
    136134//template <class T>    // emulate a union with templates?
    137135class Constant;
  • src/SynTree/Visitor.h

    r768b3b4f r712348a  
    123123        virtual void visit( ConstructorInit * ctorInit ) = 0;
    124124
    125         virtual void visit( Subrange * subrange ) = 0;
    126 
    127125        virtual void visit( Constant * constant ) = 0;
    128126
Note: See TracChangeset for help on using the changeset viewer.