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

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

Issue 2620023002: Use elements/types in constants/values (Closed)
Patch Set: Created 3 years, 11 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
Index: pkg/compiler/lib/src/mirrors_used.dart
diff --git a/pkg/compiler/lib/src/mirrors_used.dart b/pkg/compiler/lib/src/mirrors_used.dart
index dde7af17c862b341cba2a7f42e37f94517287b79..4b80f81a19f1885f057b69f30cb0420bc0548dfb 100644
--- a/pkg/compiler/lib/src/mirrors_used.dart
+++ b/pkg/compiler/lib/src/mirrors_used.dart
@@ -252,7 +252,8 @@ class MirrorUsageAnalyzer {
metadata.ensureResolved(compiler.resolution);
ConstantValue value =
compiler.constants.getConstantValue(metadata.constant);
- Element element = value.getType(compiler.commonElements).element;
+ ResolutionDartType type = value.getType(compiler.commonElements);
+ Element element = type.element;
if (element == compiler.commonElements.mirrorsUsedClass) {
result.add(buildUsage(value));
}

Powered by Google App Engine
This is Rietveld 408576698