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 fc663e4fd02d2c885c3808680ae67f60ed7ae59d..5c2f8a50336368abbf3c233b47d189a6e0137921 100644 |
--- a/pkg/compiler/lib/src/kernel/element_map_impl.dart |
+++ b/pkg/compiler/lib/src/kernel/element_map_impl.dart |
@@ -774,6 +774,9 @@ class KernelToElementMapImpl extends KernelToElementMapForImpactImpl |
ir.Class getKernelClass(KClass entity) => _classEnvs[entity.classIndex].cls; |
+ ir.Member getKernelMember(KMember entity) => |
+ _memberList[entity.memberIndex].node; |
+ |
bool hasConstantFieldInitializer(covariant KField field) { |
_FieldData data = _memberList[field.memberIndex]; |
return getFieldConstantValue(data.node) != null; |
@@ -1830,7 +1833,10 @@ class JsKernelToElementMap extends KernelToElementMapBase |
@override |
Local getLocalFunction(ir.TreeNode node) { |
- throw new UnsupportedError("JsKernelToElementMap.getLocalFunction"); |
+ // TODO(efortuna, johnniwinther): This function should not be called once |
+ // the K + J element situation has been properly sorted out. Ultimately this |
+ // should throw. |
+ return _elementMap.getLocalFunction(node); |
} |
@override |