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

Side by Side Diff: pkg/dartdoc/lib/src/client/client-shared.dart

Issue 10919260: Reorganize dartdoc to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Code shared between the different client-side libraries. 5 // Code shared between the different client-side libraries.
6 6
7 // The names of the library and type that this page documents. 7 // The names of the library and type that this page documents.
8 String currentLibrary = null; 8 String currentLibrary = null;
9 String currentType = null; 9 String currentType = null;
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 String getLibraryMemberUrl(String libraryName, Map memberInfo) => 66 String getLibraryMemberUrl(String libraryName, Map memberInfo) =>
67 '$prefix${sanitize(libraryName)}.html#${getMemberAnchor(memberInfo)}'; 67 '$prefix${sanitize(libraryName)}.html#${getMemberAnchor(memberInfo)}';
68 68
69 String getTypeMemberUrl(String libraryName, String typeName, Map memberInfo) => 69 String getTypeMemberUrl(String libraryName, String typeName, Map memberInfo) =>
70 '$prefix${sanitize(libraryName)}/${sanitize(typeName)}.html#' 70 '$prefix${sanitize(libraryName)}/${sanitize(typeName)}.html#'
71 '${getMemberAnchor(memberInfo)}'; 71 '${getMemberAnchor(memberInfo)}';
72 72
73 String getMemberAnchor(Map memberInfo) => memberInfo.containsKey(LINK_NAME) 73 String getMemberAnchor(Map memberInfo) => memberInfo.containsKey(LINK_NAME)
74 ? memberInfo[LINK_NAME] : memberInfo[NAME]; 74 ? memberInfo[LINK_NAME] : memberInfo[NAME];
OLDNEW
« no previous file with comments | « pkg/dartdoc/lib/src/client/client-live-nav.dart ('k') | pkg/dartdoc/lib/src/client/client-static.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698