Changeset e67991f for src/Common


Ignore:
Timestamp:
Jul 16, 2019, 10:38:32 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
6f15121
Parents:
7dc2e57b
Message:

WithStmt? is now a Declaration

Location:
src/Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    r7dc2e57b re67991f  
    279279        virtual Statement * mutate( FinallyStmt * finallyStmt ) override final;
    280280        virtual Statement * mutate( WaitForStmt * waitforStmt ) override final;
    281         virtual Statement * mutate( WithStmt * withStmt ) override final;
     281        virtual Declaration * mutate( WithStmt * withStmt ) override final;
    282282        virtual NullStmt * mutate( NullStmt * nullStmt ) override final;
    283283        virtual Statement * mutate( DeclStmt * declStmt ) override final;
     
    420420        void indexerAddUnionFwd ( const UnionDecl           * node  ) { indexer_impl_addUnionFwd ( pass, 0, node ); }
    421421        void indexerAddTrait    ( const TraitDecl           * node  ) { indexer_impl_addTrait    ( pass, 0, node ); }
    422         void indexerAddWith     ( const std::list< Expression * > & exprs, const BaseSyntaxNode * withStmt ) { indexer_impl_addWith( pass, 0, exprs, withStmt ); }
     422        void indexerAddWith     ( const std::list< Expression * > & exprs, const Declaration * withStmt ) { indexer_impl_addWith( pass, 0, exprs, withStmt ); }
    423423
    424424
  • src/Common/PassVisitor.impl.h

    r7dc2e57b re67991f  
    16171617
    16181618template< typename pass_type >
    1619 Statement * PassVisitor< pass_type >::mutate( WithStmt * node ) {
     1619Declaration * PassVisitor< pass_type >::mutate( WithStmt * node ) {
    16201620        MUTATE_START( node );
    16211621        maybeMutate_impl( node->exprs, *this );
     
    16261626                maybeMutate_impl( node->stmt, *this );
    16271627        }
    1628         MUTATE_END( Statement, node );
     1628        MUTATE_END( Declaration, node );
    16291629}
    16301630
  • src/Common/PassVisitor.proto.h

    r7dc2e57b re67991f  
    235235INDEXER_FUNC1( addUnion  , const UnionDecl *                 );
    236236INDEXER_FUNC1( addTrait  , const TraitDecl *                 );
    237 INDEXER_FUNC2( addWith   , const std::list< Expression * > &, const BaseSyntaxNode * );
     237INDEXER_FUNC2( addWith   , const std::list< Expression * > &, const Declaration * );
    238238
    239239#undef INDEXER_FUNC1
Note: See TracChangeset for help on using the changeset viewer.