| OLD | NEW |
| 1 part of client_live_nav; | |
| 2 | |
| 3 // 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 |
| 4 // 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 |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 // Code shared between the different client-side libraries. | 5 // Code shared between the different client-side libraries. |
| 8 | 6 |
| 9 // The names of the library and type that this page documents. | 7 // The names of the library and type that this page documents. |
| 10 String currentLibrary = null; | 8 String currentLibrary = null; |
| 11 String currentType = null; | 9 String currentType = null; |
| 12 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 97 |
| 100 String getLibraryMemberUrl(String libraryName, Map memberInfo) => | 98 String getLibraryMemberUrl(String libraryName, Map memberInfo) => |
| 101 '$prefix${sanitize(libraryName)}.html#${getMemberAnchor(memberInfo)}'; | 99 '$prefix${sanitize(libraryName)}.html#${getMemberAnchor(memberInfo)}'; |
| 102 | 100 |
| 103 String getTypeMemberUrl(String libraryName, String typeName, Map memberInfo) => | 101 String getTypeMemberUrl(String libraryName, String typeName, Map memberInfo) => |
| 104 '$prefix${sanitize(libraryName)}/${sanitize(typeName)}.html#' | 102 '$prefix${sanitize(libraryName)}/${sanitize(typeName)}.html#' |
| 105 '${getMemberAnchor(memberInfo)}'; | 103 '${getMemberAnchor(memberInfo)}'; |
| 106 | 104 |
| 107 String getMemberAnchor(Map memberInfo) => memberInfo.containsKey(LINK_NAME) | 105 String getMemberAnchor(Map memberInfo) => memberInfo.containsKey(LINK_NAME) |
| 108 ? memberInfo[LINK_NAME] : memberInfo[NAME]; | 106 ? memberInfo[LINK_NAME] : memberInfo[NAME]; |
| OLD | NEW |