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

Unified Diff: pkg/analyzer2dart/lib/src/cps_generator.dart

Issue 1075923002: Refactor the try statement analysis results. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/cps_generator.dart
diff --git a/pkg/analyzer2dart/lib/src/cps_generator.dart b/pkg/analyzer2dart/lib/src/cps_generator.dart
index 4ad4fc642f8cdc87446d1c8639ad98c5e27f8c8d..2360c161bbe1874f733d5df5462d5beb7b5c06f5 100644
--- a/pkg/analyzer2dart/lib/src/cps_generator.dart
+++ b/pkg/analyzer2dart/lib/src/cps_generator.dart
@@ -95,8 +95,8 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
return withBuilder(
new DartIrBuilder(DART_CONSTANT_SYSTEM,
element,
- // TODO(johnniwinther): Supported closure variables.
- new NullCapturedVariables()),
+ // TODO(johnniwinther): Support closure variables.
+ new Set<dart2js.Local>()),
() {
irBuilder.buildFunctionHeader(
constructor.parameters.map(converter.convertElement));
@@ -114,8 +114,8 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
return withBuilder(
new DartIrBuilder(DART_CONSTANT_SYSTEM,
element,
- // TODO(johnniwinther): Supported closure variables.
- new NullCapturedVariables()),
+ // TODO(johnniwinther): Support closure variables.
+ new Set<dart2js.Local>()),
() {
irBuilder.buildFieldInitializerHeader();
ir.Primitive initializer = build(node.initializer);
@@ -129,8 +129,8 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
return withBuilder(
new DartIrBuilder(DART_CONSTANT_SYSTEM,
element,
- // TODO(johnniwinther): Supported closure variables.
- new NullCapturedVariables()),
+ // TODO(johnniwinther): Support closure variables.
+ new Set<dart2js.Local>()),
() {
irBuilder.buildFunctionHeader(
function.parameters.map(converter.convertElement));
@@ -585,7 +585,3 @@ class CpsGeneratingVisitor extends SemanticVisitor<ir.Node>
catchClauseInfos: catchClauseInfos);
}
}
-
-class NullCapturedVariables extends DartCapturedVariables {
- NullCapturedVariables() : super(null);
-}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698