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

Unified Diff: pkg/analyzer/test/src/summary/summary_test.dart

Issue 1597893003: Don't include implicit initializing formal types in summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/test/src/summary/resynthesize_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/summary/summary_test.dart
diff --git a/pkg/analyzer/test/src/summary/summary_test.dart b/pkg/analyzer/test/src/summary/summary_test.dart
index 875d47e0954651bfc865e34cb94ed011ab063568..416978a5b1f774c4be35ac044ff82b616d2e25a4 100644
--- a/pkg/analyzer/test/src/summary/summary_test.dart
+++ b/pkg/analyzer/test/src/summary/summary_test.dart
@@ -1383,7 +1383,7 @@ class C {
executables:
serializeClassText('class C { C(this.x); int x; }').executables);
UnlinkedParam parameter = executable.parameters[0];
- checkTypeRef(parameter.type, 'dart:core', 'dart:core', 'int');
+ expect(parameter.type, isNull);
expect(parameter.hasImplicitType, isTrue);
}
@@ -1435,7 +1435,8 @@ class C {
'typedef F<T>(T x); class C<X> { C(this.f); F<X> f; }')
.executables);
UnlinkedParam parameter = executable.parameters[0];
- expect(parameter.parameters, hasLength(1));
+ expect(parameter.isFunctionTyped, isFalse);
+ expect(parameter.parameters, isEmpty);
}
test_constructor_named() {
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698