Changeset 6eb8948 for src/SynTree/Visitor.cc
- Timestamp:
- Sep 12, 2016, 6:32:46 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f006f01
- Parents:
- 8f7cea1
- git-author:
- Rob Schluntz <rschlunt@…> (09/12/16 18:24:34)
- git-committer:
- Rob Schluntz <rschlunt@…> (09/12/16 18:32:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Visitor.cc
r8f7cea1 r6eb8948 261 261 } 262 262 263 void Visitor::visit( TupleExpr *tupleExpr ) {264 acceptAll( tupleExpr->get_results(), *this );265 acceptAll( tupleExpr->get_exprs(), *this );266 }267 268 void Visitor::visit( SolvedTupleExpr *tupleExpr ) {269 acceptAll( tupleExpr->get_results(), *this );270 acceptAll( tupleExpr->get_exprs(), *this );271 }272 273 263 void Visitor::visit( TypeExpr *typeExpr ) { 274 264 acceptAll( typeExpr->get_results(), *this ); … … 309 299 } 310 300 301 void Visitor::visit( TupleExpr *tupleExpr ) { 302 acceptAll( tupleExpr->get_results(), *this ); 303 acceptAll( tupleExpr->get_exprs(), *this ); 304 } 305 311 306 void Visitor::visit( TupleIndexExpr *tupleExpr ) { 312 307 acceptAll( tupleExpr->get_results(), *this ); … … 320 315 } 321 316 322 void Visitor::visit( MultipleAssignExpr *assignExpr ) {317 void Visitor::visit( TupleAssignExpr *assignExpr ) { 323 318 acceptAll( assignExpr->get_results(), *this ); 324 maybeAccept( assignExpr->get_lhs(), *this ); 325 maybeAccept( assignExpr->get_rhs(), *this ); 326 } 327 328 void Visitor::visit( MassAssignExpr *assignExpr ) { 329 acceptAll( assignExpr->get_results(), *this ); 330 maybeAccept( assignExpr->get_lhs(), *this ); 331 maybeAccept( assignExpr->get_rhs(), *this ); 319 acceptAll( assignExpr->get_tempDecls(), *this ); 320 acceptAll( assignExpr->get_assigns(), *this ); 321 } 322 323 void Visitor::visit( StmtExpr *stmtExpr ) { 324 acceptAll( stmtExpr->get_results(), *this ); 325 maybeAccept( stmtExpr->get_statements(), *this ); 332 326 } 333 327
Note: See TracChangeset
for help on using the changeset viewer.