Ignore:
Timestamp:
Apr 23, 2018, 4:46:43 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
2efe4b8
Parents:
fb97252f
Message:

Assorted bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/GcTracer.h

    rfb97252f r5af7306  
    5353        }
    5454
     55        void postvisit( DeclarationWithType* decl ) {
     56                maybeAccept( decl->asmName, *visitor );
     57        }
     58
     59private:
     60        void visit( InferredParams& inferParams ) {
     61                for ( auto& entry : inferParams ) {
     62                        maybeAccept( entry.second.actualType, *visitor );
     63                        maybeAccept( entry.second.formalType, *visitor );
     64                        maybeAccept( entry.second.expr, *visitor );
     65                        visit( *entry.second.inferParams );
     66                }
     67        }
     68
     69public:
    5570        void postvisit( Expression* expr ) {
    5671                maybeAccept( expr->env, *visitor );
     72                visit( expr->inferParams );
    5773        }
    5874
Note: See TracChangeset for help on using the changeset viewer.