Libraries cannot source themselves anymore.

After https://code.google.com/p/dart/source/detail?r=383, LibraryFromSources fails the library self-include check.

R=knorton@google.com,pdr@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8284001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@405 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
fmalita@google.com 2011-10-13 18:11:58 +00:00
parent 9c927f8e02
commit 7531d9ebb6

View file

@ -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;