Changeset 824a2dc for src/SynTree


Ignore:
Timestamp:
May 23, 2018, 1:54:29 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
3ef35bd
Parents:
2472a19
Message:

Add aggregate type base decls to GcTracer?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/GcTracer.h

    r2472a19 r824a2dc  
    116116        }
    117117
     118        void postvisit( EnumInstType* type ) {
     119                postvisit( static_cast<Type*>(type) );
     120                maybeAccept( type->baseEnum, *visitor );
     121        }
     122
    118123        void postvisit( PointerType* type ) {
    119124                postvisit( static_cast<Type*>(type) );
    120125                maybeAccept( type->dimension, *visitor );
     126        }
     127
     128        void postvisit( StructInstType* type ) {
     129                postvisit( static_cast<Type*>(type) );
     130                maybeAccept( type->baseStruct, *visitor );
     131        }
     132
     133        void postvisit( TraitInstType* type ) {
     134                postvisit( static_cast<Type*>(type) );
     135                maybeAccept( type->baseTrait, *visitor );
     136        }
     137
     138        void postvisit( TypeInstType* type ) {
     139                postvisit( static_cast<Type*>(type) );
     140                maybeAccept( type->baseType, *visitor );
     141        }
     142
     143        void postvisit( UnionInstType* type ) {
     144                postvisit( static_cast<Type*>(type) );
     145                maybeAccept( type->baseUnion, *visitor );
    121146        }
    122147};
Note: See TracChangeset for help on using the changeset viewer.