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

Unified Diff: pkg/dartdoc/lib/dartdoc.dart

Issue 11039018: Show noargs methods as () instead of (...) in find-as-you-type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 2 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/dartdoc/lib/src/client/dropdown.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/dartdoc.dart
diff --git a/pkg/dartdoc/lib/dartdoc.dart b/pkg/dartdoc/lib/dartdoc.dart
index 68b567534f9569a21a9bb4c0ff175b304dbb5a3a..815833a451f4d07efd1b782d230e7bcb4b9ea1ae 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -637,6 +637,9 @@ class Dartdoc {
memberInfo[NAME] = member.simpleName;
memberInfo[KIND] = METHOD;
}
+ if (method.parameters.isEmpty()) {
+ memberInfo[NO_PARAMS] = true;
+ }
}
var anchor = memberAnchor(member);
if (anchor != memberInfo[NAME]) {
« no previous file with comments | « no previous file | pkg/dartdoc/lib/src/client/dropdown.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698