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

Unified Diff: tools/dom/docs/lib/docs.dart

Issue 19705015: Switch docs to path package (away from dart:io Path). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/docs/bin/docs.dart ('k') | tools/dom/docs/test/docs_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/lib/docs.dart
===================================================================
--- tools/dom/docs/lib/docs.dart (revision 25319)
+++ tools/dom/docs/lib/docs.dart (working copy)
@@ -51,10 +51,10 @@
*
* Completes to `true` if any errors were encountered, `false` otherwise.
*/
-Future<bool> convert(Path libPath, Path jsonPath) {
- var paths = <Path>[];
+Future<bool> convert(String libPath, String jsonPath) {
+ var paths = <String>[];
for (var libraryName in HTML_LIBRARY_NAMES) {
- paths.add(new Path(libraryName));
+ paths.add(libraryName);
}
return analyze(paths, libPath, options: ['--preserve-comments'])
@@ -64,9 +64,9 @@
});
}
-Future<bool> _exportJsonToFile(Map convertedJson, Path jsonPath) {
+Future<bool> _exportJsonToFile(Map convertedJson, String jsonPath) {
return new Future.sync(() {
- final jsonFile = new File.fromPath(jsonPath);
+ final jsonFile = new File(jsonPath);
var writeJson = prettySerialize(convertedJson);
var outputStream = jsonFile.openWrite();
« no previous file with comments | « tools/dom/docs/bin/docs.dart ('k') | tools/dom/docs/test/docs_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698