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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java

Issue 23495020: @proxy support the Analysis Engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/resolver/ScopedVisitor.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java
index edc2d10614a9f822084e4082c87806bbc17c185c..b63222aa1fc7fead97ca20a0a07d9a2a92abae8b 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ScopedVisitor.java
@@ -154,6 +154,15 @@ public abstract class ScopedVisitor extends GeneralizingASTVisitor<Void> {
return typeProvider;
}
+ /**
+ * Report an error with the given analysis error.
+ *
+ * @param errorCode analysis error
+ */
+ public void reportError(AnalysisError analysisError) {
+ errorListener.onError(analysisError);
+ }
+
@Override
public Void visitBlock(Block node) {
Scope outerScope = nameScope;
@@ -449,6 +458,15 @@ public abstract class ScopedVisitor extends GeneralizingASTVisitor<Void> {
}
/**
+ * Return the source.
+ *
+ * @return the source
+ */
+ protected Source getSource() {
+ return source;
+ }
+
+ /**
* Report an error with the given error code and arguments.
*
* @param errorCode the error code of the error to be reported

Powered by Google App Engine
This is Rietveld 408576698