Ignore:
Timestamp:
Jun 20, 2017, 1:19:53 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
579263a
Parents:
c6d2e93
git-author:
Rob Schluntz <rschlunt@…> (06/20/17 13:16:13)
git-committer:
Rob Schluntz <rschlunt@…> (06/20/17 13:19:53)
Message:

major effort on designations, works in many cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Visitor.cc

    rc6d2e93 re4d829b  
    344344}
    345345
     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 );
     356}
     357
    346358
    347359void Visitor::visit( VoidType *voidType ) {
     
    428440}
    429441
     442void Visitor::visit( Designation * designation ) {
     443        acceptAll( designation->get_designators(), *this );
     444}
    430445
    431446void Visitor::visit( SingleInit *singleInit ) {
     
    434449
    435450void Visitor::visit( ListInit *listInit ) {
    436         acceptAll( listInit->get_designators(), *this );
     451        acceptAll( listInit->get_designations(), *this );
    437452        acceptAll( listInit->get_initializers(), *this );
    438453}
Note: See TracChangeset for help on using the changeset viewer.