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

Unified Diff: pkg/analyzer/test/src/summary/element_text.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 | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/element_text.dart
diff --git a/pkg/analyzer/test/src/summary/element_text.dart b/pkg/analyzer/test/src/summary/element_text.dart
index 65d7c8064161bfe5b6039e38ab40e35e10829025..6a87687760a38e5239a85d996203b152309f96d9 100644
--- a/pkg/analyzer/test/src/summary/element_text.dart
+++ b/pkg/analyzer/test/src/summary/element_text.dart
@@ -588,8 +588,9 @@ class _ElementWriter {
void writeParameterElement(ParameterElement e) {
String defaultValueSeparator;
- Expression defaultValue =
- e is DefaultParameterElementImpl ? e.constantInitializer : null;
+ Expression defaultValue = e is ConstVariableElement
+ ? (e as ConstVariableElement).constantInitializer
+ : null;
String closeString;
ParameterKind kind = e.parameterKind;
if (kind == ParameterKind.REQUIRED) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698