| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 world.getOrAddLibrary('dart:coreimpl'); | 124 world.getOrAddLibrary('dart:coreimpl'); |
| 125 world.getOrAddLibrary('dart:crypto'); | 125 world.getOrAddLibrary('dart:crypto'); |
| 126 world.getOrAddLibrary('dart:html'); | 126 world.getOrAddLibrary('dart:html'); |
| 127 world.getOrAddLibrary('dart:io'); | 127 world.getOrAddLibrary('dart:io'); |
| 128 world.getOrAddLibrary('dart:isolate'); | 128 world.getOrAddLibrary('dart:isolate'); |
| 129 world.getOrAddLibrary('dart:json'); | 129 world.getOrAddLibrary('dart:json'); |
| 130 world.getOrAddLibrary('${doc.scriptDir}/../../lib/math/math.dart'); | 130 world.getOrAddLibrary('${doc.scriptDir}/../../lib/math/math.dart'); |
| 131 world.getOrAddLibrary('${doc.scriptDir}/../../lib/unittest/unittest.dart'); | 131 world.getOrAddLibrary('${doc.scriptDir}/../../lib/unittest/unittest.dart'); |
| 132 world.getOrAddLibrary('dart:uri'); | 132 world.getOrAddLibrary('dart:uri'); |
| 133 world.getOrAddLibrary('dart:utf'); | 133 world.getOrAddLibrary('dart:utf'); |
| 134 world.getOrAddLibrary('dart:web'); | |
| 135 world.process(); | 134 world.process(); |
| 136 | 135 |
| 137 print('Generating docs...'); | 136 print('Generating docs...'); |
| 138 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache); | 137 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache); |
| 139 | 138 |
| 140 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { | 139 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { |
| 141 apidoc.document(); | 140 apidoc.document(); |
| 142 }); | 141 }); |
| 143 } | 142 } |
| 144 | 143 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 if (member.isConstructor || member.isFactory) { | 547 if (member.isConstructor || member.isFactory) { |
| 549 final separator = member.constructorName == '' ? '' : '.'; | 548 final separator = member.constructorName == '' ? '' : '.'; |
| 550 memberName = 'new $typeName$separator${member.constructorName}'; | 549 memberName = 'new $typeName$separator${member.constructorName}'; |
| 551 } else if (member.name.startsWith(GET_PREFIX)) { | 550 } else if (member.name.startsWith(GET_PREFIX)) { |
| 552 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; | 551 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; |
| 553 } | 552 } |
| 554 | 553 |
| 555 return a(memberUrl(member), memberName); | 554 return a(memberUrl(member), memberName); |
| 556 } | 555 } |
| 557 } | 556 } |
| OLD | NEW |