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

Unified Diff: pkg/compiler/lib/src/enqueue.dart

Issue 2868813003: Move ResolutionEnqueuer.hasBeenResolved to Resolver (Closed)
Patch Set: Created 3 years, 7 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/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 18740a1f71d9d636104cf52a6ace577c260c574f..1861ba6cf44a40d9b30846e6739638b8be84c1bd 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -6,7 +6,6 @@ library dart2js.enqueue;
import 'dart:collection' show Queue;
-import 'common/resolution.dart' show Resolution;
import 'common/tasks.dart' show CompilerTask;
import 'common/work.dart' show WorkItem;
import 'common.dart';
@@ -14,7 +13,6 @@ import 'common_elements.dart' show ElementEnvironment;
import 'constants/values.dart';
import 'compiler.dart' show Compiler;
import 'options.dart';
-import 'elements/elements.dart' show MemberElement;
import 'elements/entities.dart';
import 'elements/resolution_types.dart' show ResolutionTypedefType;
import 'elements/types.dart';
@@ -418,14 +416,6 @@ class ResolutionEnqueuer extends EnqueuerImpl {
bool get isResolutionQueue => true;
- /// Returns `true` if [element] has been processed by the resolution enqueuer.
- // TODO(johnniwinther): Remove this together with the resolver.
- bool hasBeenProcessed(MemberElement element) {
- assert(invariant(element, element == element.analyzableElement.declaration,
- message: "Unexpected element $element"));
- return _processedEntities.contains(element);
- }
-
/// Registers [entity] as processed by the resolution enqueuer. Used only for
/// testing.
void registerProcessedElementInternal(MemberEntity entity) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698