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

Unified Diff: pkg/analyzer/test/generated/incremental_resolver_test.dart

Issue 2835703002: Remove ReferencedNames(Builder). (Closed)
Patch Set: Created 3 years, 8 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 | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/incremental_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
index 381d3c2bab3d1502c33c9aead61c4111ed3d914d..e3605f7dc7a56e161c450759260d5f340caa1146 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -514,20 +514,6 @@ class PoorMansIncrementalResolutionTest extends ResolverTestCase {
CompilationUnit oldUnit;
CompilationUnitElement oldUnitElement;
- void assertSameReferencedNames(
- ReferencedNames incNames, ReferencedNames fullNames) {
- expectEqualSets(Iterable actual, Iterable expected) {
- expect(actual, unorderedEquals(expected));
- }
-
- expectEqualSets(incNames.names, fullNames.names);
- expectEqualSets(incNames.instantiatedNames, fullNames.instantiatedNames);
- expectEqualSets(incNames.superToSubs.keys, fullNames.superToSubs.keys);
- for (String key in fullNames.superToSubs.keys) {
- expectEqualSets(incNames.superToSubs[key], fullNames.superToSubs[key]);
- }
- }
-
@override
void setUp() {
super.setUp();
@@ -2097,8 +2083,6 @@ class B extends A {}
logger.expectNoErrors();
List<AnalysisError> newErrors = analysisContext.computeErrors(source);
LineInfo newLineInfo = analysisContext.getLineInfo(source);
- ReferencedNames newReferencedNames =
- analysisContext.getResult(source, REFERENCED_NAMES);
// check for expected failure
if (!expectedSuccess) {
expect(newUnit.element, isNot(same(oldUnitElement)));
@@ -2131,10 +2115,6 @@ class B extends A {}
_assertEqualTokens(newUnit, fullNewUnit);
// Validate LineInfo
_assertEqualLineInfo(newLineInfo, analysisContext.getLineInfo(source));
- // Validate referenced names.
- ReferencedNames fullReferencedNames =
- analysisContext.getResult(source, REFERENCED_NAMES);
- assertSameReferencedNames(newReferencedNames, fullReferencedNames);
// Validate that "incremental" and "full" units have the same resolution.
try {
assertSameResolution(newUnit, fullNewUnit, validateTypes: true);
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698