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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 1077093002: Revert "Model 'await for' as an explicit node in tree and fix its handling." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 void registerAsyncMarker(FunctionElement element, 523 void registerAsyncMarker(FunctionElement element,
524 Enqueuer enqueuer, 524 Enqueuer enqueuer,
525 Registry registry) {} 525 Registry registry) {}
526 } 526 }
527 527
528 /// Backend callbacks function specific to the resolution phase. 528 /// Backend callbacks function specific to the resolution phase.
529 class ResolutionCallbacks { 529 class ResolutionCallbacks {
530 /// Register that [node] is a call to `assert`. 530 /// Register that [node] is a call to `assert`.
531 void onAssert(Send node, Registry registry) {} 531 void onAssert(Send node, Registry registry) {}
532 532
533 /// Register that an 'await for' has been seen.
534 void onAsyncForIn(AsyncForIn node, Registry registry) {}
535
536 /// Called during resolution to notify to the backend that the 533 /// Called during resolution to notify to the backend that the
537 /// program uses string interpolation. 534 /// program uses string interpolation.
538 void onStringInterpolation(Registry registry) {} 535 void onStringInterpolation(Registry registry) {}
539 536
540 /// Called during resolution to notify to the backend that the 537 /// Called during resolution to notify to the backend that the
541 /// program has a catch statement. 538 /// program has a catch statement.
542 void onCatchStatement(Registry registry) {} 539 void onCatchStatement(Registry registry) {}
543 540
544 /// Called during resolution to notify to the backend that the 541 /// Called during resolution to notify to the backend that the
545 /// program explicitly throws an exception. 542 /// program explicitly throws an exception.
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 return futureClass.computeType(compiler).createInstantiation([elementType]); 2411 return futureClass.computeType(compiler).createInstantiation([elementType]);
2415 } 2412 }
2416 2413
2417 @override 2414 @override
2418 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2415 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2419 return streamClass.computeType(compiler).createInstantiation([elementType]); 2416 return streamClass.computeType(compiler).createInstantiation([elementType]);
2420 } 2417 }
2421 } 2418 }
2422 2419
2423 typedef void InternalErrorFunction(Spannable location, String message); 2420 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698