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

Unified Diff: pkg/docgen/lib/src/models/indexable.dart

Issue 713863003: Generate docgen file names with hyphens in their names instead of colons (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test Created 6 years, 1 month 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 | « pkg/docgen/lib/src/generator.dart ('k') | pkg/docgen/test/inherited_comments_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/src/models/indexable.dart
diff --git a/pkg/docgen/lib/src/models/indexable.dart b/pkg/docgen/lib/src/models/indexable.dart
index 9231a7ef4b53e425273fc88d046fad4a94310e41..1c14a794a5545c93d5b989311a8b4116750570d4 100644
--- a/pkg/docgen/lib/src/models/indexable.dart
+++ b/pkg/docgen/lib/src/models/indexable.dart
@@ -39,6 +39,11 @@ abstract class Indexable<TMirror extends DeclarationMirror>
/// This defines both the URL and the directory structure.
String get qualifiedName => packagePrefix + ownerPrefix + name;
+ /// The name of the file we write this object's data into. The same as the
+ /// qualified name but with leading colons (i.e. dart:)
+ /// replaced by hyphens because of Windows.
+ String get fileName => qualifiedName.replaceFirst(":", "-");
+
final TMirror mirror;
final bool isPrivate;
/// The comment text pre-resolution. We keep this around because inherited
« no previous file with comments | « pkg/docgen/lib/src/generator.dart ('k') | pkg/docgen/test/inherited_comments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698