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

Unified Diff: pkg/third_party/html5lib/lib/src/tokenizer.dart

Issue 421503004: Switch transformers over to source_span (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 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 | « pkg/third_party/html5lib/lib/src/token.dart ('k') | pkg/third_party/html5lib/lib/src/treebuilder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/third_party/html5lib/lib/src/tokenizer.dart
diff --git a/pkg/third_party/html5lib/lib/src/tokenizer.dart b/pkg/third_party/html5lib/lib/src/tokenizer.dart
index b4863753f6b3c5f848df14621f12a4fb2bafdfed..1b6311497ac4a3b4c188032a6d852a276c13804c 100644
--- a/pkg/third_party/html5lib/lib/src/tokenizer.dart
+++ b/pkg/third_party/html5lib/lib/src/tokenizer.dart
@@ -2,7 +2,6 @@ library tokenizer;
import 'dart:collection';
import 'package:html5lib/parser.dart' show HtmlParser;
-import 'package:source_maps/span.dart' show Span, FileSpan;
import 'constants.dart';
import 'inputstream.dart';
import 'token.dart';
@@ -157,7 +156,7 @@ class HtmlTokenizer implements Iterator<Token> {
void _addToken(Token token) {
if (generateSpans && token.span == null) {
int offset = stream.position;
- token.span = new FileSpan(stream.fileInfo, _lastOffset, offset);
+ token.span = stream.fileInfo.span(_lastOffset, offset);
if (token is! ParseErrorToken) {
_lastOffset = offset;
}
« no previous file with comments | « pkg/third_party/html5lib/lib/src/token.dart ('k') | pkg/third_party/html5lib/lib/src/treebuilder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698