Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.cpp

    r37cdd97 r665f432  
    674674                safe_print( node->body );
    675675                --indent;
    676 
    677                 return node;
    678         }
    679 
    680         virtual const ast::Stmt * visit( const ast::SuspendStmt * node ) override final {
    681                 os << "Suspend Statement";
    682                 switch (node->type) {
    683                         case ast::SuspendStmt::None     : os << " with implicit target"; break;
    684                         case ast::SuspendStmt::Generator: os << " for generator"; break;
    685                         case ast::SuspendStmt::Coroutine: os << " for coroutine"; break;
    686                 }
    687                 os << endl;
    688 
    689                 ++indent;
    690                 if(node->then) {
    691                         os << indent << " with post statement :" << endl;
    692                         safe_print( node->then );
    693                 }
    694                 ++indent;
    695676
    696677                return node;
     
    13781359                preprint( node );
    13791360                os << "instance of type " << node->name
    1380                    << " (" << (node->kind == ast::TypeDecl::Ftype ? "" : "not ") << "function type)";
     1361                   << " (" << (node->kind == ast::TypeVar::Ftype ? "" : "not ") << "function type)";
    13811362                print( node->params );
    13821363
Note: See TracChangeset for help on using the changeset viewer.