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

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

Issue 10563023: Reapply "Add dart:web to dart2js and editor, containing only htmlEscape." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « lib/web/web.dart ('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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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');
134 world.process(); 135 world.process();
135 136
136 print('Generating docs...'); 137 print('Generating docs...');
137 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache); 138 final apidoc = new Apidoc(mdn, htmldoc, outputDir, mode, generateAppCache);
138 139
139 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) { 140 Futures.wait([scriptCompiled, copiedStatic, copiedApiDocStatic]).then((_) {
140 apidoc.document(); 141 apidoc.document();
141 }); 142 });
142 } 143 }
143 144
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 if (member.isConstructor || member.isFactory) { 548 if (member.isConstructor || member.isFactory) {
548 final separator = member.constructorName == '' ? '' : '.'; 549 final separator = member.constructorName == '' ? '' : '.';
549 memberName = 'new $typeName$separator${member.constructorName}'; 550 memberName = 'new $typeName$separator${member.constructorName}';
550 } else if (member.name.startsWith(GET_PREFIX)) { 551 } else if (member.name.startsWith(GET_PREFIX)) {
551 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}'; 552 memberName = '$typeName.${member.name.substring(GET_PREFIX.length)}';
552 } 553 }
553 554
554 return a(memberUrl(member), memberName); 555 return a(memberUrl(member), memberName);
555 } 556 }
556 } 557 }
OLDNEW
« no previous file with comments | « lib/web/web.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698