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

Unified Diff: pkg/compiler/lib/src/resolution/members.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/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 8fa327f01c319d285e141d206a5397b5a8a8092a..b02d8bfc6cead4dc4d62982c4183a7c48e0d42a3 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -4016,7 +4016,7 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
for (ConstantValue key in map.keys) {
if (!key.isObject) continue;
ObjectConstantValue objectConstant = key;
- ResolutionDartType keyType = objectConstant.type;
+ ResolutionInterfaceType keyType = objectConstant.type;
ClassElement cls = keyType.element;
if (cls == commonElements.stringClass) continue;
Element equals = cls.lookupMember('==');
@@ -4489,7 +4489,8 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
if (constant.isFunction) return commonElements.functionType;
assert(constant.isObject);
ObjectConstantValue objectConstant = constant;
- return objectConstant.type;
+ ResolutionInterfaceType type = objectConstant.type;
+ return type;
}
bool overridesEquals(ResolutionDartType type) {

Powered by Google App Engine
This is Rietveld 408576698