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

Side by Side Diff: utils/apidoc/apidoc.dart

Issue 10700013: revert 9192,9194 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 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
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');
134 world.getOrAddLibrary('dart:uri'); 133 world.getOrAddLibrary('dart:uri');
135 world.getOrAddLibrary('dart:utf'); 134 world.getOrAddLibrary('dart:utf');
136 world.getOrAddLibrary('dart:web'); 135 world.getOrAddLibrary('dart:web');
137 world.process(); 136 world.process();
138 137
139 print('Generating docs...'); 138 print('Generating docs...');
140 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache); 139 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache);
141 140
142 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { 141 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) {
143 apidoc.document(); 142 apidoc.document();
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 if (member.isConstructor || member.isFactory) { 549 if (member.isConstructor || member.isFactory) {
551 final separator = member.constructorName == '' ? '' : '.'; 550 final separator = member.constructorName == '' ? '' : '.';
552 memberName = 'new $typeName$separator${member.constructorName}'; 551 memberName = 'new $typeName$separator${member.constructorName}';
553 } else if (member.name.startsWith(GET_PREFIX)) { 552 } else if (member.name.startsWith(GET_PREFIX)) {
554 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; 553 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}';
555 } 554 }
556 555
557 return a(memberUrl(member), memberName); 556 return a(memberUrl(member), memberName);
558 } 557 }
559 } 558 }
OLDNEW
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698