Changeset 056bee8


Ignore:
Timestamp:
Mar 23, 2023, 4:00:51 PM (13 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
1633e04
Parents:
c94b1f0
Message:

Added printing of with clauses to the printing of both new and old ast nodes.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.cpp

    rc94b1f0 r056bee8  
    369369                                --indent;
    370370                        }
     371                }
     372
     373                if ( ! node->withExprs.empty() ) {
     374                        // Not with a clause, but the 'with clause'.
     375                        ++indent;
     376                        os << " with clause" << endl << indent;
     377                        printAll( node->withExprs );
     378                        --indent;
    371379                }
    372380
  • src/SynTree/FunctionDecl.cc

    rc94b1f0 r056bee8  
    8787        } // if
    8888
     89        if ( !withExprs.empty() ) {
     90                os << indent << "... with clause" << std::endl;
     91                os << indent + 1;
     92                printAll( withExprs, os, indent + 1 );
     93        }
     94
    8995        if ( statements ) {
    9096                os << indent << "... with body" << endl << indent+1;
Note: See TracChangeset for help on using the changeset viewer.