Ignore:
Timestamp:
Apr 11, 2018, 4:24:06 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
09a1ae6
Parents:
9f2012f
Message:

Fix one GC tracing bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/GcTracer.h

    r9f2012f r34dcc474  
    3434        GcTracer( const GC& gc ) : gc(gc) {}
    3535
     36        // mark node and children
     37
    3638        void previsit( BaseSyntaxNode * node ) {
    3739                // skip tree if already seen
     
    4547        }
    4648
     49        // add visits left out by PassVisitor
     50
    4751        void postvisit( Expression* expr ) {
    4852                maybeAccept( expr->env, *visitor );
     53        }
     54
     55        void postvisit( UntypedExpr* expr ) {
     56                postvisit( static_cast<Expression*>(expr) );
     57                maybeAccept( expr->function, *visitor );
    4958        }
    5059
Note: See TracChangeset for help on using the changeset viewer.