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

Unified Diff: frog/member.dart

Issue 9152013: Get dartdoc running again. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/member.dart
diff --git a/frog/member.dart b/frog/member.dart
index d2fa90adbed9e2cccd8823fd856fcf515dd747ad..2ebba2aa95ab2606368ee80e0a6f55c02da6b16a 100644
--- a/frog/member.dart
+++ b/frog/member.dart
@@ -72,6 +72,13 @@ class Parameter {
}
bool get isOptional() => definition != null && definition.value != null;
+
+ /**
+ * Gets whether this named parameter has an explicit default value or relies
+ * on the implicit `null`.
+ */
+ bool get hasDefaultValue() =>
+ definition.value.span.start != definition.span.start;
}
« no previous file with comments | « no previous file | utils/dartdoc/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698