| OLD | NEW |
| 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 Loading... |
| 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]; |
| OLD | NEW |