Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Visitor.cc

    r25a8631 re4d829b  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Thu Jun 22 13:41:00 2017
    13 // Update Count     : 26
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Mar 30 16:45:25 2017
     13// Update Count     : 24
    1414//
    1515
     
    129129}
    130130
    131 void Visitor::visit( ThrowStmt * throwStmt ) {
    132         maybeAccept( throwStmt->get_expr(), *this );
    133         maybeAccept( throwStmt->get_target(), *this );
    134 }
    135 
    136131void Visitor::visit( TryStmt *tryStmt ) {
    137132        maybeAccept( tryStmt->get_block(), *this );
    138133        acceptAll( tryStmt->get_catchers(), *this );
    139         maybeAccept( tryStmt->get_finally(), *this );
    140134}
    141135
    142136void Visitor::visit( CatchStmt *catchStmt ) {
    143137        maybeAccept( catchStmt->get_decl(), *this );
    144         maybeAccept( catchStmt->get_cond(), *this );
    145138        maybeAccept( catchStmt->get_body(), *this );
    146139}
     
    303296}
    304297
     298void Visitor::visit( UntypedValofExpr *valofExpr ) {
     299        maybeAccept( valofExpr->get_result(), *this );
     300        maybeAccept( valofExpr->get_body(), *this );
     301}
     302
    305303void Visitor::visit( RangeExpr *rangeExpr ) {
    306304        maybeAccept( rangeExpr->get_low(), *this );
     
    321319        maybeAccept( tupleExpr->get_result(), *this );
    322320        maybeAccept( tupleExpr->get_tuple(), *this );
     321}
     322
     323void Visitor::visit( MemberTupleExpr *tupleExpr ) {
     324        maybeAccept( tupleExpr->get_result(), *this );
     325        maybeAccept( tupleExpr->get_member(), *this );
     326        maybeAccept( tupleExpr->get_aggregate(), *this );
    323327}
    324328
     
    338342        maybeAccept( uniqueExpr->get_result(), *this );
    339343        maybeAccept( uniqueExpr->get_expr(), *this );
     344}
     345
     346void 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
     352void Visitor::visit( InitExpr * initExpr ) {
     353        maybeAccept( initExpr->get_result(), *this );
     354        maybeAccept( initExpr->get_expr(), *this );
     355        maybeAccept( initExpr->get_designation(), *this );
    340356}
    341357
     
    424440}
    425441
     442void Visitor::visit( Designation * designation ) {
     443        acceptAll( designation->get_designators(), *this );
     444}
    426445
    427446void Visitor::visit( SingleInit *singleInit ) {
     
    430449
    431450void Visitor::visit( ListInit *listInit ) {
    432         acceptAll( listInit->get_designators(), *this );
     451        acceptAll( listInit->get_designations(), *this );
    433452        acceptAll( listInit->get_initializers(), *this );
    434453}
Note: See TracChangeset for help on using the changeset viewer.