| Index: pkg/third_party/html5lib/lib/parser_console.dart
|
| diff --git a/pkg/third_party/html5lib/lib/parser_console.dart b/pkg/third_party/html5lib/lib/parser_console.dart
|
| index 7858ab2e0b7b2824456cff03cdc5983782c9083a..515f891c45cf3b242bc3b7e5ebc6134a7e9117ef 100644
|
| --- a/pkg/third_party/html5lib/lib/parser_console.dart
|
| +++ b/pkg/third_party/html5lib/lib/parser_console.dart
|
| @@ -1,19 +1,15 @@
|
| -/**
|
| - * This library adds `dart:io` support to the HTML5 parser. Call
|
| - * [initDartIOSupport] before calling the [parse] methods and they will accept
|
| - * a [RandomAccessFile] as input, in addition to the other input types.
|
| - */
|
| +/// This library adds `dart:io` support to the HTML5 parser. Call
|
| +/// [initDartIOSupport] before calling the [parse] methods and they will accept
|
| +/// a [RandomAccessFile] as input, in addition to the other input types.
|
| library parser_console;
|
|
|
| import 'dart:io';
|
| import 'parser.dart';
|
| import 'src/inputstream.dart' as inputstream;
|
|
|
| -/**
|
| - * Adds support to the [HtmlParser] for running on a console VM. In particular
|
| - * this means it will be able to handle `dart:io` and [RandomAccessFile]s as
|
| - * input to the various [parse] methods.
|
| - */
|
| +/// Adds support to the [HtmlParser] for running on a console VM. In particular
|
| +/// this means it will be able to handle `dart:io` and [RandomAccessFile]s as
|
| +/// input to the various [parse] methods.
|
| void useConsole() {
|
| inputstream.consoleSupport = new _ConsoleSupport();
|
| }
|
| @@ -26,7 +22,7 @@ class _ConsoleSupport extends inputstream.ConsoleSupport {
|
| }
|
|
|
| // TODO(jmesserly): this should be `RandomAccessFile.readAllBytes`.
|
| -/** Synchronously reads all bytes from the [file]. */
|
| +/// Synchronously reads all bytes from the [file].
|
| List<int> readAllBytesFromFile(RandomAccessFile file) {
|
| int length = file.lengthSync();
|
| var bytes = new List<int>(length);
|
|
|