OLD | NEW |
1 /// This library contains token types used by the html5 tokenizer. | 1 /// This library contains token types used by the html5 tokenizer. |
2 library token; | 2 library token; |
3 | 3 |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'package:source_maps/span.dart' show FileSpan; | 5 import 'package:source_span/source_span.dart'; |
6 | 6 |
7 /// An html5 token. | 7 /// An html5 token. |
8 abstract class Token { | 8 abstract class Token { |
9 FileSpan span; | 9 FileSpan span; |
10 | 10 |
11 int get kind; | 11 int get kind; |
12 } | 12 } |
13 | 13 |
14 abstract class TagToken extends Token { | 14 abstract class TagToken extends Token { |
15 String name; | 15 String name; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 class TokenKind { | 110 class TokenKind { |
111 static const int spaceCharacters = 0; | 111 static const int spaceCharacters = 0; |
112 static const int characters = 1; | 112 static const int characters = 1; |
113 static const int startTag = 2; | 113 static const int startTag = 2; |
114 static const int endTag = 3; | 114 static const int endTag = 3; |
115 static const int comment = 4; | 115 static const int comment = 4; |
116 static const int doctype = 5; | 116 static const int doctype = 5; |
117 static const int parseError = 6; | 117 static const int parseError = 6; |
118 } | 118 } |
OLD | NEW |