1#![allow(non_upper_case_globals, non_snake_case, dead_code)]
3
4pub mod EnumAstNodeStatus {
5 pub const Validated: u32 = 1;
6 pub const Invalid: u32 = 2;
7 pub const Unvalidated: u32 = 4;
8 pub const ValidationFailed: u32 = 8;
9 pub const Unknown: u32 = 16;
10 pub const Unparsed: u32 = 32;
11 pub const Disallowed: u32 = 64;
12 pub const Malformed: u32 = 128;
13 pub const ImportantDeclaration: u32 = 256;
14 pub const PowerlessColorComponent: u32 = 512;
15 pub const StateMask: u32 = 65535;
16 pub const HasChildren: u32 = 65536;
17 pub const HasValues: u32 = 131072;
18 pub const HasLocation: u32 = 262144;
19 pub const Marked: u32 = 524288;
20 pub const Matched: u32 = 1048576;
21
22 pub fn name(value: u32) -> Option<&'static str> {
24 match value {
25 1 => Some("Validated"),
26 2 => Some("Invalid"),
27 4 => Some("Unvalidated"),
28 8 => Some("ValidationFailed"),
29 16 => Some("Unknown"),
30 32 => Some("Unparsed"),
31 64 => Some("Disallowed"),
32 128 => Some("Malformed"),
33 256 => Some("ImportantDeclaration"),
34 512 => Some("PowerlessColorComponent"),
35 65535 => Some("StateMask"),
36 65536 => Some("HasChildren"),
37 131072 => Some("HasValues"),
38 262144 => Some("HasLocation"),
39 524288 => Some("Marked"),
40 1048576 => Some("Matched"),
41 _ => Option::None,
42 }
43 }
44
45 pub fn value(name: &str) -> Option<u32> {
47 match name {
48 "Validated" => Some(1),
49 "Invalid" => Some(2),
50 "Unvalidated" => Some(4),
51 "ValidationFailed" => Some(8),
52 "Unknown" => Some(16),
53 "Unparsed" => Some(32),
54 "Disallowed" => Some(64),
55 "Malformed" => Some(128),
56 "ImportantDeclaration" => Some(256),
57 "PowerlessColorComponent" => Some(512),
58 "StateMask" => Some(65535),
59 "HasChildren" => Some(65536),
60 "HasValues" => Some(131072),
61 "HasLocation" => Some(262144),
62 "Marked" => Some(524288),
63 "Matched" => Some(1048576),
64 _ => Option::None,
65 }
66 }
67}
68
69pub mod EnumToken {
70 pub const CommentTokenType: u8 = 1;
71 pub const CDOCOMMTokenType: u8 = 2;
72 pub const StyleSheetNodeType: u8 = 3;
73 pub const AtRuleNodeType: u8 = 4;
74 pub const RuleNodeType: u8 = 5;
75 pub const DeclarationNodeType: u8 = 6;
76 pub const LiteralTokenType: u8 = 7;
77 pub const IdenTokenType: u8 = 8;
78 pub const DashedIdenTokenType: u8 = 9;
79 pub const CommaTokenType: u8 = 10;
80 pub const ColonTokenType: u8 = 11;
81 pub const SemiColonTokenType: u8 = 12;
82 pub const NumberTokenType: u8 = 13;
83 pub const AtRuleTokenType: u8 = 14;
84 pub const PercentageTokenType: u8 = 15;
85 pub const FunctionTokenType: u8 = 16;
86 pub const TimelineFunctionTokenType: u8 = 17;
87 pub const TimingFunctionTokenType: u8 = 18;
88 pub const UrlFunctionTokenType: u8 = 19;
89 pub const ImageFunctionTokenType: u8 = 20;
90 pub const StringTokenType: u8 = 21;
91 pub const UnclosedStringTokenType: u8 = 22;
92 pub const DimensionTokenType: u8 = 23;
93 pub const LengthTokenType: u8 = 24;
94 pub const AngleTokenType: u8 = 25;
95 pub const TimeTokenType: u8 = 26;
96 pub const FrequencyTokenType: u8 = 27;
97 pub const ResolutionTokenType: u8 = 28;
98 pub const HashTokenType: u8 = 29;
99 pub const BlockStartTokenType: u8 = 30;
100 pub const BlockEndTokenType: u8 = 31;
101 pub const AttrStartTokenType: u8 = 32;
102 pub const AttrEndTokenType: u8 = 33;
103 pub const StartParensTokenType: u8 = 34;
104 pub const EndParensTokenType: u8 = 35;
105 pub const ParensTokenType: u8 = 36;
106 pub const WhitespaceTokenType: u8 = 37;
107 pub const IncludeMatchTokenType: u8 = 38;
108 pub const DashMatchTokenType: u8 = 39;
109 pub const EqualMatchTokenType: u8 = 40;
110 pub const LtTokenType: u8 = 41;
111 pub const LteTokenType: u8 = 42;
112 pub const GtTokenType: u8 = 43;
113 pub const GteTokenType: u8 = 44;
114 pub const PseudoClassTokenType: u8 = 45;
115 pub const PseudoClassFuncTokenType: u8 = 46;
116 pub const DelimTokenType: u8 = 47;
117 pub const UrlTokenTokenType: u8 = 48;
118 pub const EOFTokenType: u8 = 49;
119 pub const ImportantTokenType: u8 = 50;
120 pub const ColorTokenType: u8 = 51;
121 pub const AttrTokenType: u8 = 52;
122 pub const BadCommentTokenType: u8 = 53;
123 pub const BadCdoTokenType: u8 = 54;
124 pub const BadUrlTokenType: u8 = 55;
125 pub const BadStringTokenType: u8 = 56;
126 pub const BinaryExpressionTokenType: u8 = 57;
127 pub const UnaryExpressionTokenType: u8 = 58;
128 pub const FlexTokenType: u8 = 59;
129 pub const ListToken: u8 = 60;
130 pub const Add: u8 = 61;
131 pub const Mul: u8 = 62;
132 pub const Div: u8 = 63;
133 pub const Sub: u8 = 64;
134 pub const ColumnCombinatorTokenType: u8 = 65;
135 pub const ContainMatchTokenType: u8 = 66;
136 pub const StartMatchTokenType: u8 = 67;
137 pub const EndMatchTokenType: u8 = 68;
138 pub const MatchExpressionTokenType: u8 = 69;
139 pub const NameSpaceAttributeTokenType: u8 = 70;
140 pub const FractionTokenType: u8 = 71;
141 pub const IdenListTokenType: u8 = 72;
142 pub const GridTemplateFuncTokenType: u8 = 73;
143 pub const KeyframesRuleNodeType: u8 = 74;
144 pub const ClassSelectorTokenType: u8 = 75;
145 pub const UniversalSelectorTokenType: u8 = 76;
146 pub const ChildCombinatorTokenType: u8 = 77;
147 pub const DescendantCombinatorTokenType: u8 = 78;
148 pub const NextSiblingCombinatorTokenType: u8 = 79;
149 pub const SubsequentSiblingCombinatorTokenType: u8 = 80;
150 pub const NestingSelectorTokenType: u8 = 81;
151 pub const MediaQueryConditionTokenType: u8 = 82;
152 pub const MediaFeatureTokenType: u8 = 83;
153 pub const OnlyTokenType: u8 = 84;
154 pub const NotTokenType: u8 = 85;
155 pub const AndTokenType: u8 = 86;
156 pub const OrTokenType: u8 = 87;
157 pub const PseudoPageTokenType: u8 = 88;
158 pub const PseudoElementTokenType: u8 = 89;
159 pub const KeyframesAtRuleNodeType: u8 = 90;
160 pub const ComposesSelectorNodeType: u8 = 91;
161 pub const CssVariableTokenType: u8 = 92;
162 pub const CssVariableImportTokenType: u8 = 93;
163 pub const CssVariableDeclarationMapTokenType: u8 = 94;
164 pub const MediaRangeQueryTokenType: u8 = 95;
165 pub const SupportsQueryConditionTokenType: u8 = 96;
166 pub const SupportsQueryUnaryConditionTokenType: u8 = 97;
167 pub const WhenElseQueryConditionTokenType: u8 = 98;
168 pub const WhenElseUnaryConditionTokenType: u8 = 99;
169 pub const ContainerStyleRangeTokenType: u8 = 100;
170 pub const Star: u8 = 101;
171 pub const Plus: u8 = 102;
172 pub const Tilda: u8 = 103;
173 pub const PipeTokenType: u8 = 104;
174 pub const DoubleColonTokenType: u8 = 105;
175 pub const MathFunctionTokenType: u8 = 106;
176 pub const TransformFunctionTokenType: u8 = 107;
177 pub const WhenElseFunctionTokenType: u8 = 108;
178 pub const GeneralEnclosedFunctionTokenType: u8 = 109;
179 pub const SupportsFunctionTokenType: u8 = 110;
180 pub const ContainerFunctionTokenType: u8 = 111;
181 pub const RawNodeTokenType: u8 = 112;
182 pub const MediaQueryUnaryFeatureTokenType: u8 = 113;
183 pub const GridTemplateFuncTokenDefType: u8 = 114;
184 pub const ImageFunctionTokenDefType: u8 = 115;
185 pub const TimelineFunctionTokenDefType: u8 = 116;
186 pub const FunctionTokenDefType: u8 = 117;
187 pub const TimingFunctionTokenDefType: u8 = 118;
188 pub const ColorFunctionTokenDefType: u8 = 119;
189 pub const MathFunctionTokenDefType: u8 = 120;
190 pub const ContainerFunctionTokenDefType: u8 = 121;
191 pub const UrlFunctionTokenDefType: u8 = 122;
192 pub const PseudoClassFunctionTokenDefType: u8 = 123;
193 pub const TransformFunctionTokenDefType: u8 = 124;
194 pub const WhenElseFunctionTokenDefType: u8 = 125;
195 pub const GeneralEnclosedFunctionTokenDefType: u8 = 126;
196 pub const SupportsFunctionTokenDefType: u8 = 127;
197 pub const CustomFunctionTokenDefType: u8 = 128;
198 pub const CustomFunctionTokenType: u8 = 129;
199 pub const WildCardFunctionTokenDefType: u8 = 130;
200 pub const WildCardFunctionTokenType: u8 = 131;
201 pub const IfConditionTokenType: u8 = 132;
202 pub const IfElseConditionTokenType: u8 = 133;
203 pub const WrappedValuesTokenType: u8 = 134;
204 pub const ListTokenType: u8 = 135;
205 pub const NaNTokenType: u8 = 136;
206 pub const InfinityTokenType: u8 = 137;
207 pub const NegativeInfinityTokenType: u8 = 138;
208 pub const CssTypeTokenType: u8 = 139;
209 pub const UserDefinedDimensionTokenType: u8 = 140;
210 pub const UniCodeRange: u8 = 141;
211 pub const Time: u8 = 26;
212 pub const Iden: u8 = 8;
213 pub const EOF: u8 = 49;
214 pub const Hash: u8 = 29;
215 pub const Flex: u8 = 59;
216 pub const Angle: u8 = 25;
217 pub const Color: u8 = 51;
218 pub const Comma: u8 = 10;
219 pub const String: u8 = 21;
220 pub const Length: u8 = 24;
221 pub const Number: u8 = 13;
222 pub const Perc: u8 = 15;
223 pub const Literal: u8 = 7;
224 pub const Comment: u8 = 1;
225 pub const UrlFunc: u8 = 19;
226 pub const Dimension: u8 = 23;
227 pub const Frequency: u8 = 27;
228 pub const Resolution: u8 = 28;
229 pub const Whitespace: u8 = 37;
230 pub const IdenList: u8 = 72;
231 pub const DashedIden: u8 = 9;
232 pub const GridTemplateFunc: u8 = 73;
233 pub const ImageFunc: u8 = 20;
234 pub const CommentNodeType: u8 = 1;
235 pub const CDOCOMMNodeType: u8 = 2;
236 pub const TimingFunction: u8 = 18;
237 pub const TimelineFunction: u8 = 17;
238
239 pub fn name(value: u8) -> Option<&'static str> {
241 match value {
242 3 => Some("StyleSheetNodeType"),
243 4 => Some("AtRuleNodeType"),
244 5 => Some("RuleNodeType"),
245 6 => Some("DeclarationNodeType"),
246 11 => Some("ColonTokenType"),
247 12 => Some("SemiColonTokenType"),
248 14 => Some("AtRuleTokenType"),
249 16 => Some("FunctionTokenType"),
250 22 => Some("UnclosedStringTokenType"),
251 30 => Some("BlockStartTokenType"),
252 31 => Some("BlockEndTokenType"),
253 32 => Some("AttrStartTokenType"),
254 33 => Some("AttrEndTokenType"),
255 34 => Some("StartParensTokenType"),
256 35 => Some("EndParensTokenType"),
257 36 => Some("ParensTokenType"),
258 38 => Some("IncludeMatchTokenType"),
259 39 => Some("DashMatchTokenType"),
260 40 => Some("EqualMatchTokenType"),
261 41 => Some("LtTokenType"),
262 42 => Some("LteTokenType"),
263 43 => Some("GtTokenType"),
264 44 => Some("GteTokenType"),
265 45 => Some("PseudoClassTokenType"),
266 46 => Some("PseudoClassFuncTokenType"),
267 47 => Some("DelimTokenType"),
268 48 => Some("UrlTokenTokenType"),
269 50 => Some("ImportantTokenType"),
270 52 => Some("AttrTokenType"),
271 53 => Some("BadCommentTokenType"),
272 54 => Some("BadCdoTokenType"),
273 55 => Some("BadUrlTokenType"),
274 56 => Some("BadStringTokenType"),
275 57 => Some("BinaryExpressionTokenType"),
276 58 => Some("UnaryExpressionTokenType"),
277 60 => Some("ListToken"),
278 61 => Some("Add"),
279 62 => Some("Mul"),
280 63 => Some("Div"),
281 64 => Some("Sub"),
282 65 => Some("ColumnCombinatorTokenType"),
283 66 => Some("ContainMatchTokenType"),
284 67 => Some("StartMatchTokenType"),
285 68 => Some("EndMatchTokenType"),
286 69 => Some("MatchExpressionTokenType"),
287 70 => Some("NameSpaceAttributeTokenType"),
288 71 => Some("FractionTokenType"),
289 74 => Some("KeyframesRuleNodeType"),
290 75 => Some("ClassSelectorTokenType"),
291 76 => Some("UniversalSelectorTokenType"),
292 77 => Some("ChildCombinatorTokenType"),
293 78 => Some("DescendantCombinatorTokenType"),
294 79 => Some("NextSiblingCombinatorTokenType"),
295 80 => Some("SubsequentSiblingCombinatorTokenType"),
296 81 => Some("NestingSelectorTokenType"),
297 82 => Some("MediaQueryConditionTokenType"),
298 83 => Some("MediaFeatureTokenType"),
299 84 => Some("OnlyTokenType"),
300 85 => Some("NotTokenType"),
301 86 => Some("AndTokenType"),
302 87 => Some("OrTokenType"),
303 88 => Some("PseudoPageTokenType"),
304 89 => Some("PseudoElementTokenType"),
305 90 => Some("KeyframesAtRuleNodeType"),
306 91 => Some("ComposesSelectorNodeType"),
307 92 => Some("CssVariableTokenType"),
308 93 => Some("CssVariableImportTokenType"),
309 94 => Some("CssVariableDeclarationMapTokenType"),
310 95 => Some("MediaRangeQueryTokenType"),
311 96 => Some("SupportsQueryConditionTokenType"),
312 97 => Some("SupportsQueryUnaryConditionTokenType"),
313 98 => Some("WhenElseQueryConditionTokenType"),
314 99 => Some("WhenElseUnaryConditionTokenType"),
315 100 => Some("ContainerStyleRangeTokenType"),
316 101 => Some("Star"),
317 102 => Some("Plus"),
318 103 => Some("Tilda"),
319 104 => Some("PipeTokenType"),
320 105 => Some("DoubleColonTokenType"),
321 106 => Some("MathFunctionTokenType"),
322 107 => Some("TransformFunctionTokenType"),
323 108 => Some("WhenElseFunctionTokenType"),
324 109 => Some("GeneralEnclosedFunctionTokenType"),
325 110 => Some("SupportsFunctionTokenType"),
326 111 => Some("ContainerFunctionTokenType"),
327 112 => Some("RawNodeTokenType"),
328 113 => Some("MediaQueryUnaryFeatureTokenType"),
329 114 => Some("GridTemplateFuncTokenDefType"),
330 115 => Some("ImageFunctionTokenDefType"),
331 116 => Some("TimelineFunctionTokenDefType"),
332 117 => Some("FunctionTokenDefType"),
333 118 => Some("TimingFunctionTokenDefType"),
334 119 => Some("ColorFunctionTokenDefType"),
335 120 => Some("MathFunctionTokenDefType"),
336 121 => Some("ContainerFunctionTokenDefType"),
337 122 => Some("UrlFunctionTokenDefType"),
338 123 => Some("PseudoClassFunctionTokenDefType"),
339 124 => Some("TransformFunctionTokenDefType"),
340 125 => Some("WhenElseFunctionTokenDefType"),
341 126 => Some("GeneralEnclosedFunctionTokenDefType"),
342 127 => Some("SupportsFunctionTokenDefType"),
343 128 => Some("CustomFunctionTokenDefType"),
344 129 => Some("CustomFunctionTokenType"),
345 130 => Some("WildCardFunctionTokenDefType"),
346 131 => Some("WildCardFunctionTokenType"),
347 132 => Some("IfConditionTokenType"),
348 133 => Some("IfElseConditionTokenType"),
349 134 => Some("WrappedValuesTokenType"),
350 135 => Some("ListTokenType"),
351 136 => Some("NaNTokenType"),
352 137 => Some("InfinityTokenType"),
353 138 => Some("NegativeInfinityTokenType"),
354 139 => Some("CssTypeTokenType"),
355 140 => Some("UserDefinedDimensionTokenType"),
356 141 => Some("UniCodeRange"),
357 26 => Some("Time"),
358 8 => Some("Iden"),
359 49 => Some("EOF"),
360 29 => Some("Hash"),
361 59 => Some("Flex"),
362 25 => Some("Angle"),
363 51 => Some("Color"),
364 10 => Some("Comma"),
365 21 => Some("String"),
366 24 => Some("Length"),
367 13 => Some("Number"),
368 15 => Some("Perc"),
369 7 => Some("Literal"),
370 19 => Some("UrlFunc"),
371 23 => Some("Dimension"),
372 27 => Some("Frequency"),
373 28 => Some("Resolution"),
374 37 => Some("Whitespace"),
375 72 => Some("IdenList"),
376 9 => Some("DashedIden"),
377 73 => Some("GridTemplateFunc"),
378 20 => Some("ImageFunc"),
379 1 => Some("CommentNodeType"),
380 2 => Some("CDOCOMMNodeType"),
381 18 => Some("TimingFunction"),
382 17 => Some("TimelineFunction"),
383 _ => Option::None,
384 }
385 }
386
387 pub fn value(name: &str) -> Option<u8> {
389 match name {
390 "CommentTokenType" => Some(1),
391 "CDOCOMMTokenType" => Some(2),
392 "StyleSheetNodeType" => Some(3),
393 "AtRuleNodeType" => Some(4),
394 "RuleNodeType" => Some(5),
395 "DeclarationNodeType" => Some(6),
396 "LiteralTokenType" => Some(7),
397 "IdenTokenType" => Some(8),
398 "DashedIdenTokenType" => Some(9),
399 "CommaTokenType" => Some(10),
400 "ColonTokenType" => Some(11),
401 "SemiColonTokenType" => Some(12),
402 "NumberTokenType" => Some(13),
403 "AtRuleTokenType" => Some(14),
404 "PercentageTokenType" => Some(15),
405 "FunctionTokenType" => Some(16),
406 "TimelineFunctionTokenType" => Some(17),
407 "TimingFunctionTokenType" => Some(18),
408 "UrlFunctionTokenType" => Some(19),
409 "ImageFunctionTokenType" => Some(20),
410 "StringTokenType" => Some(21),
411 "UnclosedStringTokenType" => Some(22),
412 "DimensionTokenType" => Some(23),
413 "LengthTokenType" => Some(24),
414 "AngleTokenType" => Some(25),
415 "TimeTokenType" => Some(26),
416 "FrequencyTokenType" => Some(27),
417 "ResolutionTokenType" => Some(28),
418 "HashTokenType" => Some(29),
419 "BlockStartTokenType" => Some(30),
420 "BlockEndTokenType" => Some(31),
421 "AttrStartTokenType" => Some(32),
422 "AttrEndTokenType" => Some(33),
423 "StartParensTokenType" => Some(34),
424 "EndParensTokenType" => Some(35),
425 "ParensTokenType" => Some(36),
426 "WhitespaceTokenType" => Some(37),
427 "IncludeMatchTokenType" => Some(38),
428 "DashMatchTokenType" => Some(39),
429 "EqualMatchTokenType" => Some(40),
430 "LtTokenType" => Some(41),
431 "LteTokenType" => Some(42),
432 "GtTokenType" => Some(43),
433 "GteTokenType" => Some(44),
434 "PseudoClassTokenType" => Some(45),
435 "PseudoClassFuncTokenType" => Some(46),
436 "DelimTokenType" => Some(47),
437 "UrlTokenTokenType" => Some(48),
438 "EOFTokenType" => Some(49),
439 "ImportantTokenType" => Some(50),
440 "ColorTokenType" => Some(51),
441 "AttrTokenType" => Some(52),
442 "BadCommentTokenType" => Some(53),
443 "BadCdoTokenType" => Some(54),
444 "BadUrlTokenType" => Some(55),
445 "BadStringTokenType" => Some(56),
446 "BinaryExpressionTokenType" => Some(57),
447 "UnaryExpressionTokenType" => Some(58),
448 "FlexTokenType" => Some(59),
449 "ListToken" => Some(60),
450 "Add" => Some(61),
451 "Mul" => Some(62),
452 "Div" => Some(63),
453 "Sub" => Some(64),
454 "ColumnCombinatorTokenType" => Some(65),
455 "ContainMatchTokenType" => Some(66),
456 "StartMatchTokenType" => Some(67),
457 "EndMatchTokenType" => Some(68),
458 "MatchExpressionTokenType" => Some(69),
459 "NameSpaceAttributeTokenType" => Some(70),
460 "FractionTokenType" => Some(71),
461 "IdenListTokenType" => Some(72),
462 "GridTemplateFuncTokenType" => Some(73),
463 "KeyframesRuleNodeType" => Some(74),
464 "ClassSelectorTokenType" => Some(75),
465 "UniversalSelectorTokenType" => Some(76),
466 "ChildCombinatorTokenType" => Some(77),
467 "DescendantCombinatorTokenType" => Some(78),
468 "NextSiblingCombinatorTokenType" => Some(79),
469 "SubsequentSiblingCombinatorTokenType" => Some(80),
470 "NestingSelectorTokenType" => Some(81),
471 "MediaQueryConditionTokenType" => Some(82),
472 "MediaFeatureTokenType" => Some(83),
473 "OnlyTokenType" => Some(84),
474 "NotTokenType" => Some(85),
475 "AndTokenType" => Some(86),
476 "OrTokenType" => Some(87),
477 "PseudoPageTokenType" => Some(88),
478 "PseudoElementTokenType" => Some(89),
479 "KeyframesAtRuleNodeType" => Some(90),
480 "ComposesSelectorNodeType" => Some(91),
481 "CssVariableTokenType" => Some(92),
482 "CssVariableImportTokenType" => Some(93),
483 "CssVariableDeclarationMapTokenType" => Some(94),
484 "MediaRangeQueryTokenType" => Some(95),
485 "SupportsQueryConditionTokenType" => Some(96),
486 "SupportsQueryUnaryConditionTokenType" => Some(97),
487 "WhenElseQueryConditionTokenType" => Some(98),
488 "WhenElseUnaryConditionTokenType" => Some(99),
489 "ContainerStyleRangeTokenType" => Some(100),
490 "Star" => Some(101),
491 "Plus" => Some(102),
492 "Tilda" => Some(103),
493 "PipeTokenType" => Some(104),
494 "DoubleColonTokenType" => Some(105),
495 "MathFunctionTokenType" => Some(106),
496 "TransformFunctionTokenType" => Some(107),
497 "WhenElseFunctionTokenType" => Some(108),
498 "GeneralEnclosedFunctionTokenType" => Some(109),
499 "SupportsFunctionTokenType" => Some(110),
500 "ContainerFunctionTokenType" => Some(111),
501 "RawNodeTokenType" => Some(112),
502 "MediaQueryUnaryFeatureTokenType" => Some(113),
503 "GridTemplateFuncTokenDefType" => Some(114),
504 "ImageFunctionTokenDefType" => Some(115),
505 "TimelineFunctionTokenDefType" => Some(116),
506 "FunctionTokenDefType" => Some(117),
507 "TimingFunctionTokenDefType" => Some(118),
508 "ColorFunctionTokenDefType" => Some(119),
509 "MathFunctionTokenDefType" => Some(120),
510 "ContainerFunctionTokenDefType" => Some(121),
511 "UrlFunctionTokenDefType" => Some(122),
512 "PseudoClassFunctionTokenDefType" => Some(123),
513 "TransformFunctionTokenDefType" => Some(124),
514 "WhenElseFunctionTokenDefType" => Some(125),
515 "GeneralEnclosedFunctionTokenDefType" => Some(126),
516 "SupportsFunctionTokenDefType" => Some(127),
517 "CustomFunctionTokenDefType" => Some(128),
518 "CustomFunctionTokenType" => Some(129),
519 "WildCardFunctionTokenDefType" => Some(130),
520 "WildCardFunctionTokenType" => Some(131),
521 "IfConditionTokenType" => Some(132),
522 "IfElseConditionTokenType" => Some(133),
523 "WrappedValuesTokenType" => Some(134),
524 "ListTokenType" => Some(135),
525 "NaNTokenType" => Some(136),
526 "InfinityTokenType" => Some(137),
527 "NegativeInfinityTokenType" => Some(138),
528 "CssTypeTokenType" => Some(139),
529 "UserDefinedDimensionTokenType" => Some(140),
530 "UniCodeRange" => Some(141),
531 "Time" => Some(26),
532 "Iden" => Some(8),
533 "EOF" => Some(49),
534 "Hash" => Some(29),
535 "Flex" => Some(59),
536 "Angle" => Some(25),
537 "Color" => Some(51),
538 "Comma" => Some(10),
539 "String" => Some(21),
540 "Length" => Some(24),
541 "Number" => Some(13),
542 "Perc" => Some(15),
543 "Literal" => Some(7),
544 "Comment" => Some(1),
545 "UrlFunc" => Some(19),
546 "Dimension" => Some(23),
547 "Frequency" => Some(27),
548 "Resolution" => Some(28),
549 "Whitespace" => Some(37),
550 "IdenList" => Some(72),
551 "DashedIden" => Some(9),
552 "GridTemplateFunc" => Some(73),
553 "ImageFunc" => Some(20),
554 "CommentNodeType" => Some(1),
555 "CDOCOMMNodeType" => Some(2),
556 "TimingFunction" => Some(18),
557 "TimelineFunction" => Some(17),
558 _ => Option::None,
559 }
560 }
561}
562
563pub mod ColorType {
564 pub const NONE: u8 = 0;
565 pub const SYS: u8 = 1;
566 pub const DPSYS: u8 = 2;
567 pub const LIT: u8 = 3;
568 pub const HEX: u8 = 4;
569 pub const RGBA: u8 = 5;
570 pub const HSLA: u8 = 6;
571 pub const HWB: u8 = 7;
572 pub const CMYK: u8 = 8;
573 pub const OKLAB: u8 = 9;
574 pub const OKLCH: u8 = 10;
575 pub const LAB: u8 = 11;
576 pub const LCH: u8 = 12;
577 pub const COLOR: u8 = 13;
578 pub const SRGB: u8 = 14;
579 pub const PROPHOTO_RGB: u8 = 15;
580 pub const A98_RGB: u8 = 16;
581 pub const REC2020: u8 = 17;
582 pub const DISPLAY_P3: u8 = 18;
583 pub const SRGB_LINEAR: u8 = 19;
584 pub const XYZ_D50: u8 = 20;
585 pub const XYZ_D65: u8 = 21;
586 pub const LIGHT_DARK: u8 = 22;
587 pub const COLOR_MIX: u8 = 23;
588 pub const NON_STD: u8 = 24;
589 pub const CUSTOM_COLOR: u8 = 25;
590 pub const ALPHA: u8 = 26;
591 pub const DISPLAY_P3_LINEAR: u8 = 27;
592 pub const CONTRAST_COLOR: u8 = 28;
593 pub const COLOR_LAYERS: u8 = 29;
594 pub const RGB: u8 = 5;
595 pub const HSL: u8 = 6;
596 pub const XYZ: u8 = 21;
597 pub const DEVICE_CMYK: u8 = 8;
598
599 pub fn name(value: u8) -> Option<&'static str> {
601 match value {
602 0 => Some("NONE"),
603 1 => Some("SYS"),
604 2 => Some("DPSYS"),
605 3 => Some("LIT"),
606 4 => Some("HEX"),
607 7 => Some("HWB"),
608 9 => Some("OKLAB"),
609 10 => Some("OKLCH"),
610 11 => Some("LAB"),
611 12 => Some("LCH"),
612 13 => Some("COLOR"),
613 14 => Some("SRGB"),
614 15 => Some("PROPHOTO_RGB"),
615 16 => Some("A98_RGB"),
616 17 => Some("REC2020"),
617 18 => Some("DISPLAY_P3"),
618 19 => Some("SRGB_LINEAR"),
619 20 => Some("XYZ_D50"),
620 22 => Some("LIGHT_DARK"),
621 23 => Some("COLOR_MIX"),
622 24 => Some("NON_STD"),
623 25 => Some("CUSTOM_COLOR"),
624 26 => Some("ALPHA"),
625 27 => Some("DISPLAY_P3_LINEAR"),
626 28 => Some("CONTRAST_COLOR"),
627 29 => Some("COLOR_LAYERS"),
628 5 => Some("RGB"),
629 6 => Some("HSL"),
630 21 => Some("XYZ"),
631 8 => Some("DEVICE_CMYK"),
632 _ => Option::None,
633 }
634 }
635
636 pub fn value(name: &str) -> Option<u8> {
638 match name {
639 "NONE" => Some(0),
640 "SYS" => Some(1),
641 "DPSYS" => Some(2),
642 "LIT" => Some(3),
643 "HEX" => Some(4),
644 "RGBA" => Some(5),
645 "HSLA" => Some(6),
646 "HWB" => Some(7),
647 "CMYK" => Some(8),
648 "OKLAB" => Some(9),
649 "OKLCH" => Some(10),
650 "LAB" => Some(11),
651 "LCH" => Some(12),
652 "COLOR" => Some(13),
653 "SRGB" => Some(14),
654 "PROPHOTO_RGB" => Some(15),
655 "A98_RGB" => Some(16),
656 "REC2020" => Some(17),
657 "DISPLAY_P3" => Some(18),
658 "SRGB_LINEAR" => Some(19),
659 "XYZ_D50" => Some(20),
660 "XYZ_D65" => Some(21),
661 "LIGHT_DARK" => Some(22),
662 "COLOR_MIX" => Some(23),
663 "NON_STD" => Some(24),
664 "CUSTOM_COLOR" => Some(25),
665 "ALPHA" => Some(26),
666 "DISPLAY_P3_LINEAR" => Some(27),
667 "CONTRAST_COLOR" => Some(28),
668 "COLOR_LAYERS" => Some(29),
669 "RGB" => Some(5),
670 "HSL" => Some(6),
671 "XYZ" => Some(21),
672 "DEVICE_CMYK" => Some(8),
673 _ => Option::None,
674 }
675 }
676}
677
678pub mod ModuleCaseTransformEnum {
679 pub const IgnoreCase: u32 = 1;
680 pub const CamelCase: u32 = 2;
681 pub const CamelCaseOnly: u32 = 4;
682 pub const DashCase: u32 = 8;
683 pub const DashCaseOnly: u32 = 16;
684
685 pub fn name(value: u32) -> Option<&'static str> {
687 match value {
688 1 => Some("IgnoreCase"),
689 2 => Some("CamelCase"),
690 4 => Some("CamelCaseOnly"),
691 8 => Some("DashCase"),
692 16 => Some("DashCaseOnly"),
693 _ => Option::None,
694 }
695 }
696
697 pub fn value(name: &str) -> Option<u32> {
699 match name {
700 "IgnoreCase" => Some(1),
701 "CamelCase" => Some(2),
702 "CamelCaseOnly" => Some(4),
703 "DashCase" => Some(8),
704 "DashCaseOnly" => Some(16),
705 _ => Option::None,
706 }
707 }
708}
709
710pub mod ModuleScopeEnumOptions {
711 pub const Global: u32 = 32;
712 pub const Local: u32 = 64;
713 pub const Pure: u32 = 128;
714 pub const ICSS: u32 = 256;
715 pub const Shortest: u32 = 512;
716
717 pub fn name(value: u32) -> Option<&'static str> {
719 match value {
720 32 => Some("Global"),
721 64 => Some("Local"),
722 128 => Some("Pure"),
723 256 => Some("ICSS"),
724 512 => Some("Shortest"),
725 _ => Option::None,
726 }
727 }
728
729 pub fn value(name: &str) -> Option<u32> {
731 match name {
732 "Global" => Some(32),
733 "Local" => Some(64),
734 "Pure" => Some(128),
735 "ICSS" => Some(256),
736 "Shortest" => Some(512),
737 _ => Option::None,
738 }
739 }
740}
741
742pub mod WalkerOptionEnum {
743 pub const Ignore: u32 = 1;
744 pub const Stop: u32 = 2;
745 pub const Children: u32 = 4;
746 pub const IgnoreChildren: u32 = 8;
747
748 pub fn name(value: u32) -> Option<&'static str> {
750 match value {
751 1 => Some("Ignore"),
752 2 => Some("Stop"),
753 4 => Some("Children"),
754 8 => Some("IgnoreChildren"),
755 _ => Option::None,
756 }
757 }
758
759 pub fn value(name: &str) -> Option<u32> {
761 match name {
762 "Ignore" => Some(1),
763 "Stop" => Some(2),
764 "Children" => Some(4),
765 "IgnoreChildren" => Some(8),
766 _ => Option::None,
767 }
768 }
769}
770
771pub mod WalkerEvent {
772 pub const Enter: u32 = 1;
773 pub const Leave: u32 = 2;
774
775 pub fn name(value: u32) -> Option<&'static str> {
777 match value {
778 1 => Some("Enter"),
779 2 => Some("Leave"),
780 _ => Option::None,
781 }
782 }
783
784 pub fn value(name: &str) -> Option<u32> {
786 match name {
787 "Enter" => Some(1),
788 "Leave" => Some(2),
789 _ => Option::None,
790 }
791 }
792}
793
794pub mod MergeRulesEnum {
795 pub const None: u32 = 0;
796 pub const Identical: u32 = 1;
797 pub const All: u32 = 2;
798
799 pub fn name(value: u32) -> Option<&'static str> {
801 match value {
802 0 => Some("None"),
803 1 => Some("Identical"),
804 2 => Some("All"),
805 _ => Option::None,
806 }
807 }
808
809 pub fn value(name: &str) -> Option<u32> {
811 match name {
812 "None" => Some(0),
813 "Identical" => Some(1),
814 "All" => Some(2),
815 _ => Option::None,
816 }
817 }
818}