| 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 /** | 5 /** |
| 6 * This generates the reference documentation for the core libraries that come | 6 * This generates the reference documentation for the core libraries that come |
| 7 * with dart. It is built on top of dartdoc, which is a general-purpose library | 7 * with dart. It is built on top of dartdoc, which is a general-purpose library |
| 8 * for generating docs from any Dart code. This library extends that to include | 8 * for generating docs from any Dart code. This library extends that to include |
| 9 * additional information and styling specific to our standard library. | 9 * additional information and styling specific to our standard library. |
| 10 * | 10 * |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Add all of the core libraries. | 123 // Add all of the core libraries. |
| 124 world.getOrAddLibrary('dart:core'); | 124 world.getOrAddLibrary('dart:core'); |
| 125 world.getOrAddLibrary('dart:coreimpl'); | 125 world.getOrAddLibrary('dart:coreimpl'); |
| 126 world.getOrAddLibrary('dart:crypto'); | 126 world.getOrAddLibrary('dart:crypto'); |
| 127 world.getOrAddLibrary('dart:html'); | 127 world.getOrAddLibrary('dart:html'); |
| 128 world.getOrAddLibrary('dart:io'); | 128 world.getOrAddLibrary('dart:io'); |
| 129 world.getOrAddLibrary('dart:isolate'); | 129 world.getOrAddLibrary('dart:isolate'); |
| 130 world.getOrAddLibrary('dart:json'); | 130 world.getOrAddLibrary('dart:json'); |
| 131 world.getOrAddLibrary('${doc.scriptDir}/../../lib/math/math.dart'); | 131 world.getOrAddLibrary('${doc.scriptDir}/../../lib/math/math.dart'); |
| 132 world.getOrAddLibrary('${doc.scriptDir}/../../lib/unittest/unittest.dart'); | 132 world.getOrAddLibrary('${doc.scriptDir}/../../lib/unittest/unittest.dart'); |
| 133 world.getOrAddLibrary('${doc.scriptDir}/../../lib/i18n/intl.dart'); |
| 133 world.getOrAddLibrary('dart:uri'); | 134 world.getOrAddLibrary('dart:uri'); |
| 134 world.getOrAddLibrary('dart:utf'); | 135 world.getOrAddLibrary('dart:utf'); |
| 135 world.getOrAddLibrary('dart:web'); | 136 world.getOrAddLibrary('dart:web'); |
| 136 world.process(); | 137 world.process(); |
| 137 | 138 |
| 138 print('Generating docs...'); | 139 print('Generating docs...'); |
| 139 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache); | 140 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache); |
| 140 | 141 |
| 141 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { | 142 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { |
| 142 apidoc.document(); | 143 apidoc.document(); |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 if (member.isConstructor || member.isFactory) { | 550 if (member.isConstructor || member.isFactory) { |
| 550 final separator = member.constructorName == '' ? '' : '.'; | 551 final separator = member.constructorName == '' ? '' : '.'; |
| 551 memberName = 'new $typeName$separator${member.constructorName}'; | 552 memberName = 'new $typeName$separator${member.constructorName}'; |
| 552 } else if (member.name.startsWith(GET_PREFIX)) { | 553 } else if (member.name.startsWith(GET_PREFIX)) { |
| 553 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; | 554 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; |
| 554 } | 555 } |
| 555 | 556 |
| 556 return a(memberUrl(member), memberName); | 557 return a(memberUrl(member), memberName); |
| 557 } | 558 } |
| 558 } | 559 } |
| OLD | NEW |