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

Unified Diff: pkg/analyzer/lib/src/dart/resolver/scope.dart

Issue 2329313002: Remove Scope.errorListener. (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/test/generated/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/resolver/scope.dart
diff --git a/pkg/analyzer/lib/src/dart/resolver/scope.dart b/pkg/analyzer/lib/src/dart/resolver/scope.dart
index ab05e537370e2c67473debdbac7a4d39dc821308..765144b48655dc6cf072a97abe68f2d54e94d3e9 100644
--- a/pkg/analyzer/lib/src/dart/resolver/scope.dart
+++ b/pkg/analyzer/lib/src/dart/resolver/scope.dart
@@ -127,10 +127,6 @@ class EnclosedScope extends Scope {
*/
EnclosedScope(this.enclosingScope);
- @deprecated
- @override
- AnalysisErrorListener get errorListener => enclosingScope.errorListener;
-
@override
Element internalLookup(
Identifier identifier, String name, LibraryElement referencingLibrary) {
@@ -363,10 +359,6 @@ class LibraryImportScope extends Scope {
*/
final LibraryElement _definingLibrary;
- @deprecated
- @override
- final AnalysisErrorListener errorListener;
-
/**
* A list of the namespaces representing the names that are available in this scope from imported
* libraries.
@@ -384,7 +376,7 @@ class LibraryImportScope extends Scope {
* [_definingLibrary]. The error listener is no longer used and should be
* omitted.
*/
- LibraryImportScope(this._definingLibrary, [this.errorListener]) {
+ LibraryImportScope(this._definingLibrary) {
_createImportedNamespaces();
}
@@ -569,9 +561,8 @@ class LibraryScope extends EnclosedScope {
* [definingLibrary]. The error listener is no longer used and should be
* omitted.
*/
- LibraryScope(LibraryElement definingLibrary,
- [@deprecated AnalysisErrorListener errorListener])
- : super(new LibraryImportScope(definingLibrary, errorListener)) {
+ LibraryScope(LibraryElement definingLibrary)
+ : super(new LibraryImportScope(definingLibrary)) {
_defineTopLevelNames(definingLibrary);
}
@@ -987,12 +978,6 @@ abstract class Scope {
Scope get enclosingScope => null;
/**
- * Return the listener that is to be informed when an error is encountered.
- */
- @deprecated
- AnalysisErrorListener get errorListener;
-
- /**
* Add the given [element] to this scope. If there is already an element with
* the given name defined in this scope, then an error will be generated and
* the original element will continue to be mapped to the name. If there is an
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698