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

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

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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/property.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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Simple selector type. 186 // Simple selector type.
187 static const int CLASS_NAME = 700; // .class 187 static const int CLASS_NAME = 700; // .class
188 static const int ELEMENT_NAME = 701; // tagName 188 static const int ELEMENT_NAME = 701; // tagName
189 static const int HASH_NAME = 702; // #elementId 189 static const int HASH_NAME = 702; // #elementId
190 static const int ATTRIBUTE_NAME = 703; // [attrib] 190 static const int ATTRIBUTE_NAME = 703; // [attrib]
191 static const int PSEUDO_ELEMENT_NAME = 704; // ::pseudoElement 191 static const int PSEUDO_ELEMENT_NAME = 704; // ::pseudoElement
192 static const int PSEUDO_CLASS_NAME = 705; // :pseudoClass 192 static const int PSEUDO_CLASS_NAME = 705; // :pseudoClass
193 static const int NEGATION = 706; // NOT 193 static const int NEGATION = 706; // NOT
194 194
195 static const List<Map<int, String>> _DIRECTIVES = const [ 195 static const List<Map<String, dynamic>> _DIRECTIVES = const [
196 const {'type': TokenKind.DIRECTIVE_IMPORT, 'value': 'import'}, 196 const {'type': TokenKind.DIRECTIVE_IMPORT, 'value': 'import'},
197 const {'type': TokenKind.DIRECTIVE_MEDIA, 'value': 'media'}, 197 const {'type': TokenKind.DIRECTIVE_MEDIA, 'value': 'media'},
198 const {'type': TokenKind.DIRECTIVE_PAGE, 'value': 'page'}, 198 const {'type': TokenKind.DIRECTIVE_PAGE, 'value': 'page'},
199 const {'type': TokenKind.DIRECTIVE_CHARSET, 'value': 'charset'}, 199 const {'type': TokenKind.DIRECTIVE_CHARSET, 'value': 'charset'},
200 const {'type': TokenKind.DIRECTIVE_STYLET, 'value': 'stylet'}, 200 const {'type': TokenKind.DIRECTIVE_STYLET, 'value': 'stylet'},
201 const {'type': TokenKind.DIRECTIVE_KEYFRAMES, 'value': 'keyframes'}, 201 const {'type': TokenKind.DIRECTIVE_KEYFRAMES, 'value': 'keyframes'},
202 const { 202 const {
203 'type': TokenKind.DIRECTIVE_WEB_KIT_KEYFRAMES, 203 'type': TokenKind.DIRECTIVE_WEB_KIT_KEYFRAMES,
204 'value': '-webkit-keyframes' 204 'value': '-webkit-keyframes'
205 }, 205 },
206 const { 206 const {
207 'type': TokenKind.DIRECTIVE_MOZ_KEYFRAMES, 207 'type': TokenKind.DIRECTIVE_MOZ_KEYFRAMES,
208 'value': '-moz-keyframes' 208 'value': '-moz-keyframes'
209 }, 209 },
210 const {'type': TokenKind.DIRECTIVE_MS_KEYFRAMES, 'value': '-ms-keyframes'}, 210 const {'type': TokenKind.DIRECTIVE_MS_KEYFRAMES, 'value': '-ms-keyframes'},
211 const {'type': TokenKind.DIRECTIVE_O_KEYFRAMES, 'value': '-o-keyframes'}, 211 const {'type': TokenKind.DIRECTIVE_O_KEYFRAMES, 'value': '-o-keyframes'},
212 const {'type': TokenKind.DIRECTIVE_FONTFACE, 'value': 'font-face'}, 212 const {'type': TokenKind.DIRECTIVE_FONTFACE, 'value': 'font-face'},
213 const {'type': TokenKind.DIRECTIVE_NAMESPACE, 'value': 'namespace'}, 213 const {'type': TokenKind.DIRECTIVE_NAMESPACE, 'value': 'namespace'},
214 const {'type': TokenKind.DIRECTIVE_HOST, 'value': 'host'}, 214 const {'type': TokenKind.DIRECTIVE_HOST, 'value': 'host'},
215 const {'type': TokenKind.DIRECTIVE_MIXIN, 'value': 'mixin'}, 215 const {'type': TokenKind.DIRECTIVE_MIXIN, 'value': 'mixin'},
216 const {'type': TokenKind.DIRECTIVE_INCLUDE, 'value': 'include'}, 216 const {'type': TokenKind.DIRECTIVE_INCLUDE, 'value': 'include'},
217 const {'type': TokenKind.DIRECTIVE_CONTENT, 'value': 'content'}, 217 const {'type': TokenKind.DIRECTIVE_CONTENT, 'value': 'content'},
218 const {'type': TokenKind.DIRECTIVE_EXTEND, 'value': 'extend'}, 218 const {'type': TokenKind.DIRECTIVE_EXTEND, 'value': 'extend'},
219 ]; 219 ];
220 220
221 static const List<Map<int, String>> MEDIA_OPERATORS = const [ 221 static const List<Map<String, dynamic>> MEDIA_OPERATORS = const [
222 const {'type': TokenKind.MEDIA_OP_ONLY, 'value': 'only'}, 222 const {'type': TokenKind.MEDIA_OP_ONLY, 'value': 'only'},
223 const {'type': TokenKind.MEDIA_OP_NOT, 'value': 'not'}, 223 const {'type': TokenKind.MEDIA_OP_NOT, 'value': 'not'},
224 const {'type': TokenKind.MEDIA_OP_AND, 'value': 'and'}, 224 const {'type': TokenKind.MEDIA_OP_AND, 'value': 'and'},
225 ]; 225 ];
226 226
227 static const List<Map<int, String>> MARGIN_DIRECTIVES = const [ 227 static const List<Map<String, dynamic>> MARGIN_DIRECTIVES = const [
228 const { 228 const {
229 'type': TokenKind.MARGIN_DIRECTIVE_TOPLEFTCORNER, 229 'type': TokenKind.MARGIN_DIRECTIVE_TOPLEFTCORNER,
230 'value': 'top-left-corner' 230 'value': 'top-left-corner'
231 }, 231 },
232 const {'type': TokenKind.MARGIN_DIRECTIVE_TOPLEFT, 'value': 'top-left'}, 232 const {'type': TokenKind.MARGIN_DIRECTIVE_TOPLEFT, 'value': 'top-left'},
233 const {'type': TokenKind.MARGIN_DIRECTIVE_TOPCENTER, 'value': 'top-center'}, 233 const {'type': TokenKind.MARGIN_DIRECTIVE_TOPCENTER, 'value': 'top-center'},
234 const {'type': TokenKind.MARGIN_DIRECTIVE_TOPRIGHT, 'value': 'top-right'}, 234 const {'type': TokenKind.MARGIN_DIRECTIVE_TOPRIGHT, 'value': 'top-right'},
235 const { 235 const {
236 'type': TokenKind.MARGIN_DIRECTIVE_TOPRIGHTCORNER, 236 'type': TokenKind.MARGIN_DIRECTIVE_TOPRIGHTCORNER,
237 'value': 'top-right-corner' 237 'value': 'top-right-corner'
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 static const int EQUALS = 0x3d; // "=".codeUnitAt(0) 773 static const int EQUALS = 0x3d; // "=".codeUnitAt(0)
774 static const int OR = 0x7c; // "|".codeUnitAt(0) 774 static const int OR = 0x7c; // "|".codeUnitAt(0)
775 static const int CARET = 0x5e; // "^".codeUnitAt(0) 775 static const int CARET = 0x5e; // "^".codeUnitAt(0)
776 static const int DOLLAR = 0x24; // "\$".codeUnitAt(0) 776 static const int DOLLAR = 0x24; // "\$".codeUnitAt(0)
777 static const int LESS = 0x3c; // "<".codeUnitAt(0) 777 static const int LESS = 0x3c; // "<".codeUnitAt(0)
778 static const int BANG = 0x21; // "!".codeUnitAt(0) 778 static const int BANG = 0x21; // "!".codeUnitAt(0)
779 static const int MINUS = 0x2d; // "-".codeUnitAt(0) 779 static const int MINUS = 0x2d; // "-".codeUnitAt(0)
780 static const int BACKSLASH = 0x5c; // "\".codeUnitAt(0) 780 static const int BACKSLASH = 0x5c; // "\".codeUnitAt(0)
781 static const int AMPERSAND = 0x26; // "&".codeUnitAt(0) 781 static const int AMPERSAND = 0x26; // "&".codeUnitAt(0)
782 } 782 }
OLDNEW
« no previous file with comments | « packages/csslib/lib/src/property.dart ('k') | packages/csslib/lib/src/tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698