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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * To generate docs for a library, run this script with the path to an 6 * To generate docs for a library, run this script with the path to an
7 * entrypoint .dart file, like: 7 * entrypoint .dart file, like:
8 * 8 *
9 * $ dart dartdoc.dart foo.dart 9 * $ dart dartdoc.dart foo.dart
10 * 10 *
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } else if (method.isSetter) { 630 } else if (method.isSetter) {
631 memberInfo[NAME] = member.simpleName; 631 memberInfo[NAME] = member.simpleName;
632 memberInfo[KIND] = SETTER; 632 memberInfo[KIND] = SETTER;
633 } else if (method.isGetter) { 633 } else if (method.isGetter) {
634 memberInfo[NAME] = member.simpleName; 634 memberInfo[NAME] = member.simpleName;
635 memberInfo[KIND] = GETTER; 635 memberInfo[KIND] = GETTER;
636 } else { 636 } else {
637 memberInfo[NAME] = member.simpleName; 637 memberInfo[NAME] = member.simpleName;
638 memberInfo[KIND] = METHOD; 638 memberInfo[KIND] = METHOD;
639 } 639 }
640 if (method.parameters.isEmpty()) {
641 memberInfo[NO_ARGS] = true;
ngeoffray 2012/10/02 16:06:38 NO_ARGS -> NO_PARAMS?
Johnni Winther 2012/10/03 09:22:16 Done.
642 }
640 } 643 }
641 var anchor = memberAnchor(member); 644 var anchor = memberAnchor(member);
642 if (anchor != memberInfo[NAME]) { 645 if (anchor != memberInfo[NAME]) {
643 memberInfo[LINK_NAME] = anchor; 646 memberInfo[LINK_NAME] = anchor;
644 } 647 }
645 members.add(memberInfo); 648 members.add(memberInfo);
646 } 649 }
647 return members; 650 return members;
648 } 651 }
649 652
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 1578
1576 /** 1579 /**
1577 * Used to report an unexpected error in the DartDoc tool or the 1580 * Used to report an unexpected error in the DartDoc tool or the
1578 * underlying data 1581 * underlying data
1579 */ 1582 */
1580 class InternalError { 1583 class InternalError {
1581 final String message; 1584 final String message;
1582 const InternalError(this.message); 1585 const InternalError(this.message);
1583 String toString() => "InternalError: '$message'"; 1586 String toString() => "InternalError: '$message'";
1584 } 1587 }
OLDNEW
« no previous file with comments | « no previous file | pkg/dartdoc/lib/src/client/dropdown.dart » ('j') | pkg/dartdoc/lib/src/dartdoc/nav.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698