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

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

Issue 141273003: Make constructor names hyphenated in qualifiedName json output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index a5270b5178dd8a9a1f1f600e266f5d1f253d3824..fb4238fdcc564e832291007e6935810cc70f06b3 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -1773,6 +1773,8 @@ class Method extends Indexable {
return super.docName;
}
+ String get fileName => packagePrefix + docName;
Alan Knight 2014/01/16 22:50:24 This doesn't seem to be used.
+
/// Makes sure that the method with an inherited equivalent have comments.
void ensureCommentFor(Method inheritedMethod) {
if (comment.isNotEmpty) return;
@@ -1919,15 +1921,12 @@ class Type extends MirrorBased {
return [];
}
- Map toMap() {
+ Map toMap() => {
// We may encounter types whose corresponding library has not been
// processed yet, so look up with the owningLibrary at the last moment.
- var result = getDocgenObject(mirror, owningLibrary);
- return {
- 'outer': result.docName,
- 'inner': _createTypeGenerics(mirror).map((e) => e.toMap()).toList(),
- };
- }
+ 'outer': getDocgenObject(mirror, owningLibrary).docName,
+ 'inner': _createTypeGenerics(mirror).map((e) => e.toMap()).toList(),
+ };
}
/// Holds the name of the annotation, and its parameters.
@@ -1950,4 +1949,4 @@ class Annotation extends MirrorBased {
'name': getDocgenObject(mirror, owningLibrary).docName,
'parameters': parameters
};
-}
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698