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

Unified Diff: pkg/compiler/lib/src/resolution/resolution.dart

Issue 1438453002: Use Feature directly in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « pkg/compiler/lib/src/resolution/registry.dart ('k') | pkg/compiler/lib/src/resolution/type_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/resolution.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution.dart b/pkg/compiler/lib/src/resolution/resolution.dart
index e59832beda25b8b5bc1cd3e1753e77c66859f70e..53523d63187d29b84a8f66cb699b11de87530993 100644
--- a/pkg/compiler/lib/src/resolution/resolution.dart
+++ b/pkg/compiler/lib/src/resolution/resolution.dart
@@ -10,6 +10,7 @@ import '../common.dart';
import '../common/names.dart' show
Identifiers;
import '../common/resolution.dart' show
+ Feature,
Parsing,
Resolution,
ResolutionImpact;
@@ -189,15 +190,17 @@ class ResolverTask extends CompilerTask {
{'modifier': element.asyncMarker});
}
}
- registry.registerAsyncMarker(element);
switch (element.asyncMarker) {
case AsyncMarker.ASYNC:
+ registry.registerFeature(Feature.ASYNC);
coreClasses.futureClass.ensureResolved(resolution);
break;
case AsyncMarker.ASYNC_STAR:
+ registry.registerFeature(Feature.ASYNC_STAR);
coreClasses.streamClass.ensureResolved(resolution);
break;
case AsyncMarker.SYNC_STAR:
+ registry.registerFeature(Feature.SYNC_STAR);
coreClasses.iterableClass.ensureResolved(resolution);
break;
}
@@ -397,7 +400,7 @@ class ResolverTask extends CompilerTask {
if (!element.modifiers.isConst) {
// TODO(johnniwinther): Determine the const-ness eagerly to avoid
// unnecessary registrations.
- registry.registerLazyField();
+ registry.registerFeature(Feature.LAZY_FIELD);
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/registry.dart ('k') | pkg/compiler/lib/src/resolution/type_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698