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

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

Issue 2981303002: Include default values for default field formal parameters into text dump. (Closed)
Patch Set: Remove debug output. Created 3 years, 5 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/element_text.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/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 92d9b20eef58b339bf2b3111c038952227c10d2e..c90d69c27f5ab01a44f301a8c4018e084a70fd4e 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -1987,14 +1987,14 @@ class C {
checkElementText(library, r'''
class C {
int x;
- C({int this.x});
+ C({int this.x: 42});
}
''');
} else {
checkElementText(library, r'''
class C {
int x;
- C({int this.x});
+ C({int this.x: 42});
}
''');
}
@@ -2025,14 +2025,14 @@ class C {
checkElementText(library, r'''
class C {
int x;
- C([int this.x]);
+ C([int this.x = 42]);
}
''');
} else {
checkElementText(library, r'''
class C {
int x;
- C([int this.x]);
+ C([int this.x = 42]);
}
''');
}
@@ -3821,7 +3821,8 @@ int foo() => 42;
checkElementText(library, r'''
class C {
final dynamic x;
- const C({dynamic this.x});
+ const C({dynamic this.x:
+ foo/*location: test.dart;foo*/});
}
int foo() {}
''');
@@ -3829,7 +3830,8 @@ int foo() {}
checkElementText(library, r'''
class C {
final dynamic x;
- const C({dynamic this.x});
+ const C({dynamic this.x:
+ foo/*location: test.dart;foo*/});
}
int foo() {}
''');
@@ -3847,14 +3849,14 @@ class C {
checkElementText(library, r'''
class C {
final dynamic x;
- const C({dynamic this.x});
+ const C({dynamic this.x: 1 + 2});
}
''');
} else {
checkElementText(library, r'''
class C {
final dynamic x;
- const C({dynamic this.x});
+ const C({dynamic this.x: 1 + 2});
}
''');
}
@@ -3871,14 +3873,14 @@ class C {
checkElementText(library, r'''
class C {
final dynamic x;
- const C([dynamic this.x]);
+ const C([dynamic this.x = 1 + 2]);
}
''');
} else {
checkElementText(library, r'''
class C {
final dynamic x;
- const C([dynamic this.x]);
+ const C([dynamic this.x = 1 + 2]);
}
''');
}
@@ -9778,7 +9780,7 @@ const dynamic a = null;
class C {
dynamic x;
C([@
- a/*location: test.dart;a?*/ dynamic this.x]);
+ a/*location: test.dart;a?*/ dynamic this.x = null]);
}
const dynamic a = null;
''');
@@ -9787,7 +9789,7 @@ const dynamic a = null;
class C {
dynamic x;
C([@
- a/*location: test.dart;a?*/ dynamic this.x]);
+ a/*location: test.dart;a?*/ dynamic this.x = null]);
}
const dynamic a = null;
''');
@@ -10951,16 +10953,16 @@ class C {
checkElementText(library, r'''
class C {
dynamic x;
- C.positional([dynamic this.x]);
- C.named({dynamic this.x});
+ C.positional([dynamic this.x = 1]);
+ C.named({dynamic this.x: 1});
}
''');
} else {
checkElementText(library, r'''
class C {
dynamic x;
- C.positional([dynamic this.x]);
- C.named({dynamic this.x});
+ C.positional([dynamic this.x = 1]);
+ C.named({dynamic this.x: 1});
}
''');
}
« no previous file with comments | « pkg/analyzer/test/src/summary/element_text.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698