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

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

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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 | « tools/testing/dart/test_suite.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 * To use it, from this directory, run: 6 * To use it, from this directory, run:
7 * 7 *
8 * $ ./dartdoc <path to .dart file> 8 * $ ./dartdoc <path to .dart file>
9 * 9 *
10 * This will create a "docs" directory with the docs for your libraries. To 10 * This will create a "docs" directory with the docs for your libraries. To
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 var oldDietParse = options.dietParse; 181 var oldDietParse = options.dietParse;
182 try { 182 try {
183 options.dietParse = true; 183 options.dietParse = true;
184 184
185 // Handle the built-in entrypoints. 185 // Handle the built-in entrypoints.
186 switch (entrypoint) { 186 switch (entrypoint) {
187 case 'corelib': 187 case 'corelib':
188 world.getOrAddLibrary('dart:core'); 188 world.getOrAddLibrary('dart:core');
189 world.getOrAddLibrary('dart:coreimpl'); 189 world.getOrAddLibrary('dart:coreimpl');
190 world.getOrAddLibrary('dart:json'); 190 world.getOrAddLibrary('dart:json');
191 world.getOrAddLibrary('dart:isolate');
191 world.process(); 192 world.process();
192 break; 193 break;
193 194
194 case 'dom': 195 case 'dom':
195 world.getOrAddLibrary('dart:core'); 196 world.getOrAddLibrary('dart:core');
196 world.getOrAddLibrary('dart:coreimpl'); 197 world.getOrAddLibrary('dart:coreimpl');
197 world.getOrAddLibrary('dart:json'); 198 world.getOrAddLibrary('dart:json');
198 world.getOrAddLibrary('dart:dom'); 199 world.getOrAddLibrary('dart:dom');
200 world.getOrAddLibrary('dart:isolate');
199 world.process(); 201 world.process();
200 break; 202 break;
201 203
202 case 'html': 204 case 'html':
203 world.getOrAddLibrary('dart:core'); 205 world.getOrAddLibrary('dart:core');
204 world.getOrAddLibrary('dart:coreimpl'); 206 world.getOrAddLibrary('dart:coreimpl');
205 world.getOrAddLibrary('dart:json'); 207 world.getOrAddLibrary('dart:json');
206 world.getOrAddLibrary('dart:dom'); 208 world.getOrAddLibrary('dart:dom');
207 world.getOrAddLibrary('dart:html'); 209 world.getOrAddLibrary('dart:html');
210 world.getOrAddLibrary('dart:isolate');
208 world.process(); 211 world.process();
209 break; 212 break;
210 213
211 default: 214 default:
212 // Normal entrypoint script. 215 // Normal entrypoint script.
213 world.processDartScript(entrypoint); 216 world.processDartScript(entrypoint);
214 } 217 }
215 218
216 world.resolveAll(); 219 world.resolveAll();
217 220
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 1209
1207 return new md.Element.text('code', name); 1210 return new md.Element.text('code', name);
1208 } 1211 }
1209 1212
1210 // TODO(rnystrom): Move into SourceSpan? 1213 // TODO(rnystrom): Move into SourceSpan?
1211 int getSpanColumn(SourceSpan span) { 1214 int getSpanColumn(SourceSpan span) {
1212 final line = span.file.getLine(span.start); 1215 final line = span.file.getLine(span.start);
1213 return span.file.getColumn(line, span.start); 1216 return span.file.getColumn(line, span.start);
1214 } 1217 }
1215 } 1218 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_suite.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698