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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/EnclosedScope.java

Issue 47543010: Issue 14580. Fix for Source in which problem is reported. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/EnclosedScope.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/EnclosedScope.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/EnclosedScope.java
index f188823441a51122c72f33a134b0b5bada9eec6d..fec4aa0001a2ace1ea7b2e4b6a24a1d9879a887e 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/EnclosedScope.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/EnclosedScope.java
@@ -52,11 +52,6 @@ public class EnclosedScope extends Scope {
}
@Override
- public LibraryElement getDefiningLibrary() {
- return enclosingScope.getDefiningLibrary();
- }
-
- @Override
public AnalysisErrorListener getErrorListener() {
return enclosingScope.getErrorListener();
}
@@ -94,7 +89,7 @@ public class EnclosedScope extends Scope {
if (hiddenNames.contains(name)) {
getErrorListener().onError(
new AnalysisError(
- getSource(),
+ getSource(identifier),
identifier.getOffset(),
identifier.getLength(),
CompileTimeErrorCode.REFERENCED_BEFORE_DECLARATION));

Powered by Google App Engine
This is Rietveld 408576698