Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698