Chromium Code Reviews| Index: compiler/java/com/google/dart/compiler/resolver/Scope.java |
| diff --git a/compiler/java/com/google/dart/compiler/resolver/Scope.java b/compiler/java/com/google/dart/compiler/resolver/Scope.java |
| index 7175766ef2ae035ccae399585b40a5647a12e0cb..f76adf20288db1428160f36ad2120a0b1292cf7e 100644 |
| --- a/compiler/java/com/google/dart/compiler/resolver/Scope.java |
| +++ b/compiler/java/com/google/dart/compiler/resolver/Scope.java |
| @@ -38,6 +38,21 @@ public class Scope { |
| } |
| public Element declareElement(String name, Element element) { |
| +// // One prefix can be used to import several libraries. |
| +// // So, we wrap LibraryElements into LibraryPrefixElement |
| +// if (element instanceof LibraryElement) { |
|
zundel
2012/04/21 00:41:17
remove commented out code.
|
| +// Element existingElement = elements.get(name); |
| +// if (existingElement == null || existingElement instanceof LibraryPrefixElement) { |
| +// LibraryPrefixElement prefixElement = (LibraryPrefixElement) existingElement; |
| +// if (prefixElement == null) { |
| +// prefixElement = new LibraryPrefixElementImplementation(name, this); |
| +// elements.put(name, prefixElement); |
| +// } |
| +// prefixElement.addLibrary((LibraryElement) element); |
| +// return null; |
| +// } |
| +// } |
| +// // Normal element. |
| return elements.put(name, element); |
| } |