Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: runtime/vm/ast_printer.cc

Issue 1014273003: Make await for cancel the stream when breaking out of the loop (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/ast_printer.h" 5 #include "vm/ast_printer.h"
6 6
7 #include "vm/handles.h" 7 #include "vm/handles.h"
8 #include "vm/log.h" 8 #include "vm/log.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 406
407 void AstPrinter::VisitCatchClauseNode(CatchClauseNode* node) { 407 void AstPrinter::VisitCatchClauseNode(CatchClauseNode* node) {
408 VisitGenericAstNode(node); 408 VisitGenericAstNode(node);
409 } 409 }
410 410
411 411
412 void AstPrinter::VisitTryCatchNode(TryCatchNode* node) { 412 void AstPrinter::VisitTryCatchNode(TryCatchNode* node) {
413 ISL_Print("(%s ", node->PrettyName()); 413 ISL_Print("(%s ", node->PrettyName());
414 node->try_block()->Visit(this); 414 node->try_block()->Visit(this);
415 if (node->catch_block() != NULL) { 415 node->catch_block()->Visit(this);
416 node->catch_block()->Visit(this);
417 }
418 if (node->finally_block() != NULL) { 416 if (node->finally_block() != NULL) {
419 ISL_Print("(finally "); 417 ISL_Print("(finally ");
420 node->finally_block()->Visit(this); 418 node->finally_block()->Visit(this);
421 ISL_Print(")"); 419 ISL_Print(")");
422 } 420 }
423 ISL_Print(")"); 421 ISL_Print(")");
424 } 422 }
425 423
426 424
427 void AstPrinter::VisitThrowNode(ThrowNode* node) { 425 void AstPrinter::VisitThrowNode(ThrowNode* node) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 ASSERT(node_sequence != NULL); 560 ASSERT(node_sequence != NULL);
563 AstPrinter ast_printer; 561 AstPrinter ast_printer;
564 const char* function_name = 562 const char* function_name =
565 parsed_function.function().ToFullyQualifiedCString(); 563 parsed_function.function().ToFullyQualifiedCString();
566 ISL_Print("Ast for function '%s' {\n", function_name); 564 ISL_Print("Ast for function '%s' {\n", function_name);
567 node_sequence->Visit(&ast_printer); 565 node_sequence->Visit(&ast_printer);
568 ISL_Print("}\n"); 566 ISL_Print("}\n");
569 } 567 }
570 568
571 } // namespace dart 569 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698