Changeset b5aa3d8


Ignore:
Timestamp:
Apr 13, 2018, 2:45:55 PM (4 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
3205495
Parents:
f229fc2
Message:

Trace type attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/GcTracer.h

    rf229fc2 rb5aa3d8  
    3838        void previsit( BaseSyntaxNode * node ) {
    3939                // skip tree if already seen
     40                // xxx - this should be uncommented (it breaks object cycles), but at the moment it seems
     41                // like the object cycles don't happen and other bugs do
    4042                // if ( node->mark == gc.mark ) {
    4143                //      visit_children = false;
     
    5860        }
    5961
    60         void postvisit( PointerType* pty ) {
    61                 maybeAccept( pty->dimension, *visitor );
     62        void postvisit( Type* type ) {
     63                acceptAll( type->attributes, *visitor );
     64        }
     65
     66        void postvisit( PointerType* type ) {
     67                postvisit( static_cast<Type*>(type) );
     68                maybeAccept( type->dimension, *visitor );
    6269        }
    6370};
Note: See TracChangeset for help on using the changeset viewer.