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

Unified Diff: lib/src/inputstream.dart

Issue 11260039: Advance html5lib to newest breaking changes in core: getKeys -> keys, etc (Closed) Base URL: git@github.com:dart-lang/html5lib.git@master
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/parser.dart ('k') | lib/src/list_proxy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/inputstream.dart
diff --git a/lib/src/inputstream.dart b/lib/src/inputstream.dart
index 4c318b2d574f0b8b543fbea049e80232ec4dee36..f602177e6351c6482c0c3994c061f0aec3f89916 100644
--- a/lib/src/inputstream.dart
+++ b/lib/src/inputstream.dart
@@ -93,7 +93,7 @@ class HtmlInputStream {
if (source is String) {
// TODO(jmesserly): if the data is already a string, we should just use
- // the source.charCodes() instead of wasting time encoding/decoding.
+ // the source.charCodes instead of wasting time encoding/decoding.
rawBytes = encodeUtf8(source);
charEncodingName = 'utf-8';
charEncodingCertain = true;
@@ -306,7 +306,7 @@ class HtmlInputStream {
hex = (hex.length == 1) ? "0$hex" : hex;
return "\\u00$hex";
}
- var regex = joinStr(characters.charCodes().map(escapeChar));
+ var regex = joinStr(characters.charCodes.map(escapeChar));
if (!opposite) {
regex = "^${regex}";
}
@@ -326,8 +326,8 @@ class HtmlInputStream {
break;
}
} else {
- assert(m.start() == 0);
- var end = m.end();
+ assert(m.start == 0);
+ var end = m.end;
// If not the whole chunk matched, return everything
// up to the part that didn't match
if (end != chunk.length - chunkOffset) {
« no previous file with comments | « lib/parser.dart ('k') | lib/src/list_proxy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698