OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of csslib.parser; | 5 part of csslib.parser; |
6 | 6 |
7 /** | 7 /** |
8 * A single token in the Dart language. | 8 * A single token in the Dart language. |
9 */ | 9 */ |
10 class Token { | 10 class Token { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class LiteralToken extends Token { | 44 class LiteralToken extends Token { |
45 var value; | 45 var value; |
46 LiteralToken(int kind, Span span, this.value) : super(kind, span); | 46 LiteralToken(int kind, Span span, this.value) : super(kind, span); |
47 } | 47 } |
48 | 48 |
49 /** A token containing error information. */ | 49 /** A token containing error information. */ |
50 class ErrorToken extends Token { | 50 class ErrorToken extends Token { |
51 String message; | 51 String message; |
52 ErrorToken(int kind, Span span, this.message) : super(kind, span); | 52 ErrorToken(int kind, Span span, this.message) : super(kind, span); |
53 } | 53 } |
| 54 |
| 55 /** |
| 56 * CSS ident-token. |
| 57 * |
| 58 * See <http://dev.w3.org/csswg/css-syntax/#typedef-ident-token> and |
| 59 * <http://dev.w3.org/csswg/css-syntax/#ident-token-diagram>. |
| 60 */ |
| 61 class IdentifierToken extends Token { |
| 62 final String text; |
| 63 |
| 64 IdentifierToken(this.text, int kind, Span span) |
| 65 : super(kind, span); |
| 66 } |
OLD | NEW |