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

Side by Side Diff: dart/sdk/lib/_internal/dartdoc/lib/dartdoc.dart

Issue 57813002: Version 0.8.10.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/sdk/bin/dart2js.bat ('k') | dart/sdk/lib/io/platform.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 generate docs for a library, run this script with the path to an 6 * To generate docs for a library, run this script with the path to an
7 * entrypoint .dart file, like: 7 * entrypoint .dart file, like:
8 * 8 *
9 * $ dart dartdoc.dart foo.dart 9 * $ dart dartdoc.dart foo.dart
10 * 10 *
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } 419 }
420 content += '<div>${footerItems[i]}</div>'; 420 content += '<div>${footerItems[i]}</div>';
421 } 421 }
422 return content; 422 return content;
423 } 423 }
424 424
425 Future documentLibraries(List<Uri> libraryList, String libPath, 425 Future documentLibraries(List<Uri> libraryList, String libPath,
426 String packageRoot) { 426 String packageRoot) {
427 _packageRoot = packageRoot; 427 _packageRoot = packageRoot;
428 _exports = new ExportMap.parse(libraryList, packageRoot); 428 _exports = new ExportMap.parse(libraryList, packageRoot);
429 var librariesToAnalyze = _exports.allExportedFiles.toList(); 429 var librariesToAnalyze =
430 _exports.allExportedFiles
431 .map((file) => new Uri.file(file).toString())
432 .toList();
430 librariesToAnalyze.addAll(libraryList.map((uri) => uri.toString())); 433 librariesToAnalyze.addAll(libraryList.map((uri) => uri.toString()));
431 434
432 // dart2js takes a String, but it expects that to be a Uri, not a file 435 // dart2js takes a String, but it expects that to be a Uri, not a file
433 // system path. 436 // system path.
434 libPath = path.toUri(libPath).toString(); 437 libPath = path.toUri(libPath).toString();
435 438
436 if (packageRoot != null) { 439 if (packageRoot != null) {
437 packageRoot = path.toUri(packageRoot).toString(); 440 packageRoot = path.toUri(packageRoot).toString();
438 } 441 }
439 442
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 return ''' 2314 return '''
2312 <div class="mdn"> 2315 <div class="mdn">
2313 $mdnComment 2316 $mdnComment
2314 <div class="mdn-note"><a href="$mdnUrl">from MDN</a></div> 2317 <div class="mdn-note"><a href="$mdnUrl">from MDN</a></div>
2315 </div> 2318 </div>
2316 '''; 2319 ''';
2317 } 2320 }
2318 2321
2319 String toString() => mdnComment; 2322 String toString() => mdnComment;
2320 } 2323 }
OLDNEW
« no previous file with comments | « dart/sdk/bin/dart2js.bat ('k') | dart/sdk/lib/io/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698