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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.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/common/resolution.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 9169aaef2c56c444f24918d8428e663485e94c6b..7d99b2136309930c37c5af22a061dae0e533aad9 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -359,12 +359,11 @@ class DartImpactTransformer extends ImpactTransformer {
WorldImpact transformResolutionImpact(ResolutionImpact worldImpact) {
TransformedWorldImpact transformed =
new TransformedWorldImpact(worldImpact);
- for (DartType typeLiteral in worldImpact.typeLiterals) {
- if (typeLiteral.isInterfaceType) {
- backend.usedTypeLiterals.add(typeLiteral.element);
- }
- }
for (TypeUse typeUse in worldImpact.typeUses) {
+ if (typeUse.kind == TypeUseKind.TYPE_LITERAL &&
+ typeUse.type.isInterfaceType) {
+ backend.usedTypeLiterals.add(typeUse.type.element);
+ }
if (typeUse.kind == TypeUseKind.INSTANTIATION) {
backend.registerPlatformMembers(typeUse.type,
registerUse: transformed.registerDynamicUse);
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698