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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10265027: Move all the builtin$ interceptors to a new interceptors library and shorten the names of them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index e96db49c907d6d2635a90ce8f1b9dd1fc3a8306e..f15465d48814d010d3f8f606b49dd60346bf86a9 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -305,6 +305,12 @@ class LibraryElement extends CompilationUnitElement {
return elements[elementName];
}
+ Element findLocal(SourceString elementName) {
floitsch 2012/05/01 14:37:44 add /**doc*/ for [findLocal] and [find].
+ Element result = elements[elementName];
+ if (result === null || result.getLibrary() != this) return null;
+ return result;
+ }
+
void forEachExport(f(Element element)) {
elements.forEach((SourceString _, Element e) {
if (this === e.getLibrary()

Powered by Google App Engine
This is Rietveld 408576698