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

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

Issue 20138002: qualified names added (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 aa8cb12275508584504641c3d0d05d13b9c893a1..72f6a132bf9d8c2a7f2d0651c9822b3559fdd586 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -470,11 +470,13 @@ bool isError(String qualifiedName) {
*/
class Indexable {
String name;
+ String qualifiedName;
/// Documentation comment with converted markdown.
String comment;
Indexable(this.name, this.comment, String qualifiedName) {
+ this.qualifiedName = qualifiedName;
qualifiedNameIndex.add(qualifiedName);
}
}
@@ -499,6 +501,7 @@ class Library extends Indexable {
/// Generates a map describing the [Library] object.
Map toMap() => {
'name': name,
+ 'qualifiedname': qualifiedName,
'comment': comment,
'variables': recurseMap(variables),
'functions': recurseMap(functions),
@@ -536,6 +539,7 @@ class Class extends Indexable {
/// Generates a map describing the [Class] object.
Map toMap() => {
'name': name,
+ 'qualifiedname': qualifiedName,
'comment': comment,
'superclass': superclass,
'implements': new List.from(interfaces),
@@ -563,6 +567,7 @@ class Typedef extends Indexable {
Map toMap() => {
'name': name,
+ 'qualifiedname': qualifiedName,
'comment': comment,
'return': returnType,
'parameters': recurseMap(parameters),
@@ -591,6 +596,7 @@ class Variable extends Indexable {
/// Generates a map describing the [Variable] object.
Map toMap() => {
'name': name,
+ 'qualifiedname': qualifiedName,
'comment': comment,
'final': isFinal.toString(),
'static': isStatic.toString(),
@@ -624,6 +630,7 @@ class Method extends Indexable {
/// Generates a map describing the [Method] object.
Map toMap() => {
'name': name,
+ 'qualifiedname': qualifiedName,
'comment': comment,
'static': isStatic.toString(),
'abstract': isAbstract.toString(),
« 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