mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:01:30 +00:00
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:
parent
9c927f8e02
commit
7531d9ebb6
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue