Changeset e67991f for src/Common
- Timestamp:
- Jul 16, 2019, 10:38:32 AM (5 years ago)
- 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
- Location:
- src/Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.h
r7dc2e57b re67991f 279 279 virtual Statement * mutate( FinallyStmt * finallyStmt ) override final; 280 280 virtual Statement * mutate( WaitForStmt * waitforStmt ) override final; 281 virtual Statement* mutate( WithStmt * withStmt ) override final;281 virtual Declaration * mutate( WithStmt * withStmt ) override final; 282 282 virtual NullStmt * mutate( NullStmt * nullStmt ) override final; 283 283 virtual Statement * mutate( DeclStmt * declStmt ) override final; … … 420 420 void indexerAddUnionFwd ( const UnionDecl * node ) { indexer_impl_addUnionFwd ( pass, 0, node ); } 421 421 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 ); } 423 423 424 424 -
src/Common/PassVisitor.impl.h
r7dc2e57b re67991f 1617 1617 1618 1618 template< typename pass_type > 1619 Statement* PassVisitor< pass_type >::mutate( WithStmt * node ) {1619 Declaration * PassVisitor< pass_type >::mutate( WithStmt * node ) { 1620 1620 MUTATE_START( node ); 1621 1621 maybeMutate_impl( node->exprs, *this ); … … 1626 1626 maybeMutate_impl( node->stmt, *this ); 1627 1627 } 1628 MUTATE_END( Statement, node );1628 MUTATE_END( Declaration, node ); 1629 1629 } 1630 1630 -
src/Common/PassVisitor.proto.h
r7dc2e57b re67991f 235 235 INDEXER_FUNC1( addUnion , const UnionDecl * ); 236 236 INDEXER_FUNC1( addTrait , const TraitDecl * ); 237 INDEXER_FUNC2( addWith , const std::list< Expression * > &, const BaseSyntaxNode* );237 INDEXER_FUNC2( addWith , const std::list< Expression * > &, const Declaration * ); 238 238 239 239 #undef INDEXER_FUNC1
Note: See TracChangeset
for help on using the changeset viewer.