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

Unified Diff: pkg/compiler/lib/src/kernel/element_map_impl.dart

Issue 2994333002: Various redemptions (Closed)
Patch Set: Fix + status updates Created 3 years, 4 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/js_model/closure.dart ('k') | pkg/compiler/lib/src/kernel/env.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_map_impl.dart
diff --git a/pkg/compiler/lib/src/kernel/element_map_impl.dart b/pkg/compiler/lib/src/kernel/element_map_impl.dart
index 614fd9cce3e57717279cf811d06dc62017b72c7d..380853e75be6af85dcb108df56dc3effc7e535f7 100644
--- a/pkg/compiler/lib/src/kernel/element_map_impl.dart
+++ b/pkg/compiler/lib/src/kernel/element_map_impl.dart
@@ -619,6 +619,12 @@ abstract class KernelToElementMapBase extends KernelToElementMapBaseMixin {
return data.getFunctionType(this);
}
+ DartType _getFieldType(IndexedField field) {
+ assert(checkFamily(field));
+ FieldData data = _memberData[field.memberIndex];
+ return data.getFieldType(this);
+ }
+
ClassEntity _getAppliedMixin(IndexedClass cls) {
assert(checkFamily(cls));
ClassData data = _classData[cls.classIndex];
@@ -1337,6 +1343,11 @@ class KernelElementEnvironment implements ElementEnvironment {
}
@override
+ DartType getFieldType(FieldEntity field) {
+ return elementMap._getFieldType(field);
+ }
+
+ @override
FunctionType getLocalFunctionType(covariant KLocalFunction function) {
return function.functionType;
}
« no previous file with comments | « pkg/compiler/lib/src/js_model/closure.dart ('k') | pkg/compiler/lib/src/kernel/env.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698