| Index: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| index 2f32a7c9b70221a8fbd3e9c80d7e6b84e0d7cd35..74461c3eea9bd6cf0714a91c3480365b9e162336 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| @@ -81,8 +81,8 @@ public class ResolutionContext implements ResolutionErrorListener {
|
| String existingLocation = Elements.getRelativeElementLocation(element, existingElement);
|
| // TODO(scheglov) remove condition once HTML will be fixed to don't have duplicates.
|
| // http://code.google.com/p/dart/issues/detail?id=1060
|
| - if (!Elements.isLibrarySource(element.getNode().getSource(), "html.dart")
|
| - && !Elements.isLibrarySource(element.getNode().getSource(), "dom.dart")) {
|
| + if (!Elements.isLibrarySource(element.getNode().getSourceInfo().getSource(), "html.dart")
|
| + && !Elements.isLibrarySource(element.getNode().getSourceInfo().getSource(), "dom.dart")) {
|
| onError(nameNode, warningCode, name, existingElement, existingLocation);
|
| }
|
| }
|
|
|