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 |