| 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 /** An html5 token. */ | 4 /** An html5 token. */ |
| 5 class Token { | 5 class Token { |
| 6 abstract int get kind; | 6 abstract int get kind; |
| 7 | 7 |
| 8 // TODO(jmesserly): it'd be nice to remove this and always use the ".data" | 8 // TODO(jmesserly): it'd be nice to remove this and always use the ".data" |
| 9 // on the particular token type. | 9 // on the particular token type. |
| 10 abstract get data; | 10 abstract get data; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 class TokenKind { | 97 class TokenKind { |
| 98 static const int spaceCharacters = 0; | 98 static const int spaceCharacters = 0; |
| 99 static const int characters = 1; | 99 static const int characters = 1; |
| 100 static const int startTag = 2; | 100 static const int startTag = 2; |
| 101 static const int endTag = 3; | 101 static const int endTag = 3; |
| 102 static const int comment = 4; | 102 static const int comment = 4; |
| 103 static const int doctype = 5; | 103 static const int doctype = 5; |
| 104 static const int parseError = 6; | 104 static const int parseError = 6; |
| 105 } | 105 } |
| OLD | NEW |