Index: pkg/csslib/lib/src/token.dart |
diff --git a/pkg/csslib/lib/src/token.dart b/pkg/csslib/lib/src/token.dart |
index cf9e376eefe26afb94dd8a200bd4bc019ef37c6f..7e70f88c0823994a1cb50c4382d3b52c6fa3c895 100644 |
--- a/pkg/csslib/lib/src/token.dart |
+++ b/pkg/csslib/lib/src/token.dart |
@@ -51,3 +51,16 @@ class ErrorToken extends Token { |
String message; |
ErrorToken(int kind, Span span, this.message) : super(kind, span); |
} |
+ |
+/** |
+ * CSS ident-token. |
+ * |
+ * See <http://dev.w3.org/csswg/css-syntax/#typedef-ident-token> and |
+ * <http://dev.w3.org/csswg/css-syntax/#ident-token-diagram>. |
+ */ |
+class IdentifierToken extends Token { |
+ final String text; |
+ |
+ IdentifierToken(this.text, int kind, Span span) |
+ : super(kind, span); |
+} |