Changeset 712348a for src/SynTree


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

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

Location:
src/SynTree
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 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.