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

Unified Diff: pkg/analyzer/lib/src/generated/incremental_resolver.dart

Issue 2329463003: Remove unused instance field (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698