Changeset 86e84e4


Ignore:
Timestamp:
Feb 27, 2018, 5:07:44 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
cfaf9be
Parents:
54043f4
Message:

Expand VISIT/MUTATE_BODY for EnumInstType? and TypeInstType?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.impl.h

    r54043f4 r86e84e4  
    22132213template< typename pass_type >
    22142214void PassVisitor< pass_type >::visit( EnumInstType * node ) {
    2215         VISIT_BODY( node );
     2215        VISIT_START( node );
     2216
     2217        maybeAccept_impl( node->forall, *this );
     2218        maybeAccept_impl( node->parameters, *this );
     2219
     2220        VISIT_END( node );
    22162221}
    22172222
    22182223template< typename pass_type >
    22192224Type * PassVisitor< pass_type >::mutate( EnumInstType * node ) {
    2220         MUTATE_BODY( Type, node );
     2225        MUTATE_START( node );
     2226
     2227        maybeMutate_impl( node->forall, *this );
     2228        maybeMutate_impl( node->parameters, *this );
     2229
     2230        MUTATE_END( Type, node );
    22212231}
    22222232
     
    22472257template< typename pass_type >
    22482258void PassVisitor< pass_type >::visit( TypeInstType * node ) {
    2249         VISIT_BODY( node );
    2250 }
     2259        VISIT_START( node );
     2260
     2261        maybeAccept_impl( node->forall    , *this );
     2262        maybeAccept_impl( node->parameters, *this );
     2263
     2264        VISIT_END( node );
     2265}
     2266
     2267template< typename pass_type >
     2268Type * PassVisitor< pass_type >::mutate( TypeInstType * node ) {
     2269        MUTATE_START( node );
     2270
     2271        maybeMutate_impl( node->forall    , *this );
     2272        maybeMutate_impl( node->parameters, *this );
     2273
     2274        MUTATE_END( Type, node );
     2275}
     2276
    22512277
    22522278template< typename pass_type >
     
    23462372
    23472373template< typename pass_type >
    2348 Type * PassVisitor< pass_type >::mutate( TypeInstType * node ) {
    2349         MUTATE_BODY( Type, node );
    2350 }
    2351 
    2352 template< typename pass_type >
    23532374Type * PassVisitor< pass_type >::mutate( TupleType * node ) {
    23542375        MUTATE_BODY( Type, node );
Note: See TracChangeset for help on using the changeset viewer.