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

Side by Side Diff: packages/html/lib/parser_console.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « packages/html/lib/parser.dart ('k') | packages/html/lib/src/char_encodings.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 /// This library adds `dart:io` support to the HTML5 parser. Call 1 /// This library adds `dart:io` support to the HTML5 parser. Call
2 /// [initDartIOSupport] before calling the [parse] methods and they will accept 2 /// [initDartIOSupport] before calling the [parse] methods and they will accept
3 /// a [RandomAccessFile] as input, in addition to the other input types. 3 /// a [RandomAccessFile] as input, in addition to the other input types.
4 library parser_console; 4 library parser_console;
5 5
6 import 'dart:io'; 6 import 'dart:io';
7 import 'parser.dart'; 7 import 'parser.dart';
8 import 'src/inputstream.dart' as inputstream; 8 import 'src/inputstream.dart' as inputstream;
9 9
10 /// Adds support to the [HtmlParser] for running on a console VM. In particular 10 /// Adds support to the [HtmlParser] for running on a console VM. In particular
(...skipping 22 matching lines...) Expand all
33 if (read <= 0) { 33 if (read <= 0) {
34 // This could happen if, for example, the file was resized while 34 // This could happen if, for example, the file was resized while
35 // we're reading. Just shrink the bytes array and move on. 35 // we're reading. Just shrink the bytes array and move on.
36 bytes = bytes.sublist(0, bytesRead); 36 bytes = bytes.sublist(0, bytesRead);
37 break; 37 break;
38 } 38 }
39 bytesRead += read; 39 bytesRead += read;
40 } 40 }
41 return bytes; 41 return bytes;
42 } 42 }
OLDNEW
« no previous file with comments | « packages/html/lib/parser.dart ('k') | packages/html/lib/src/char_encodings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698