Changeset 5af7306 for src/SynTree/GcTracer.h
- Timestamp:
- Apr 23, 2018, 4:46:43 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- 2efe4b8
- Parents:
- fb97252f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/GcTracer.h
rfb97252f r5af7306 53 53 } 54 54 55 void postvisit( DeclarationWithType* decl ) { 56 maybeAccept( decl->asmName, *visitor ); 57 } 58 59 private: 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 69 public: 55 70 void postvisit( Expression* expr ) { 56 71 maybeAccept( expr->env, *visitor ); 72 visit( expr->inferParams ); 57 73 } 58 74
Note: See TracChangeset
for help on using the changeset viewer.