Changeset b5aa3d8
- Timestamp:
- Apr 13, 2018, 2:45:55 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- 3205495
- Parents:
- f229fc2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/GcTracer.h
rf229fc2 rb5aa3d8 38 38 void previsit( BaseSyntaxNode * node ) { 39 39 // 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 40 42 // if ( node->mark == gc.mark ) { 41 43 // visit_children = false; … … 58 60 } 59 61 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 ); 62 69 } 63 70 };
Note: See TracChangeset
for help on using the changeset viewer.