Changes in src/AST/Print.cpp [37cdd97:665f432]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.cpp
r37cdd97 r665f432 674 674 safe_print( node->body ); 675 675 --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;695 676 696 677 return node; … … 1378 1359 preprint( node ); 1379 1360 os << "instance of type " << node->name 1380 << " (" << (node->kind == ast::Type Decl::Ftype ? "" : "not ") << "function type)";1361 << " (" << (node->kind == ast::TypeVar::Ftype ? "" : "not ") << "function type)"; 1381 1362 print( node->params ); 1382 1363
Note:
See TracChangeset
for help on using the changeset viewer.