Index: pkg/analyzer/lib/src/generated/incremental_resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/incremental_resolver.dart b/pkg/analyzer/lib/src/generated/incremental_resolver.dart |
index 85b0d31264ea219a019b9e6c6f0ecfa30f4a09a1..7ab95c8c5173c61d40578900329f4af498c00c13 100644 |
--- a/pkg/analyzer/lib/src/generated/incremental_resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/incremental_resolver.dart |
@@ -331,8 +331,7 @@ class IncrementalResolver { |
void _prepareResolutionContext(AstNode node) { |
if (_resolutionContext == null) { |
- _resolutionContext = |
- ResolutionContextBuilder.contextFor(node, errorListener); |
+ _resolutionContext = ResolutionContextBuilder.contextFor(node); |
} |
} |
@@ -1054,11 +1053,6 @@ class ResolutionContext { |
*/ |
class ResolutionContextBuilder { |
/** |
- * The listener to which analysis errors will be reported. |
- */ |
- final AnalysisErrorListener _errorListener; |
- |
- /** |
* The class containing the enclosing [CompilationUnitElement]. |
*/ |
CompilationUnitElement _enclosingUnit; |
@@ -1079,7 +1073,7 @@ class ResolutionContextBuilder { |
* Initialize a newly created scope builder to generate a scope that will |
* report errors to the given listener. |
*/ |
- ResolutionContextBuilder(this._errorListener); |
+ ResolutionContextBuilder(); |
scheglov
2016/09/09 16:06:53
The documentation is not accurate anymore.
And pro
Brian Wilkerson
2016/09/09 16:16:56
Done
|
Scope _scopeFor(AstNode node) { |
if (node is CompilationUnit) { |
@@ -1186,14 +1180,12 @@ class ResolutionContextBuilder { |
* Throws [AnalysisException] if the AST structure has not been resolved or |
* is not part of a [CompilationUnit] |
*/ |
- static ResolutionContext contextFor( |
- AstNode node, AnalysisErrorListener errorListener) { |
+ static ResolutionContext contextFor(AstNode node) { |
if (node == null) { |
throw new AnalysisException("Cannot create context: node is null"); |
} |
// build scope |
- ResolutionContextBuilder builder = |
- new ResolutionContextBuilder(errorListener); |
+ ResolutionContextBuilder builder = new ResolutionContextBuilder(); |
Scope scope = builder._scopeFor(node); |
// prepare context |
ResolutionContext context = new ResolutionContext(); |