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

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

Issue 2661123002: Don't resynthesize field types during class members resynthesis. (Closed)
Patch Set: Created 3 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_common.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_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index d7a25f35190fe49516009fb11168e80499249837..b8336556d85781ad099ea2cf18728040ff67a830 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -9554,6 +9554,17 @@ f(x) => 42;
_assertParameterZeroVisibleRange(p);
}
+ test_parameter_visibleRange_invalid_fieldFormalParameter() {
+ UnlinkedExecutable m =
+ findExecutable('m', executables: serializeClassText(r'''
+class C {
+ int foo;
+ void m(this.foo) {}
+}
+''').executables);
+ _assertParameterZeroVisibleRange(m.parameters[0]);
+ }
+
test_parameter_visibleRange_typedef() {
UnlinkedTypedef type = serializeTypedefText('typedef F(x);');
_assertParameterZeroVisibleRange(type.parameters[0]);
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698