Index: client/fling/src/java/core/com/google/dart/LibraryFromSources.java |
diff --git a/client/fling/src/java/core/com/google/dart/LibraryFromSources.java b/client/fling/src/java/core/com/google/dart/LibraryFromSources.java |
index 5d029c8f1dcd5a9cf87beaac4224d3da049e66e7..6ff41142f281415af68e9113f8a61708dbdbb7ad 100644 |
--- a/client/fling/src/java/core/com/google/dart/LibraryFromSources.java |
+++ b/client/fling/src/java/core/com/google/dart/LibraryFromSources.java |
@@ -28,7 +28,6 @@ public class LibraryFromSources implements LibrarySource, DartSource { |
for (LibrarySource lib : libs) { |
this.libs.put(lib.getName(), lib); |
} |
- sources.put(name, this); |
} |
public void addNative(DartSource source) { |
@@ -61,6 +60,10 @@ public class LibraryFromSources implements LibrarySource, DartSource { |
@Override |
public DartSource getSourceFor(String path) { |
+ if (name.equals(path)) { |
+ return this; |
+ } |
+ |
final DartSource source = sources.get(path); |
if (source != null) { |
return source; |