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

Unified Diff: client/lib/item.dart

Issue 149573008: Factor out the anchor prefix to easily allow switching to #! (Closed) Base URL: https://github.com/dart-lang/dartdoc-viewer.git@master
Patch Set: Fixes from review Created 6 years, 10 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 | client/lib/location.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/lib/item.dart
diff --git a/client/lib/item.dart b/client/lib/item.dart
index 15cdbd1c770698caf2f5dc83d0253ddc363ad152..c1dcaff9b8e75c65d91ce063569eb10c7afe998e 100644
--- a/client/lib/item.dart
+++ b/client/lib/item.dart
@@ -215,6 +215,9 @@ class Filter {
/// Creates a link for the href attribute of an [AnchorElement].
String get linkHref => qualifiedName;
+ /// [linkHref] but with the leading # separator.
+ String get prefixedLinkHref => locationPrefixed(linkHref);
+
/// The [DocsLocation] for our URI.
DocsLocation get location => new DocsLocation(qualifiedName);
@@ -237,6 +240,9 @@ class Filter {
String get anchorHref => anchorHrefLocation.withAnchor;
+ /// [anchorHref] but with the leading # separator.
+ String get prefixedAnchorHref => locationPrefixed(anchorHref);
+
bool get isLoaded => true;
Item memberNamed(String name, {Function orElse : nothing}) => nothing();
« no previous file with comments | « no previous file | client/lib/location.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698