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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1462463004: Remove unused declarations - skip summaries and completion. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index ceec646a89b033d59f1494d597321433a1f6d69e..c0ad43b2f2a4de147c3b58ecaf00e3129ee2bfb8 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -1646,7 +1646,7 @@ import 'dart:core';
List<CompilationUnitElement> dep3 = results[3][LIBRARY_CYCLE_DEPENDENCIES];
expect(dep0, hasLength(1)); // dart:core
expect(dep1, hasLength(1)); // dart:core
- expect(dep3, hasLength(3)); // dart:core, a.dart, b.dart
+ expect(dep2, hasLength(3)); // dart:core, a.dart, b.dart
expect(dep3, hasLength(3)); // dart:core, a.dart, b.dart
}
@@ -3033,7 +3033,6 @@ class ResolveInstanceFieldsInUnitTaskTest extends _AbstractDartTaskTest {
computeResult(
new LibrarySpecificUnit(sources[2], sources[2]), RESOLVED_UNIT7);
- CompilationUnit unit2 = outputs[RESOLVED_UNIT7];
// A.a2 should now be fully resolved and inferred.
assertVariableDeclarationTypes(
@@ -3067,7 +3066,6 @@ class ResolveInstanceFieldsInUnitTaskTest extends _AbstractDartTaskTest {
}
'''
});
- InterfaceType intType = context.typeProvider.intType;
DartType dynamicType = context.typeProvider.dynamicType;
computeResult(
@@ -3080,7 +3078,6 @@ class ResolveInstanceFieldsInUnitTaskTest extends _AbstractDartTaskTest {
computeResult(
new LibrarySpecificUnit(sources[2], sources[2]), RESOLVED_UNIT7);
- CompilationUnit unit2 = outputs[RESOLVED_UNIT7];
// A.a2 should now be fully resolved and inferred.
assertVariableDeclarationTypes(
@@ -3142,7 +3139,6 @@ class ResolveInstanceFieldsInUnitTaskTest extends _AbstractDartTaskTest {
computeResult(
new LibrarySpecificUnit(sources[2], sources[2]), RESOLVED_UNIT7);
- CompilationUnit unit2 = outputs[RESOLVED_UNIT7];
assertVariableDeclarationTypes(
getFieldInClass(unit0, "A", "a1"), intType, intType);
@@ -3194,7 +3190,6 @@ class ResolveInstanceFieldsInUnitTaskTest extends _AbstractDartTaskTest {
computeResult(
new LibrarySpecificUnit(sources[1], sources[1]), RESOLVED_UNIT7);
- CompilationUnit unit1 = outputs[RESOLVED_UNIT7];
// A.a2 should now be fully resolved and inferred.
assertVariableDeclarationTypes(
@@ -3678,7 +3673,6 @@ var tau = piFirst ? pi * 2 : 6.28;
List<dynamic> units =
computeLibraryResults(sources, RESOLVED_UNIT9).toList();
CompilationUnit unit0 = units[0];
- CompilationUnit unit1 = units[1];
CompilationUnit unit2 = units[2];
InterfaceType intType = context.typeProvider.intType;
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698