Changes in src/Common/PassVisitor.impl.h [033ff37:e67991f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
r033ff37 re67991f 2302 2302 2303 2303 //-------------------------------------------------------------------------- 2304 // AttrExpr 2305 template< typename pass_type > 2306 void PassVisitor< pass_type >::visit( AttrExpr * node ) { 2307 VISIT_START( node ); 2308 2309 indexerScopedAccept( node->result, *this ); 2310 if ( node->get_isType() ) { 2311 maybeAccept_impl( node->type, *this ); 2312 } else { 2313 maybeAccept_impl( node->expr, *this ); 2314 } 2315 2316 VISIT_END( node ); 2317 } 2318 2319 template< typename pass_type > 2320 void PassVisitor< pass_type >::visit( const AttrExpr * node ) { 2321 VISIT_START( node ); 2322 2323 indexerScopedAccept( node->result, *this ); 2324 if ( node->get_isType() ) { 2325 maybeAccept_impl( node->type, *this ); 2326 } else { 2327 maybeAccept_impl( node->expr, *this ); 2328 } 2329 2330 VISIT_END( node ); 2331 } 2332 2333 template< typename pass_type > 2334 Expression * PassVisitor< pass_type >::mutate( AttrExpr * node ) { 2335 MUTATE_START( node ); 2336 2337 indexerScopedMutate( node->env , *this ); 2338 indexerScopedMutate( node->result, *this ); 2339 if ( node->get_isType() ) { 2340 maybeMutate_impl( node->type, *this ); 2341 } else { 2342 maybeMutate_impl( node->expr, *this ); 2343 } 2344 2345 MUTATE_END( Expression, node ); 2346 } 2347 2348 //-------------------------------------------------------------------------- 2304 2349 // LogicalExpr 2305 2350 template< typename pass_type >
Note:
See TracChangeset
for help on using the changeset viewer.