Changeset 0f9e4403 for src/SynTree/Visitor.cc
- Timestamp:
- Apr 15, 2016, 12:03:11 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 29ad0ac
- Parents:
- c5833e8 (diff), 37f0da8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Visitor.cc
rc5833e8 r0f9e4403 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jul 24 16:11:05 201513 // Update Count : 1 512 // Last Modified On : Fri Apr 1 18:05:13 2016 13 // Update Count : 18 14 14 // 15 15 … … 56 56 } 57 57 58 void Visitor::visit( ContextDecl *aggregateDecl ) {58 void Visitor::visit( TraitDecl *aggregateDecl ) { 59 59 visit( static_cast< AggregateDecl* >( aggregateDecl ) ); 60 60 } … … 230 230 } 231 231 232 void Visitor::visit( OffsetPackExpr *offsetPackExpr ) { 233 acceptAll( offsetPackExpr->get_results(), *this ); 234 maybeAccept( offsetPackExpr->get_type(), *this ); 235 } 236 232 237 void Visitor::visit( AttrExpr *attrExpr ) { 233 238 acceptAll( attrExpr->get_results(), *this ); … … 284 289 } 285 290 291 void Visitor::visit( CompoundLiteralExpr *compLitExpr ) { 292 acceptAll( compLitExpr->get_results(), *this ); 293 maybeAccept( compLitExpr->get_type(), *this ); 294 maybeAccept( compLitExpr->get_initializer(), *this ); 295 } 296 286 297 void Visitor::visit( VoidType *voidType ) { 287 298 acceptAll( voidType->get_forall(), *this ); … … 326 337 } 327 338 328 void Visitor::visit( ContextInstType *aggregateUseType ) {339 void Visitor::visit( TraitInstType *aggregateUseType ) { 329 340 visit( static_cast< ReferenceToType * >( aggregateUseType ) ); 330 341 acceptAll( aggregateUseType->get_members(), *this ); … … 355 366 } 356 367 368 void Visitor::visit( VarArgsType *varArgsType ) { 369 acceptAll( varArgsType->get_forall(), *this ); 370 } 371 357 372 void Visitor::visit( SingleInit *singleInit ) { 358 373 singleInit->get_value()->accept( *this );
Note:
See TracChangeset
for help on using the changeset viewer.