Index: tools/html_json_doc/lib/html_to_json.dart |
diff --git a/tools/html_json_doc/lib/html_to_json.dart b/tools/html_json_doc/lib/html_to_json.dart |
index 676e3c309190b050a802c51d69aff6eeaf3afbf9..1a82c9eaf1be14de0d0b4a4b4b62e66cfadc8696 100644 |
--- a/tools/html_json_doc/lib/html_to_json.dart |
+++ b/tools/html_json_doc/lib/html_to_json.dart |
@@ -82,7 +82,7 @@ Future<Object> _convertFiles(Path htmlPath) { |
final lister = htmlDir.list(recursive: false); |
lister.onFile = (String path) { |
- final name = new Path.fromNative(path).filename; |
+ final name = new Path(path).filename; |
// Ignore private classes. |
if (name.startsWith('_')) return; |