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

Side by Side Diff: packages/csslib/lib/src/tokenkind.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « packages/csslib/lib/src/tokenizer_base.dart ('k') | packages/csslib/lib/src/tree.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // TODO(terry): Need to be consistent with tokens either they're ASCII tokens 7 // TODO(terry): Need to be consistent with tokens either they're ASCII tokens
8 // e.g., ASTERISK or they're CSS e.g., PSEUDO, COMBINATOR_*. 8 // e.g., ASTERISK or they're CSS e.g., PSEUDO, COMBINATOR_*.
9 class TokenKind { 9 class TokenKind {
10 // Common shared tokens used in TokenizerBase. 10 // Common shared tokens used in TokenizerBase.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static const int HEX_RANGE = 509; // ? in the hex range 93 static const int HEX_RANGE = 509; // ? in the hex range
94 static const int IDENTIFIER = 511; 94 static const int IDENTIFIER = 511;
95 95
96 // Uniquely synthesized tokens for CSS. 96 // Uniquely synthesized tokens for CSS.
97 static const int SELECTOR_EXPRESSION = 512; 97 static const int SELECTOR_EXPRESSION = 512;
98 static const int COMBINATOR_NONE = 513; 98 static const int COMBINATOR_NONE = 513;
99 static const int COMBINATOR_DESCENDANT = 514; // Space combinator 99 static const int COMBINATOR_DESCENDANT = 514; // Space combinator
100 static const int COMBINATOR_PLUS = 515; // + combinator 100 static const int COMBINATOR_PLUS = 515; // + combinator
101 static const int COMBINATOR_GREATER = 516; // > combinator 101 static const int COMBINATOR_GREATER = 516; // > combinator
102 static const int COMBINATOR_TILDE = 517; // ~ combinator 102 static const int COMBINATOR_TILDE = 517; // ~ combinator
103 static const int COMBINATOR_SHADOW_PIERCING_DESCENDANT = 518; // >>>
104 static const int COMBINATOR_DEEP = 519; // /deep/ (aliases >>>)
103 105
104 static const int UNARY_OP_NONE = 518; // No unary operator present. 106 static const int UNARY_OP_NONE = 520; // No unary operator present.
105 107
106 // Attribute match types: 108 // Attribute match types:
107 static const int INCLUDES = 530; // '~=' 109 static const int INCLUDES = 530; // '~='
108 static const int DASH_MATCH = 531; // '|=' 110 static const int DASH_MATCH = 531; // '|='
109 static const int PREFIX_MATCH = 532; // '^=' 111 static const int PREFIX_MATCH = 532; // '^='
110 static const int SUFFIX_MATCH = 533; // '$=' 112 static const int SUFFIX_MATCH = 533; // '$='
111 static const int SUBSTRING_MATCH = 534; // '*=' 113 static const int SUBSTRING_MATCH = 534; // '*='
112 static const int NO_MATCH = 535; // No operator. 114 static const int NO_MATCH = 535; // No operator.
113 115
114 // Unit types: 116 // Unit types:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 static const int DIRECTIVE_MOZ_KEYFRAMES = 648; 154 static const int DIRECTIVE_MOZ_KEYFRAMES = 648;
153 static const int DIRECTIVE_MS_KEYFRAMES = 649; 155 static const int DIRECTIVE_MS_KEYFRAMES = 649;
154 static const int DIRECTIVE_O_KEYFRAMES = 650; 156 static const int DIRECTIVE_O_KEYFRAMES = 650;
155 static const int DIRECTIVE_FONTFACE = 651; 157 static const int DIRECTIVE_FONTFACE = 651;
156 static const int DIRECTIVE_NAMESPACE = 652; 158 static const int DIRECTIVE_NAMESPACE = 652;
157 static const int DIRECTIVE_HOST = 653; 159 static const int DIRECTIVE_HOST = 653;
158 static const int DIRECTIVE_MIXIN = 654; 160 static const int DIRECTIVE_MIXIN = 654;
159 static const int DIRECTIVE_INCLUDE = 655; 161 static const int DIRECTIVE_INCLUDE = 655;
160 static const int DIRECTIVE_CONTENT = 656; 162 static const int DIRECTIVE_CONTENT = 656;
161 static const int DIRECTIVE_EXTEND = 657; 163 static const int DIRECTIVE_EXTEND = 657;
164 static const int DIRECTIVE_MOZ_DOCUMENT = 658;
165 static const int DIRECTIVE_SUPPORTS = 659;
166 static const int DIRECTIVE_VIEWPORT = 660;
167 static const int DIRECTIVE_MS_VIEWPORT = 661;
162 168
163 // Media query operators 169 // Media query operators
164 static const int MEDIA_OP_ONLY = 665; // Unary. 170 static const int MEDIA_OP_ONLY = 665; // Unary.
165 static const int MEDIA_OP_NOT = 666; // Unary. 171 static const int MEDIA_OP_NOT = 666; // Unary.
166 static const int MEDIA_OP_AND = 667; // Binary. 172 static const int MEDIA_OP_AND = 667; // Binary.
167 173
168 // Directives inside of a @page (margin sym). 174 // Directives inside of a @page (margin sym).
169 static const int MARGIN_DIRECTIVE_TOPLEFTCORNER = 670; 175 static const int MARGIN_DIRECTIVE_TOPLEFTCORNER = 670;
170 static const int MARGIN_DIRECTIVE_TOPLEFT = 671; 176 static const int MARGIN_DIRECTIVE_TOPLEFT = 671;
171 static const int MARGIN_DIRECTIVE_TOPCENTER = 672; 177 static const int MARGIN_DIRECTIVE_TOPCENTER = 672;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 }, 215 },
210 const {'type': TokenKind.DIRECTIVE_MS_KEYFRAMES, 'value': '-ms-keyframes'}, 216 const {'type': TokenKind.DIRECTIVE_MS_KEYFRAMES, 'value': '-ms-keyframes'},
211 const {'type': TokenKind.DIRECTIVE_O_KEYFRAMES, 'value': '-o-keyframes'}, 217 const {'type': TokenKind.DIRECTIVE_O_KEYFRAMES, 'value': '-o-keyframes'},
212 const {'type': TokenKind.DIRECTIVE_FONTFACE, 'value': 'font-face'}, 218 const {'type': TokenKind.DIRECTIVE_FONTFACE, 'value': 'font-face'},
213 const {'type': TokenKind.DIRECTIVE_NAMESPACE, 'value': 'namespace'}, 219 const {'type': TokenKind.DIRECTIVE_NAMESPACE, 'value': 'namespace'},
214 const {'type': TokenKind.DIRECTIVE_HOST, 'value': 'host'}, 220 const {'type': TokenKind.DIRECTIVE_HOST, 'value': 'host'},
215 const {'type': TokenKind.DIRECTIVE_MIXIN, 'value': 'mixin'}, 221 const {'type': TokenKind.DIRECTIVE_MIXIN, 'value': 'mixin'},
216 const {'type': TokenKind.DIRECTIVE_INCLUDE, 'value': 'include'}, 222 const {'type': TokenKind.DIRECTIVE_INCLUDE, 'value': 'include'},
217 const {'type': TokenKind.DIRECTIVE_CONTENT, 'value': 'content'}, 223 const {'type': TokenKind.DIRECTIVE_CONTENT, 'value': 'content'},
218 const {'type': TokenKind.DIRECTIVE_EXTEND, 'value': 'extend'}, 224 const {'type': TokenKind.DIRECTIVE_EXTEND, 'value': 'extend'},
225 const {'type': TokenKind.DIRECTIVE_MOZ_DOCUMENT, 'value': '-moz-document'},
226 const {'type': TokenKind.DIRECTIVE_SUPPORTS, 'value': 'supports'},
227 const {'type': TokenKind.DIRECTIVE_VIEWPORT, 'value': 'viewport'},
228 const {'type': TokenKind.DIRECTIVE_MS_VIEWPORT, 'value': '-ms-viewport'},
219 ]; 229 ];
220 230
221 static const List<Map<String, dynamic>> MEDIA_OPERATORS = const [ 231 static const List<Map<String, dynamic>> MEDIA_OPERATORS = const [
222 const {'type': TokenKind.MEDIA_OP_ONLY, 'value': 'only'}, 232 const {'type': TokenKind.MEDIA_OP_ONLY, 'value': 'only'},
223 const {'type': TokenKind.MEDIA_OP_NOT, 'value': 'not'}, 233 const {'type': TokenKind.MEDIA_OP_NOT, 'value': 'not'},
224 const {'type': TokenKind.MEDIA_OP_AND, 'value': 'and'}, 234 const {'type': TokenKind.MEDIA_OP_AND, 'value': 'and'},
225 ]; 235 ];
226 236
227 static const List<Map<String, dynamic>> MARGIN_DIRECTIVES = const [ 237 static const List<Map<String, dynamic>> MARGIN_DIRECTIVES = const [
228 const { 238 const {
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 static const int EQUALS = 0x3d; // "=".codeUnitAt(0) 783 static const int EQUALS = 0x3d; // "=".codeUnitAt(0)
774 static const int OR = 0x7c; // "|".codeUnitAt(0) 784 static const int OR = 0x7c; // "|".codeUnitAt(0)
775 static const int CARET = 0x5e; // "^".codeUnitAt(0) 785 static const int CARET = 0x5e; // "^".codeUnitAt(0)
776 static const int DOLLAR = 0x24; // "\$".codeUnitAt(0) 786 static const int DOLLAR = 0x24; // "\$".codeUnitAt(0)
777 static const int LESS = 0x3c; // "<".codeUnitAt(0) 787 static const int LESS = 0x3c; // "<".codeUnitAt(0)
778 static const int BANG = 0x21; // "!".codeUnitAt(0) 788 static const int BANG = 0x21; // "!".codeUnitAt(0)
779 static const int MINUS = 0x2d; // "-".codeUnitAt(0) 789 static const int MINUS = 0x2d; // "-".codeUnitAt(0)
780 static const int BACKSLASH = 0x5c; // "\".codeUnitAt(0) 790 static const int BACKSLASH = 0x5c; // "\".codeUnitAt(0)
781 static const int AMPERSAND = 0x26; // "&".codeUnitAt(0) 791 static const int AMPERSAND = 0x26; // "&".codeUnitAt(0)
782 } 792 }
OLDNEW
« no previous file with comments | « packages/csslib/lib/src/tokenizer_base.dart ('k') | packages/csslib/lib/src/tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698