Chromium Code Reviews| 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 |
| }; |
| -} |
| +} |