Index: sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
index 56a35e9bc2e87b07d7ae1916a9e52fb591952850..1bb649129ed47366a3669aa841530b3756070598 100644 |
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart |
@@ -902,6 +902,14 @@ class LibraryElementX extends ElementX implements LibraryElement { |
return result; |
} |
+ Element findExported(String elementName) { |
+ for (Link link = exports; !link.isEmpty; link = link.tail) { |
+ Element element = link.head; |
+ if (element.name == elementName) return element; |
+ } |
+ return null; |
+ } |
+ |
void forEachExport(f(Element element)) { |
exports.forEach((Element e) => f(e)); |
} |