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

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

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased 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
« no previous file with comments | « pkg/compiler/lib/src/kernel/unresolved.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29532740347bc236f64c941070a8f98dba91dea3..dde7af17c862b341cba2a7f42e37f94517287b79 100644
--- a/pkg/compiler/lib/src/mirrors_used.dart
+++ b/pkg/compiler/lib/src/mirrors_used.dart
@@ -16,7 +16,8 @@ import 'constants/values.dart'
ListConstantValue,
StringConstantValue,
TypeConstantValue;
-import 'elements/resolution_types.dart' show DartType, InterfaceType;
+import 'elements/resolution_types.dart'
+ show ResolutionDartType, ResolutionInterfaceType;
import 'elements/elements.dart'
show
ClassElement,
@@ -414,14 +415,14 @@ class MirrorUsageBuilder {
}
/// Find the first non-implementation interface of constant.
- DartType apiTypeOf(ConstantValue constant) {
- DartType type = constant.getType(compiler.commonElements);
+ ResolutionDartType apiTypeOf(ConstantValue constant) {
+ ResolutionDartType type = constant.getType(compiler.commonElements);
LibraryElement library = type.element.library;
if (type.isInterfaceType && library.isInternalLibrary) {
- InterfaceType interface = type;
+ ResolutionInterfaceType interface = type;
ClassElement cls = type.element;
cls.ensureResolved(compiler.resolution);
- for (DartType supertype in cls.allSupertypes) {
+ for (ResolutionDartType supertype in cls.allSupertypes) {
if (supertype.isInterfaceType &&
!supertype.element.library.isInternalLibrary) {
return interface.asInstanceOf(supertype.element);
@@ -445,8 +446,8 @@ class MirrorUsageBuilder {
}
List<Element> result = <Element>[];
for (var entry in list) {
- if (entry is DartType) {
- DartType type = entry;
+ if (entry is ResolutionDartType) {
+ ResolutionDartType type = entry;
result.add(type.element);
} else {
String string = entry;
« no previous file with comments | « pkg/compiler/lib/src/kernel/unresolved.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698