Changes in src/SynTree/Visitor.cc [25a8631:e4d829b]
- File:
-
- 1 edited
-
src/SynTree/Visitor.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Visitor.cc
r25a8631 re4d829b 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thu Jun 22 13:41:00201713 // Update Count : 2 611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 30 16:45:25 2017 13 // Update Count : 24 14 14 // 15 15 … … 129 129 } 130 130 131 void Visitor::visit( ThrowStmt * throwStmt ) {132 maybeAccept( throwStmt->get_expr(), *this );133 maybeAccept( throwStmt->get_target(), *this );134 }135 136 131 void Visitor::visit( TryStmt *tryStmt ) { 137 132 maybeAccept( tryStmt->get_block(), *this ); 138 133 acceptAll( tryStmt->get_catchers(), *this ); 139 maybeAccept( tryStmt->get_finally(), *this );140 134 } 141 135 142 136 void Visitor::visit( CatchStmt *catchStmt ) { 143 137 maybeAccept( catchStmt->get_decl(), *this ); 144 maybeAccept( catchStmt->get_cond(), *this );145 138 maybeAccept( catchStmt->get_body(), *this ); 146 139 } … … 303 296 } 304 297 298 void Visitor::visit( UntypedValofExpr *valofExpr ) { 299 maybeAccept( valofExpr->get_result(), *this ); 300 maybeAccept( valofExpr->get_body(), *this ); 301 } 302 305 303 void Visitor::visit( RangeExpr *rangeExpr ) { 306 304 maybeAccept( rangeExpr->get_low(), *this ); … … 321 319 maybeAccept( tupleExpr->get_result(), *this ); 322 320 maybeAccept( tupleExpr->get_tuple(), *this ); 321 } 322 323 void Visitor::visit( MemberTupleExpr *tupleExpr ) { 324 maybeAccept( tupleExpr->get_result(), *this ); 325 maybeAccept( tupleExpr->get_member(), *this ); 326 maybeAccept( tupleExpr->get_aggregate(), *this ); 323 327 } 324 328 … … 338 342 maybeAccept( uniqueExpr->get_result(), *this ); 339 343 maybeAccept( uniqueExpr->get_expr(), *this ); 344 } 345 346 void Visitor::visit( UntypedInitExpr * initExpr ) { 347 maybeAccept( initExpr->get_result(), *this ); 348 maybeAccept( initExpr->get_expr(), *this ); 349 // not currently visiting initAlts, but this doesn't matter since this node is only used in the resolver. 350 } 351 352 void Visitor::visit( InitExpr * initExpr ) { 353 maybeAccept( initExpr->get_result(), *this ); 354 maybeAccept( initExpr->get_expr(), *this ); 355 maybeAccept( initExpr->get_designation(), *this ); 340 356 } 341 357 … … 424 440 } 425 441 442 void Visitor::visit( Designation * designation ) { 443 acceptAll( designation->get_designators(), *this ); 444 } 426 445 427 446 void Visitor::visit( SingleInit *singleInit ) { … … 430 449 431 450 void Visitor::visit( ListInit *listInit ) { 432 acceptAll( listInit->get_designat ors(), *this );451 acceptAll( listInit->get_designations(), *this ); 433 452 acceptAll( listInit->get_initializers(), *this ); 434 453 }
Note:
See TracChangeset
for help on using the changeset viewer.