Ignore:
Timestamp:
May 24, 2019, 5:26:44 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
a7d50b6, c519942
Parents:
21a44ca
Message:

Finish Stmt printers, implement short_mode for Decls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r21a44ca r6f4b7f2  
    397397                ThrowStmt::Kind kind;
    398398                switch (node->kind) {
    399                 case ast::ThrowStmt::Terminate:
     399                case ast::ExceptionKind::Terminate:
    400400                        kind = ThrowStmt::Terminate;
    401401                        break;
    402                 case ast::ThrowStmt::Resume:
     402                case ast::ExceptionKind::Resume:
    403403                        kind = ThrowStmt::Resume;
    404404                        break;
     
    429429                CatchStmt::Kind kind;
    430430                switch (node->kind) {
    431                 case ast::CatchStmt::Terminate:
     431                case ast::ExceptionKind::Terminate:
    432432                        kind = CatchStmt::Terminate;
    433433                        break;
    434                 case ast::CatchStmt::Resume:
     434                case ast::ExceptionKind::Resume:
    435435                        kind = CatchStmt::Resume;
    436436                        break;
     
    17391739        virtual void visit( ThrowStmt * old ) override final {
    17401740                if ( inCache( old ) ) return;
    1741                 ast::ThrowStmt::Kind kind;
     1741                ast::ExceptionKind kind;
    17421742                switch (old->kind) {
    17431743                case ThrowStmt::Terminate:
    1744                         kind = ast::ThrowStmt::Terminate;
     1744                        kind = ast::ExceptionKind::Terminate;
    17451745                        break;
    17461746                case ThrowStmt::Resume:
    1747                         kind = ast::ThrowStmt::Resume;
     1747                        kind = ast::ExceptionKind::Resume;
    17481748                        break;
    17491749                default:
     
    17751775        virtual void visit( CatchStmt * old ) override final {
    17761776                if ( inCache( old ) ) return;
    1777                 ast::CatchStmt::Kind kind;
     1777                ast::ExceptionKind kind;
    17781778                switch (old->kind) {
    17791779                case CatchStmt::Terminate:
    1780                         kind = ast::CatchStmt::Terminate;
     1780                        kind = ast::ExceptionKind::Terminate;
    17811781                        break;
    17821782                case CatchStmt::Resume:
    1783                         kind = ast::CatchStmt::Resume;
     1783                        kind = ast::ExceptionKind::Resume;
    17841784                        break;
    17851785                default:
Note: See TracChangeset for help on using the changeset viewer.