@tbela99/css-parser 1.4.10 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/README.md +11 -4
- package/dist/index-umd-web.js +2118 -1701
- package/dist/index.cjs +2130 -1696
- package/dist/index.d.ts +781 -269
- package/dist/lib/ast/clone.js +13 -8
- package/dist/lib/ast/expand.js +45 -9
- package/dist/lib/ast/features/calc.js +2 -1
- package/dist/lib/ast/features/if.js +24 -4
- package/dist/lib/ast/features/prefix.js +13 -31
- package/dist/lib/ast/features/shorthand.js +1 -1
- package/dist/lib/ast/features/transform.js +5 -2
- package/dist/lib/ast/find.js +7 -5
- package/dist/lib/ast/minify.js +80 -35
- package/dist/lib/ast/node.js +50 -0
- package/dist/lib/ast/types.js +1 -1
- package/dist/lib/ast/walk.js +27 -7
- package/dist/lib/fs/resolve.js +64 -32
- package/dist/lib/parser/declaration/map.js +14 -5
- package/dist/lib/parser/linesmap.js +5 -13
- package/dist/lib/parser/parse.js +489 -719
- package/dist/lib/parser/source.js +16 -2
- package/dist/lib/parser/tokenize.js +382 -278
- package/dist/lib/parser/utils/at-rule-container.js +2 -1
- package/dist/lib/parser/utils/selector.js +88 -10
- package/dist/lib/renderer/render.js +174 -99
- package/dist/lib/renderer/sourcemap/lib/codec.js +78 -0
- package/dist/lib/renderer/sourcemap/sourcemap.js +190 -34
- package/dist/lib/syntax/syntax.js +14 -151
- package/dist/lib/validation/match.js +81 -1
- package/dist/node.js +41 -26
- package/dist/utils/sync.d.ts +16 -0
- package/dist/utils/sync.js +52 -0
- package/dist/web.js +26 -28
- package/llms.txt +12 -5
- package/package.json +1 -1
- package/dist/lib/renderer/sourcemap/lib/encode.js +0 -37
package/dist/index.d.ts
CHANGED
|
@@ -379,7 +379,7 @@ declare enum EnumToken {
|
|
|
379
379
|
/**
|
|
380
380
|
* keyframe rule node type
|
|
381
381
|
*/
|
|
382
|
-
|
|
382
|
+
KeyframesRuleNodeType = 73,
|
|
383
383
|
/**
|
|
384
384
|
* class selector token type
|
|
385
385
|
*/
|
|
@@ -980,7 +980,7 @@ declare const OPTIMIZED: unique symbol;
|
|
|
980
980
|
*/
|
|
981
981
|
export declare interface LiteralToken extends BaseToken {
|
|
982
982
|
/**
|
|
983
|
-
*
|
|
983
|
+
* @inheritdoc
|
|
984
984
|
*/
|
|
985
985
|
typ: EnumToken.LiteralTokenType;
|
|
986
986
|
/**
|
|
@@ -994,7 +994,7 @@ export declare interface LiteralToken extends BaseToken {
|
|
|
994
994
|
*/
|
|
995
995
|
export declare interface ClassSelectorToken extends BaseToken {
|
|
996
996
|
/**
|
|
997
|
-
*
|
|
997
|
+
* @inheritdoc
|
|
998
998
|
*/
|
|
999
999
|
typ: EnumToken.ClassSelectorTokenType;
|
|
1000
1000
|
/**
|
|
@@ -1008,7 +1008,7 @@ export declare interface ClassSelectorToken extends BaseToken {
|
|
|
1008
1008
|
*/
|
|
1009
1009
|
export declare interface InvalidClassSelectorToken extends BaseToken {
|
|
1010
1010
|
/**
|
|
1011
|
-
*
|
|
1011
|
+
* @inheritdoc
|
|
1012
1012
|
*/
|
|
1013
1013
|
typ: EnumToken.InvalidClassSelectorTokenType;
|
|
1014
1014
|
/**
|
|
@@ -1022,7 +1022,7 @@ export declare interface InvalidClassSelectorToken extends BaseToken {
|
|
|
1022
1022
|
*/
|
|
1023
1023
|
export declare interface UniversalSelectorToken extends BaseToken {
|
|
1024
1024
|
/**
|
|
1025
|
-
*
|
|
1025
|
+
* @inheritdoc
|
|
1026
1026
|
*/
|
|
1027
1027
|
typ: EnumToken.UniversalSelectorTokenType;
|
|
1028
1028
|
}
|
|
@@ -1032,7 +1032,7 @@ export declare interface UniversalSelectorToken extends BaseToken {
|
|
|
1032
1032
|
*/
|
|
1033
1033
|
export declare interface IdentToken extends BaseToken {
|
|
1034
1034
|
/**
|
|
1035
|
-
*
|
|
1035
|
+
* @inheritdoc
|
|
1036
1036
|
*/
|
|
1037
1037
|
typ: EnumToken.IdenTokenType;
|
|
1038
1038
|
/**
|
|
@@ -1046,7 +1046,7 @@ export declare interface IdentToken extends BaseToken {
|
|
|
1046
1046
|
*/
|
|
1047
1047
|
export declare interface IdentListToken extends BaseToken {
|
|
1048
1048
|
/**
|
|
1049
|
-
*
|
|
1049
|
+
* @inheritdoc
|
|
1050
1050
|
*/
|
|
1051
1051
|
typ: EnumToken.IdenListTokenType;
|
|
1052
1052
|
/**
|
|
@@ -1060,7 +1060,7 @@ export declare interface IdentListToken extends BaseToken {
|
|
|
1060
1060
|
*/
|
|
1061
1061
|
export declare interface DashedIdentToken extends BaseToken {
|
|
1062
1062
|
/**
|
|
1063
|
-
*
|
|
1063
|
+
* @inheritdoc
|
|
1064
1064
|
*/
|
|
1065
1065
|
typ: EnumToken.DashedIdenTokenType;
|
|
1066
1066
|
/**
|
|
@@ -1074,7 +1074,7 @@ export declare interface DashedIdentToken extends BaseToken {
|
|
|
1074
1074
|
*/
|
|
1075
1075
|
export declare interface CommaToken extends BaseToken {
|
|
1076
1076
|
/**
|
|
1077
|
-
*
|
|
1077
|
+
* @inheritdoc
|
|
1078
1078
|
*/
|
|
1079
1079
|
typ: EnumToken.CommaTokenType;
|
|
1080
1080
|
}
|
|
@@ -1084,7 +1084,7 @@ export declare interface CommaToken extends BaseToken {
|
|
|
1084
1084
|
*/
|
|
1085
1085
|
export declare interface ColonToken extends BaseToken {
|
|
1086
1086
|
/**
|
|
1087
|
-
*
|
|
1087
|
+
* @inheritdoc
|
|
1088
1088
|
*/
|
|
1089
1089
|
typ: EnumToken.ColonTokenType;
|
|
1090
1090
|
}
|
|
@@ -1094,7 +1094,7 @@ export declare interface ColonToken extends BaseToken {
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
export declare interface DoubleColonToken extends BaseToken {
|
|
1096
1096
|
/**
|
|
1097
|
-
*
|
|
1097
|
+
* @inheritdoc
|
|
1098
1098
|
*/
|
|
1099
1099
|
typ: EnumToken.DoubleColonTokenType;
|
|
1100
1100
|
}
|
|
@@ -1104,7 +1104,7 @@ export declare interface DoubleColonToken extends BaseToken {
|
|
|
1104
1104
|
*/
|
|
1105
1105
|
export declare interface SemiColonToken extends BaseToken {
|
|
1106
1106
|
/**
|
|
1107
|
-
*
|
|
1107
|
+
* @inheritdoc
|
|
1108
1108
|
*/
|
|
1109
1109
|
typ: EnumToken.SemiColonTokenType;
|
|
1110
1110
|
}
|
|
@@ -1114,7 +1114,7 @@ export declare interface SemiColonToken extends BaseToken {
|
|
|
1114
1114
|
*/
|
|
1115
1115
|
export declare interface NestingSelectorToken extends BaseToken {
|
|
1116
1116
|
/**
|
|
1117
|
-
*
|
|
1117
|
+
* @inheritdoc
|
|
1118
1118
|
*/
|
|
1119
1119
|
typ: EnumToken.NestingSelectorTokenType;
|
|
1120
1120
|
}
|
|
@@ -1124,7 +1124,7 @@ export declare interface NestingSelectorToken extends BaseToken {
|
|
|
1124
1124
|
*/
|
|
1125
1125
|
export declare interface NumberToken extends BaseToken {
|
|
1126
1126
|
/**
|
|
1127
|
-
*
|
|
1127
|
+
* @inheritdoc
|
|
1128
1128
|
*/
|
|
1129
1129
|
typ: EnumToken.NumberTokenType;
|
|
1130
1130
|
/**
|
|
@@ -1142,7 +1142,7 @@ export declare interface NumberToken extends BaseToken {
|
|
|
1142
1142
|
*/
|
|
1143
1143
|
export declare interface AtRuleToken extends BaseToken {
|
|
1144
1144
|
/**
|
|
1145
|
-
*
|
|
1145
|
+
* @inheritdoc
|
|
1146
1146
|
*/
|
|
1147
1147
|
typ: EnumToken.AtRuleTokenType;
|
|
1148
1148
|
/**
|
|
@@ -1160,7 +1160,7 @@ export declare interface AtRuleToken extends BaseToken {
|
|
|
1160
1160
|
*/
|
|
1161
1161
|
export declare interface PercentageToken extends BaseToken {
|
|
1162
1162
|
/**
|
|
1163
|
-
*
|
|
1163
|
+
* @inheritdoc
|
|
1164
1164
|
*/
|
|
1165
1165
|
typ: EnumToken.PercentageTokenType;
|
|
1166
1166
|
/**
|
|
@@ -1174,7 +1174,7 @@ export declare interface PercentageToken extends BaseToken {
|
|
|
1174
1174
|
*/
|
|
1175
1175
|
export declare interface FlexToken extends BaseToken {
|
|
1176
1176
|
/**
|
|
1177
|
-
*
|
|
1177
|
+
* @inheritdoc
|
|
1178
1178
|
*/
|
|
1179
1179
|
typ: EnumToken.FlexTokenType;
|
|
1180
1180
|
/**
|
|
@@ -1197,10 +1197,12 @@ export declare interface FunctionToken extends BaseToken {
|
|
|
1197
1197
|
| EnumToken.ImageFunctionTokenType
|
|
1198
1198
|
| EnumToken.TimelineFunctionTokenType
|
|
1199
1199
|
| EnumToken.TimingFunctionTokenType
|
|
1200
|
-
| EnumToken.
|
|
1200
|
+
| EnumToken.ColorTokenType
|
|
1201
1201
|
| EnumToken.MathFunctionTokenType
|
|
1202
|
-
| EnumToken.
|
|
1203
|
-
| EnumToken.TransformFunctionTokenType
|
|
1202
|
+
| EnumToken.PseudoClassFuncTokenType
|
|
1203
|
+
| EnumToken.TransformFunctionTokenType
|
|
1204
|
+
| EnumToken.GeneralEnclosedFunctionTokenType
|
|
1205
|
+
| EnumToken.WildCardFunctionTokenType;
|
|
1204
1206
|
/**
|
|
1205
1207
|
* function name
|
|
1206
1208
|
*/
|
|
@@ -1216,7 +1218,7 @@ export declare interface FunctionToken extends BaseToken {
|
|
|
1216
1218
|
*/
|
|
1217
1219
|
export declare interface GridTemplateFuncToken extends BaseToken {
|
|
1218
1220
|
/**
|
|
1219
|
-
*
|
|
1221
|
+
* @inheritdoc
|
|
1220
1222
|
*/
|
|
1221
1223
|
typ: EnumToken.GridTemplateFuncTokenType;
|
|
1222
1224
|
/**
|
|
@@ -1234,7 +1236,7 @@ export declare interface GridTemplateFuncToken extends BaseToken {
|
|
|
1234
1236
|
*/
|
|
1235
1237
|
export declare interface FunctionURLToken extends BaseToken {
|
|
1236
1238
|
/**
|
|
1237
|
-
*
|
|
1239
|
+
* @inheritdoc
|
|
1238
1240
|
*/
|
|
1239
1241
|
typ: EnumToken.UrlFunctionTokenType;
|
|
1240
1242
|
/**
|
|
@@ -1252,7 +1254,7 @@ export declare interface FunctionURLToken extends BaseToken {
|
|
|
1252
1254
|
*/
|
|
1253
1255
|
export declare interface FunctionImageToken extends BaseToken {
|
|
1254
1256
|
/**
|
|
1255
|
-
*
|
|
1257
|
+
* @inheritdoc
|
|
1256
1258
|
*/
|
|
1257
1259
|
typ: EnumToken.ImageFunctionTokenType;
|
|
1258
1260
|
/**
|
|
@@ -1279,7 +1281,7 @@ export declare interface FunctionImageToken extends BaseToken {
|
|
|
1279
1281
|
*/
|
|
1280
1282
|
export declare interface TimingFunctionToken extends BaseToken {
|
|
1281
1283
|
/**
|
|
1282
|
-
*
|
|
1284
|
+
* @inheritdoc
|
|
1283
1285
|
*/
|
|
1284
1286
|
typ: EnumToken.TimingFunctionTokenType;
|
|
1285
1287
|
/**
|
|
@@ -1297,7 +1299,7 @@ export declare interface TimingFunctionToken extends BaseToken {
|
|
|
1297
1299
|
*/
|
|
1298
1300
|
export declare interface TimelineFunctionToken extends BaseToken {
|
|
1299
1301
|
/**
|
|
1300
|
-
*
|
|
1302
|
+
* @inheritdoc
|
|
1301
1303
|
*/
|
|
1302
1304
|
typ: EnumToken.TimelineFunctionTokenType;
|
|
1303
1305
|
/**
|
|
@@ -1315,7 +1317,7 @@ export declare interface TimelineFunctionToken extends BaseToken {
|
|
|
1315
1317
|
*/
|
|
1316
1318
|
export declare interface StringToken extends BaseToken {
|
|
1317
1319
|
/**
|
|
1318
|
-
*
|
|
1320
|
+
* @inheritdoc
|
|
1319
1321
|
*/
|
|
1320
1322
|
typ: EnumToken.StringTokenType;
|
|
1321
1323
|
/**
|
|
@@ -1329,7 +1331,7 @@ export declare interface StringToken extends BaseToken {
|
|
|
1329
1331
|
*/
|
|
1330
1332
|
export declare interface BadStringToken extends BaseToken {
|
|
1331
1333
|
/**
|
|
1332
|
-
*
|
|
1334
|
+
* @inheritdoc
|
|
1333
1335
|
*/
|
|
1334
1336
|
typ: EnumToken.BadStringTokenType;
|
|
1335
1337
|
/**
|
|
@@ -1343,7 +1345,7 @@ export declare interface BadStringToken extends BaseToken {
|
|
|
1343
1345
|
*/
|
|
1344
1346
|
export declare interface UnclosedStringToken extends BaseToken {
|
|
1345
1347
|
/**
|
|
1346
|
-
*
|
|
1348
|
+
* @inheritdoc
|
|
1347
1349
|
*/
|
|
1348
1350
|
typ: EnumToken.UnclosedStringTokenType;
|
|
1349
1351
|
/**
|
|
@@ -1357,7 +1359,7 @@ export declare interface UnclosedStringToken extends BaseToken {
|
|
|
1357
1359
|
*/
|
|
1358
1360
|
export declare interface DimensionToken extends BaseToken {
|
|
1359
1361
|
/**
|
|
1360
|
-
*
|
|
1362
|
+
* @inheritdoc
|
|
1361
1363
|
*/
|
|
1362
1364
|
typ: EnumToken.DimensionTokenType;
|
|
1363
1365
|
/**
|
|
@@ -1375,7 +1377,7 @@ export declare interface DimensionToken extends BaseToken {
|
|
|
1375
1377
|
*/
|
|
1376
1378
|
export declare interface LengthToken extends BaseToken {
|
|
1377
1379
|
/**
|
|
1378
|
-
*
|
|
1380
|
+
* @inheritdoc
|
|
1379
1381
|
*/
|
|
1380
1382
|
typ: EnumToken.LengthTokenType;
|
|
1381
1383
|
/**
|
|
@@ -1393,7 +1395,7 @@ export declare interface LengthToken extends BaseToken {
|
|
|
1393
1395
|
*/
|
|
1394
1396
|
export declare interface AngleToken extends BaseToken {
|
|
1395
1397
|
/**
|
|
1396
|
-
*
|
|
1398
|
+
* @inheritdoc
|
|
1397
1399
|
*/
|
|
1398
1400
|
typ: EnumToken.AngleTokenType;
|
|
1399
1401
|
/**
|
|
@@ -1411,7 +1413,7 @@ export declare interface AngleToken extends BaseToken {
|
|
|
1411
1413
|
*/
|
|
1412
1414
|
export declare interface TimeToken extends BaseToken {
|
|
1413
1415
|
/**
|
|
1414
|
-
*
|
|
1416
|
+
* @inheritdoc
|
|
1415
1417
|
*/
|
|
1416
1418
|
typ: EnumToken.TimeTokenType;
|
|
1417
1419
|
/**
|
|
@@ -1419,7 +1421,7 @@ export declare interface TimeToken extends BaseToken {
|
|
|
1419
1421
|
*/
|
|
1420
1422
|
val: number | FractionToken;
|
|
1421
1423
|
/**
|
|
1422
|
-
* time unit
|
|
1424
|
+
* time unit
|
|
1423
1425
|
*/
|
|
1424
1426
|
unit: "ms" | "s";
|
|
1425
1427
|
}
|
|
@@ -1429,7 +1431,7 @@ export declare interface TimeToken extends BaseToken {
|
|
|
1429
1431
|
*/
|
|
1430
1432
|
export declare interface FrequencyToken extends BaseToken {
|
|
1431
1433
|
/**
|
|
1432
|
-
*
|
|
1434
|
+
* @inheritdoc
|
|
1433
1435
|
*/
|
|
1434
1436
|
typ: EnumToken.FrequencyTokenType;
|
|
1435
1437
|
/**
|
|
@@ -1447,7 +1449,7 @@ export declare interface FrequencyToken extends BaseToken {
|
|
|
1447
1449
|
*/
|
|
1448
1450
|
export declare interface ResolutionToken extends BaseToken {
|
|
1449
1451
|
/**
|
|
1450
|
-
*
|
|
1452
|
+
* @inheritdoc
|
|
1451
1453
|
*/
|
|
1452
1454
|
typ: EnumToken.ResolutionTokenType;
|
|
1453
1455
|
/**
|
|
@@ -1465,7 +1467,7 @@ export declare interface ResolutionToken extends BaseToken {
|
|
|
1465
1467
|
*/
|
|
1466
1468
|
export declare interface HashToken extends BaseToken {
|
|
1467
1469
|
/**
|
|
1468
|
-
*
|
|
1470
|
+
* @inheritdoc
|
|
1469
1471
|
*/
|
|
1470
1472
|
typ: EnumToken.HashTokenType;
|
|
1471
1473
|
/**
|
|
@@ -1479,7 +1481,7 @@ export declare interface HashToken extends BaseToken {
|
|
|
1479
1481
|
*/
|
|
1480
1482
|
export declare interface BlockStartToken extends BaseToken {
|
|
1481
1483
|
/**
|
|
1482
|
-
*
|
|
1484
|
+
* @inheritdoc
|
|
1483
1485
|
*/
|
|
1484
1486
|
typ: EnumToken.BlockStartTokenType;
|
|
1485
1487
|
}
|
|
@@ -1489,7 +1491,7 @@ export declare interface BlockStartToken extends BaseToken {
|
|
|
1489
1491
|
*/
|
|
1490
1492
|
export declare interface BlockEndToken extends BaseToken {
|
|
1491
1493
|
/**
|
|
1492
|
-
*
|
|
1494
|
+
* @inheritdoc
|
|
1493
1495
|
*/
|
|
1494
1496
|
typ: EnumToken.BlockEndTokenType;
|
|
1495
1497
|
}
|
|
@@ -1499,7 +1501,7 @@ export declare interface BlockEndToken extends BaseToken {
|
|
|
1499
1501
|
*/
|
|
1500
1502
|
export declare interface AttrStartToken extends BaseToken {
|
|
1501
1503
|
/**
|
|
1502
|
-
*
|
|
1504
|
+
* @inheritdoc
|
|
1503
1505
|
*/
|
|
1504
1506
|
typ: EnumToken.AttrStartTokenType;
|
|
1505
1507
|
/**
|
|
@@ -1513,7 +1515,7 @@ export declare interface AttrStartToken extends BaseToken {
|
|
|
1513
1515
|
*/
|
|
1514
1516
|
export declare interface AttrEndToken extends BaseToken {
|
|
1515
1517
|
/**
|
|
1516
|
-
*
|
|
1518
|
+
* @inheritdoc
|
|
1517
1519
|
*/
|
|
1518
1520
|
typ: EnumToken.AttrEndTokenType;
|
|
1519
1521
|
}
|
|
@@ -1523,7 +1525,7 @@ export declare interface AttrEndToken extends BaseToken {
|
|
|
1523
1525
|
*/
|
|
1524
1526
|
export declare interface ParensStartToken extends BaseToken {
|
|
1525
1527
|
/**
|
|
1526
|
-
*
|
|
1528
|
+
* @inheritdoc
|
|
1527
1529
|
*/
|
|
1528
1530
|
typ: EnumToken.StartParensTokenType;
|
|
1529
1531
|
}
|
|
@@ -1533,7 +1535,7 @@ export declare interface ParensStartToken extends BaseToken {
|
|
|
1533
1535
|
*/
|
|
1534
1536
|
export declare interface ParensEndToken extends BaseToken {
|
|
1535
1537
|
/**
|
|
1536
|
-
*
|
|
1538
|
+
* @inheritdoc
|
|
1537
1539
|
*/
|
|
1538
1540
|
typ: EnumToken.EndParensTokenType;
|
|
1539
1541
|
}
|
|
@@ -1543,7 +1545,7 @@ export declare interface ParensEndToken extends BaseToken {
|
|
|
1543
1545
|
*/
|
|
1544
1546
|
export declare interface ParensToken extends BaseToken {
|
|
1545
1547
|
/**
|
|
1546
|
-
*
|
|
1548
|
+
* @inheritdoc
|
|
1547
1549
|
*/
|
|
1548
1550
|
typ: EnumToken.ParensTokenType;
|
|
1549
1551
|
/**
|
|
@@ -1557,7 +1559,7 @@ export declare interface ParensToken extends BaseToken {
|
|
|
1557
1559
|
*/
|
|
1558
1560
|
export declare interface WhitespaceToken extends BaseToken {
|
|
1559
1561
|
/**
|
|
1560
|
-
*
|
|
1562
|
+
* @inheritdoc
|
|
1561
1563
|
*/
|
|
1562
1564
|
typ: EnumToken.WhitespaceTokenType;
|
|
1563
1565
|
/**
|
|
@@ -1571,7 +1573,7 @@ export declare interface WhitespaceToken extends BaseToken {
|
|
|
1571
1573
|
*/
|
|
1572
1574
|
export declare interface CommentToken extends BaseToken {
|
|
1573
1575
|
/**
|
|
1574
|
-
*
|
|
1576
|
+
* @inheritdoc
|
|
1575
1577
|
*/
|
|
1576
1578
|
typ: EnumToken.CommentTokenType;
|
|
1577
1579
|
/**
|
|
@@ -1585,7 +1587,7 @@ export declare interface CommentToken extends BaseToken {
|
|
|
1585
1587
|
*/
|
|
1586
1588
|
export declare interface BadCommentToken extends BaseToken {
|
|
1587
1589
|
/**
|
|
1588
|
-
*
|
|
1590
|
+
* @inheritdoc
|
|
1589
1591
|
*/
|
|
1590
1592
|
typ: EnumToken.BadCommentTokenType;
|
|
1591
1593
|
/**
|
|
@@ -1598,7 +1600,13 @@ export declare interface BadCommentToken extends BaseToken {
|
|
|
1598
1600
|
* CDO comment token
|
|
1599
1601
|
*/
|
|
1600
1602
|
export declare interface CDOCommentToken extends BaseToken {
|
|
1603
|
+
/**
|
|
1604
|
+
* @inheritdoc
|
|
1605
|
+
*/
|
|
1601
1606
|
typ: EnumToken.CDOCOMMTokenType;
|
|
1607
|
+
/**
|
|
1608
|
+
* CDO comment value
|
|
1609
|
+
*/
|
|
1602
1610
|
val: string;
|
|
1603
1611
|
}
|
|
1604
1612
|
|
|
@@ -1607,7 +1615,7 @@ export declare interface CDOCommentToken extends BaseToken {
|
|
|
1607
1615
|
*/
|
|
1608
1616
|
export declare interface BadCDOCommentToken extends BaseToken {
|
|
1609
1617
|
/**
|
|
1610
|
-
*
|
|
1618
|
+
* @inheritdoc
|
|
1611
1619
|
*/
|
|
1612
1620
|
typ: EnumToken.BadCdoTokenType;
|
|
1613
1621
|
/**
|
|
@@ -1621,7 +1629,7 @@ export declare interface BadCDOCommentToken extends BaseToken {
|
|
|
1621
1629
|
*/
|
|
1622
1630
|
export declare interface IncludeMatchToken extends BaseToken {
|
|
1623
1631
|
/**
|
|
1624
|
-
*
|
|
1632
|
+
* @inheritdoc
|
|
1625
1633
|
*/
|
|
1626
1634
|
typ: EnumToken.IncludeMatchTokenType;
|
|
1627
1635
|
// val: '~=';
|
|
@@ -1632,7 +1640,7 @@ export declare interface IncludeMatchToken extends BaseToken {
|
|
|
1632
1640
|
*/
|
|
1633
1641
|
export declare interface DashMatchToken extends BaseToken {
|
|
1634
1642
|
/**
|
|
1635
|
-
*
|
|
1643
|
+
* @inheritdoc
|
|
1636
1644
|
*/
|
|
1637
1645
|
typ: EnumToken.DashMatchTokenType;
|
|
1638
1646
|
// val: '|=';
|
|
@@ -1643,7 +1651,7 @@ export declare interface DashMatchToken extends BaseToken {
|
|
|
1643
1651
|
*/
|
|
1644
1652
|
export declare interface EqualMatchToken extends BaseToken {
|
|
1645
1653
|
/**
|
|
1646
|
-
*
|
|
1654
|
+
* @inheritdoc
|
|
1647
1655
|
*/
|
|
1648
1656
|
typ: EnumToken.EqualMatchTokenType;
|
|
1649
1657
|
// val: '|=';
|
|
@@ -1654,7 +1662,7 @@ export declare interface EqualMatchToken extends BaseToken {
|
|
|
1654
1662
|
*/
|
|
1655
1663
|
export declare interface StartMatchToken extends BaseToken {
|
|
1656
1664
|
/**
|
|
1657
|
-
*
|
|
1665
|
+
* @inheritdoc
|
|
1658
1666
|
*/
|
|
1659
1667
|
typ: EnumToken.StartMatchTokenType;
|
|
1660
1668
|
// val: '^=';
|
|
@@ -1665,7 +1673,7 @@ export declare interface StartMatchToken extends BaseToken {
|
|
|
1665
1673
|
*/
|
|
1666
1674
|
export declare interface EndMatchToken extends BaseToken {
|
|
1667
1675
|
/**
|
|
1668
|
-
*
|
|
1676
|
+
* @inheritdoc
|
|
1669
1677
|
*/
|
|
1670
1678
|
typ: EnumToken.EndMatchTokenType;
|
|
1671
1679
|
// val: '|=';
|
|
@@ -1676,7 +1684,7 @@ export declare interface EndMatchToken extends BaseToken {
|
|
|
1676
1684
|
*/
|
|
1677
1685
|
export declare interface ContainMatchToken extends BaseToken {
|
|
1678
1686
|
/**
|
|
1679
|
-
*
|
|
1687
|
+
* @inheritdoc
|
|
1680
1688
|
*/
|
|
1681
1689
|
typ: EnumToken.ContainMatchTokenType;
|
|
1682
1690
|
// val: '|=';
|
|
@@ -1687,7 +1695,7 @@ export declare interface ContainMatchToken extends BaseToken {
|
|
|
1687
1695
|
*/
|
|
1688
1696
|
export declare interface LessThanToken extends BaseToken {
|
|
1689
1697
|
/**
|
|
1690
|
-
*
|
|
1698
|
+
* @inheritdoc
|
|
1691
1699
|
*/
|
|
1692
1700
|
typ: EnumToken.LtTokenType;
|
|
1693
1701
|
}
|
|
@@ -1697,7 +1705,7 @@ export declare interface LessThanToken extends BaseToken {
|
|
|
1697
1705
|
*/
|
|
1698
1706
|
export declare interface LessThanOrEqualToken extends BaseToken {
|
|
1699
1707
|
/**
|
|
1700
|
-
*
|
|
1708
|
+
* @inheritdoc
|
|
1701
1709
|
*/
|
|
1702
1710
|
typ: EnumToken.LteTokenType;
|
|
1703
1711
|
}
|
|
@@ -1707,7 +1715,7 @@ export declare interface LessThanOrEqualToken extends BaseToken {
|
|
|
1707
1715
|
*/
|
|
1708
1716
|
export declare interface GreaterThanToken extends BaseToken {
|
|
1709
1717
|
/**
|
|
1710
|
-
*
|
|
1718
|
+
* @inheritdoc
|
|
1711
1719
|
*/
|
|
1712
1720
|
typ: EnumToken.GtTokenType;
|
|
1713
1721
|
}
|
|
@@ -1717,7 +1725,7 @@ export declare interface GreaterThanToken extends BaseToken {
|
|
|
1717
1725
|
*/
|
|
1718
1726
|
export declare interface GreaterThanOrEqualToken extends BaseToken {
|
|
1719
1727
|
/**
|
|
1720
|
-
*
|
|
1728
|
+
* @inheritdoc
|
|
1721
1729
|
*/
|
|
1722
1730
|
typ: EnumToken.GteTokenType;
|
|
1723
1731
|
}
|
|
@@ -1727,7 +1735,7 @@ export declare interface GreaterThanOrEqualToken extends BaseToken {
|
|
|
1727
1735
|
*/
|
|
1728
1736
|
export declare interface ColumnCombinatorToken extends BaseToken {
|
|
1729
1737
|
/**
|
|
1730
|
-
*
|
|
1738
|
+
* @inheritdoc
|
|
1731
1739
|
*/
|
|
1732
1740
|
typ: EnumToken.ColumnCombinatorTokenType;
|
|
1733
1741
|
}
|
|
@@ -1737,7 +1745,7 @@ export declare interface ColumnCombinatorToken extends BaseToken {
|
|
|
1737
1745
|
*/
|
|
1738
1746
|
export declare interface PseudoClassToken extends BaseToken {
|
|
1739
1747
|
/**
|
|
1740
|
-
*
|
|
1748
|
+
* @inheritdoc
|
|
1741
1749
|
*/
|
|
1742
1750
|
typ: EnumToken.PseudoClassTokenType;
|
|
1743
1751
|
/**
|
|
@@ -1751,7 +1759,7 @@ export declare interface PseudoClassToken extends BaseToken {
|
|
|
1751
1759
|
*/
|
|
1752
1760
|
export declare interface PseudoElementToken extends BaseToken {
|
|
1753
1761
|
/**
|
|
1754
|
-
*
|
|
1762
|
+
* @inheritdoc
|
|
1755
1763
|
*/
|
|
1756
1764
|
typ: EnumToken.PseudoElementTokenType;
|
|
1757
1765
|
/**
|
|
@@ -1765,7 +1773,7 @@ export declare interface PseudoElementToken extends BaseToken {
|
|
|
1765
1773
|
*/
|
|
1766
1774
|
export declare interface PseudoPageToken extends BaseToken {
|
|
1767
1775
|
/**
|
|
1768
|
-
*
|
|
1776
|
+
* @inheritdoc
|
|
1769
1777
|
*/
|
|
1770
1778
|
typ: EnumToken.PseudoPageTokenType;
|
|
1771
1779
|
/**
|
|
@@ -1779,7 +1787,7 @@ export declare interface PseudoPageToken extends BaseToken {
|
|
|
1779
1787
|
*/
|
|
1780
1788
|
export declare interface PseudoClassFunctionToken extends BaseToken {
|
|
1781
1789
|
/**
|
|
1782
|
-
*
|
|
1790
|
+
* @inheritdoc
|
|
1783
1791
|
*/
|
|
1784
1792
|
typ: EnumToken.PseudoClassFuncTokenType;
|
|
1785
1793
|
/**
|
|
@@ -1797,7 +1805,7 @@ export declare interface PseudoClassFunctionToken extends BaseToken {
|
|
|
1797
1805
|
*/
|
|
1798
1806
|
export declare interface DelimToken extends BaseToken {
|
|
1799
1807
|
/**
|
|
1800
|
-
*
|
|
1808
|
+
* @inheritdoc
|
|
1801
1809
|
*/
|
|
1802
1810
|
typ: EnumToken.DelimTokenType;
|
|
1803
1811
|
}
|
|
@@ -1807,7 +1815,7 @@ export declare interface DelimToken extends BaseToken {
|
|
|
1807
1815
|
*/
|
|
1808
1816
|
export declare interface BadUrlToken extends BaseToken {
|
|
1809
1817
|
/**
|
|
1810
|
-
*
|
|
1818
|
+
* @inheritdoc
|
|
1811
1819
|
*/
|
|
1812
1820
|
typ: EnumToken.BadUrlTokenType;
|
|
1813
1821
|
/**
|
|
@@ -1821,7 +1829,7 @@ export declare interface BadUrlToken extends BaseToken {
|
|
|
1821
1829
|
*/
|
|
1822
1830
|
export declare interface UrlToken extends BaseToken {
|
|
1823
1831
|
/**
|
|
1824
|
-
*
|
|
1832
|
+
* @inheritdoc
|
|
1825
1833
|
*/
|
|
1826
1834
|
typ: EnumToken.UrlTokenTokenType;
|
|
1827
1835
|
/**
|
|
@@ -1835,7 +1843,7 @@ export declare interface UrlToken extends BaseToken {
|
|
|
1835
1843
|
*/
|
|
1836
1844
|
export declare interface EOFToken extends BaseToken {
|
|
1837
1845
|
/**
|
|
1838
|
-
*
|
|
1846
|
+
* @inheritdoc
|
|
1839
1847
|
*/
|
|
1840
1848
|
typ: EnumToken.EOFTokenType;
|
|
1841
1849
|
}
|
|
@@ -1845,7 +1853,7 @@ export declare interface EOFToken extends BaseToken {
|
|
|
1845
1853
|
*/
|
|
1846
1854
|
export declare interface ImportantToken extends BaseToken {
|
|
1847
1855
|
/**
|
|
1848
|
-
*
|
|
1856
|
+
* @inheritdoc
|
|
1849
1857
|
*/
|
|
1850
1858
|
typ: EnumToken.ImportantTokenType;
|
|
1851
1859
|
}
|
|
@@ -1855,7 +1863,7 @@ export declare interface ImportantToken extends BaseToken {
|
|
|
1855
1863
|
*/
|
|
1856
1864
|
export declare interface ColorToken extends BaseToken {
|
|
1857
1865
|
/**
|
|
1858
|
-
*
|
|
1866
|
+
* @inheritdoc
|
|
1859
1867
|
*/
|
|
1860
1868
|
typ: EnumToken.ColorTokenType;
|
|
1861
1869
|
/**
|
|
@@ -1881,7 +1889,7 @@ export declare interface ColorToken extends BaseToken {
|
|
|
1881
1889
|
*/
|
|
1882
1890
|
export declare interface AttrToken extends BaseToken {
|
|
1883
1891
|
/**
|
|
1884
|
-
*
|
|
1892
|
+
* @inheritdoc
|
|
1885
1893
|
*/
|
|
1886
1894
|
typ: EnumToken.AttrTokenType;
|
|
1887
1895
|
/**
|
|
@@ -1895,7 +1903,7 @@ export declare interface AttrToken extends BaseToken {
|
|
|
1895
1903
|
*/
|
|
1896
1904
|
export declare interface InvalidAttrToken extends BaseToken {
|
|
1897
1905
|
/**
|
|
1898
|
-
*
|
|
1906
|
+
* @inheritdoc
|
|
1899
1907
|
*/
|
|
1900
1908
|
typ: EnumToken.InvalidAttrTokenType;
|
|
1901
1909
|
/**
|
|
@@ -1908,6 +1916,9 @@ export declare interface InvalidAttrToken extends BaseToken {
|
|
|
1908
1916
|
* Child combinator token
|
|
1909
1917
|
*/
|
|
1910
1918
|
export declare interface ChildCombinatorToken extends BaseToken {
|
|
1919
|
+
/**
|
|
1920
|
+
* @inheritdoc
|
|
1921
|
+
*/
|
|
1911
1922
|
typ: EnumToken.ChildCombinatorTokenType;
|
|
1912
1923
|
}
|
|
1913
1924
|
|
|
@@ -1916,7 +1927,7 @@ export declare interface ChildCombinatorToken extends BaseToken {
|
|
|
1916
1927
|
*/
|
|
1917
1928
|
export declare interface MediaFeatureToken extends BaseToken {
|
|
1918
1929
|
/**
|
|
1919
|
-
*
|
|
1930
|
+
* @inheritdoc
|
|
1920
1931
|
*/
|
|
1921
1932
|
typ: EnumToken.MediaFeatureTokenType;
|
|
1922
1933
|
/**
|
|
@@ -1930,7 +1941,7 @@ export declare interface MediaFeatureToken extends BaseToken {
|
|
|
1930
1941
|
*/
|
|
1931
1942
|
export declare interface NotToken extends BaseToken {
|
|
1932
1943
|
/**
|
|
1933
|
-
*
|
|
1944
|
+
* @inheritdoc
|
|
1934
1945
|
*/
|
|
1935
1946
|
typ: EnumToken.NotTokenType;
|
|
1936
1947
|
/**
|
|
@@ -1944,7 +1955,7 @@ export declare interface NotToken extends BaseToken {
|
|
|
1944
1955
|
*/
|
|
1945
1956
|
export declare interface MediaFeatureOnlyToken extends BaseToken {
|
|
1946
1957
|
/**
|
|
1947
|
-
*
|
|
1958
|
+
* @inheritdoc
|
|
1948
1959
|
*/
|
|
1949
1960
|
typ: EnumToken.OnlyTokenType;
|
|
1950
1961
|
/**
|
|
@@ -1958,7 +1969,7 @@ export declare interface MediaFeatureOnlyToken extends BaseToken {
|
|
|
1958
1969
|
*/
|
|
1959
1970
|
export declare interface AndToken extends BaseToken {
|
|
1960
1971
|
/**
|
|
1961
|
-
*
|
|
1972
|
+
* @inheritdoc
|
|
1962
1973
|
*/
|
|
1963
1974
|
typ: EnumToken.AndTokenType;
|
|
1964
1975
|
}
|
|
@@ -1968,7 +1979,7 @@ export declare interface AndToken extends BaseToken {
|
|
|
1968
1979
|
*/
|
|
1969
1980
|
export declare interface OrToken extends BaseToken {
|
|
1970
1981
|
/**
|
|
1971
|
-
*
|
|
1982
|
+
* @inheritdoc
|
|
1972
1983
|
*/
|
|
1973
1984
|
typ: EnumToken.OrTokenType;
|
|
1974
1985
|
}
|
|
@@ -1978,7 +1989,7 @@ export declare interface OrToken extends BaseToken {
|
|
|
1978
1989
|
*/
|
|
1979
1990
|
export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
|
|
1980
1991
|
/**
|
|
1981
|
-
*
|
|
1992
|
+
* @inheritdoc
|
|
1982
1993
|
*/
|
|
1983
1994
|
typ: EnumToken.MediaQueryUnaryFeatureTokenType;
|
|
1984
1995
|
/**
|
|
@@ -1993,7 +2004,7 @@ export declare interface MediaQueryUnaryFeatureToken extends BaseToken {
|
|
|
1993
2004
|
|
|
1994
2005
|
export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
|
|
1995
2006
|
/**
|
|
1996
|
-
*
|
|
2007
|
+
* @inheritdoc
|
|
1997
2008
|
*/
|
|
1998
2009
|
typ: EnumToken.SupportsQueryUnaryConditionTokenType;
|
|
1999
2010
|
/**
|
|
@@ -2008,7 +2019,7 @@ export declare interface SupportsQueryUnaryConditionToken extends BaseToken {
|
|
|
2008
2019
|
|
|
2009
2020
|
export declare interface SupportsQueryConditionToken extends BaseToken {
|
|
2010
2021
|
/**
|
|
2011
|
-
*
|
|
2022
|
+
* @inheritdoc
|
|
2012
2023
|
*/
|
|
2013
2024
|
typ: EnumToken.SupportsQueryConditionTokenType;
|
|
2014
2025
|
/**
|
|
@@ -2027,7 +2038,7 @@ export declare interface SupportsQueryConditionToken extends BaseToken {
|
|
|
2027
2038
|
|
|
2028
2039
|
export declare interface WhenElseQueryConditionToken extends BaseToken {
|
|
2029
2040
|
/**
|
|
2030
|
-
*
|
|
2041
|
+
* @inheritdoc
|
|
2031
2042
|
*/
|
|
2032
2043
|
typ: EnumToken.WhenElseQueryConditionTokenType;
|
|
2033
2044
|
/**
|
|
@@ -2046,7 +2057,7 @@ export declare interface WhenElseQueryConditionToken extends BaseToken {
|
|
|
2046
2057
|
|
|
2047
2058
|
export declare interface WhenElseUnaryConditionToken extends BaseToken {
|
|
2048
2059
|
/**
|
|
2049
|
-
*
|
|
2060
|
+
* @inheritdoc
|
|
2050
2061
|
*/
|
|
2051
2062
|
typ: EnumToken.WhenElseUnaryConditionTokenType;
|
|
2052
2063
|
/**
|
|
@@ -2061,7 +2072,7 @@ export declare interface WhenElseUnaryConditionToken extends BaseToken {
|
|
|
2061
2072
|
|
|
2062
2073
|
export declare interface MediaQueryConditionToken extends BaseToken {
|
|
2063
2074
|
/**
|
|
2064
|
-
*
|
|
2075
|
+
* @inheritdoc
|
|
2065
2076
|
*/
|
|
2066
2077
|
typ: EnumToken.MediaQueryConditionTokenType;
|
|
2067
2078
|
/**
|
|
@@ -2088,7 +2099,7 @@ export declare interface MediaQueryConditionToken extends BaseToken {
|
|
|
2088
2099
|
|
|
2089
2100
|
export declare interface IfConditionToken extends BaseToken {
|
|
2090
2101
|
/**
|
|
2091
|
-
*
|
|
2102
|
+
* @inheritdoc
|
|
2092
2103
|
*/
|
|
2093
2104
|
typ: EnumToken.IfConditionTokenType;
|
|
2094
2105
|
/**
|
|
@@ -2103,7 +2114,7 @@ export declare interface IfConditionToken extends BaseToken {
|
|
|
2103
2114
|
|
|
2104
2115
|
export declare interface IfElseConditionToken extends BaseToken {
|
|
2105
2116
|
/**
|
|
2106
|
-
*
|
|
2117
|
+
* @inheritdoc
|
|
2107
2118
|
*/
|
|
2108
2119
|
typ: EnumToken.IfElseConditionTokenType;
|
|
2109
2120
|
/**
|
|
@@ -2117,23 +2128,67 @@ export declare interface IfElseConditionToken extends BaseToken {
|
|
|
2117
2128
|
}
|
|
2118
2129
|
|
|
2119
2130
|
export declare interface ContainerStyleRangeToken extends BaseToken {
|
|
2131
|
+
/**
|
|
2132
|
+
* @inheritdoc
|
|
2133
|
+
*/
|
|
2120
2134
|
typ: EnumToken.ContainerStyleRangeTokenType;
|
|
2135
|
+
/**
|
|
2136
|
+
* condition left handle
|
|
2137
|
+
*/
|
|
2121
2138
|
l: Token$1[];
|
|
2139
|
+
/**
|
|
2140
|
+
* condition operator
|
|
2141
|
+
*/
|
|
2122
2142
|
op: Token$1[];
|
|
2143
|
+
/**
|
|
2144
|
+
* condition value
|
|
2145
|
+
*/
|
|
2123
2146
|
r: Token$1[];
|
|
2124
2147
|
}
|
|
2125
2148
|
|
|
2149
|
+
// (20px <= width < 30px)
|
|
2150
|
+
/**
|
|
2151
|
+
* @inheritdoc
|
|
2152
|
+
*/
|
|
2126
2153
|
export declare interface MediaRangeQueryToken extends BaseToken {
|
|
2154
|
+
/**
|
|
2155
|
+
* @inheritdoc
|
|
2156
|
+
*/
|
|
2127
2157
|
typ: EnumToken.MediaRangeQueryTokenType;
|
|
2158
|
+
/**
|
|
2159
|
+
* left hanle
|
|
2160
|
+
* */
|
|
2128
2161
|
l: Token$1[];
|
|
2162
|
+
/**
|
|
2163
|
+
* media feature name
|
|
2164
|
+
*/
|
|
2129
2165
|
val: Token$1[];
|
|
2166
|
+
/**
|
|
2167
|
+
* first comparator
|
|
2168
|
+
*/
|
|
2130
2169
|
op1: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
|
|
2170
|
+
/**
|
|
2171
|
+
* second comparator
|
|
2172
|
+
*/
|
|
2131
2173
|
op2: LessThanToken | GreaterThanToken | LessThanOrEqualToken | GreaterThanOrEqualToken;
|
|
2174
|
+
/**
|
|
2175
|
+
* right handle
|
|
2176
|
+
*/
|
|
2132
2177
|
r: Token$1[];
|
|
2133
2178
|
}
|
|
2134
2179
|
|
|
2180
|
+
/**
|
|
2181
|
+
* @inheritdoc
|
|
2182
|
+
*/
|
|
2135
2183
|
export declare interface InvalidMediaQueryToken extends BaseToken {
|
|
2184
|
+
/**
|
|
2185
|
+
* @inheritdoc
|
|
2186
|
+
*/
|
|
2136
2187
|
typ: EnumToken.InvalidMediaQueryTokenType;
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* children
|
|
2191
|
+
*/
|
|
2137
2192
|
chi: Token$1[];
|
|
2138
2193
|
}
|
|
2139
2194
|
|
|
@@ -2141,6 +2196,9 @@ export declare interface InvalidMediaQueryToken extends BaseToken {
|
|
|
2141
2196
|
* Descendant combinator token
|
|
2142
2197
|
*/
|
|
2143
2198
|
export declare interface DescendantCombinatorToken extends BaseToken {
|
|
2199
|
+
/**
|
|
2200
|
+
* @inheritdoc
|
|
2201
|
+
*/
|
|
2144
2202
|
typ: EnumToken.DescendantCombinatorTokenType;
|
|
2145
2203
|
}
|
|
2146
2204
|
|
|
@@ -2148,6 +2206,9 @@ export declare interface DescendantCombinatorToken extends BaseToken {
|
|
|
2148
2206
|
* Next sibling combinator token
|
|
2149
2207
|
*/
|
|
2150
2208
|
export declare interface NextSiblingCombinatorToken extends BaseToken {
|
|
2209
|
+
/**
|
|
2210
|
+
* @inheritdoc
|
|
2211
|
+
*/
|
|
2151
2212
|
typ: EnumToken.NextSiblingCombinatorTokenType;
|
|
2152
2213
|
}
|
|
2153
2214
|
|
|
@@ -2155,6 +2216,9 @@ export declare interface NextSiblingCombinatorToken extends BaseToken {
|
|
|
2155
2216
|
* Subsequent sibling combinator token
|
|
2156
2217
|
*/
|
|
2157
2218
|
export declare interface SubsequentCombinatorToken extends BaseToken {
|
|
2219
|
+
/**
|
|
2220
|
+
* @inheritdoc
|
|
2221
|
+
*/
|
|
2158
2222
|
typ: EnumToken.SubsequentSiblingCombinatorTokenType;
|
|
2159
2223
|
}
|
|
2160
2224
|
|
|
@@ -2162,6 +2226,9 @@ export declare interface SubsequentCombinatorToken extends BaseToken {
|
|
|
2162
2226
|
* Add token
|
|
2163
2227
|
*/
|
|
2164
2228
|
export declare interface AddToken extends BaseToken {
|
|
2229
|
+
/**
|
|
2230
|
+
* @inheritdoc
|
|
2231
|
+
*/
|
|
2165
2232
|
typ: EnumToken.Add;
|
|
2166
2233
|
}
|
|
2167
2234
|
|
|
@@ -2169,6 +2236,9 @@ export declare interface AddToken extends BaseToken {
|
|
|
2169
2236
|
* Sub token
|
|
2170
2237
|
*/
|
|
2171
2238
|
export declare interface SubToken extends BaseToken {
|
|
2239
|
+
/**
|
|
2240
|
+
* @inheritdoc
|
|
2241
|
+
*/
|
|
2172
2242
|
typ: EnumToken.Sub;
|
|
2173
2243
|
}
|
|
2174
2244
|
|
|
@@ -2176,6 +2246,9 @@ export declare interface SubToken extends BaseToken {
|
|
|
2176
2246
|
* Div token
|
|
2177
2247
|
*/
|
|
2178
2248
|
export declare interface DivToken extends BaseToken {
|
|
2249
|
+
/**
|
|
2250
|
+
* @inheritdoc
|
|
2251
|
+
*/
|
|
2179
2252
|
typ: EnumToken.Div;
|
|
2180
2253
|
}
|
|
2181
2254
|
|
|
@@ -2184,7 +2257,7 @@ export declare interface DivToken extends BaseToken {
|
|
|
2184
2257
|
*/
|
|
2185
2258
|
export declare interface MulToken extends BaseToken {
|
|
2186
2259
|
/**
|
|
2187
|
-
*
|
|
2260
|
+
* @inheritdoc
|
|
2188
2261
|
*/
|
|
2189
2262
|
typ: EnumToken.Mul;
|
|
2190
2263
|
}
|
|
@@ -2194,7 +2267,7 @@ export declare interface MulToken extends BaseToken {
|
|
|
2194
2267
|
*/
|
|
2195
2268
|
export declare interface WrappedValuesToken extends BaseToken {
|
|
2196
2269
|
/**
|
|
2197
|
-
*
|
|
2270
|
+
* @inheritdoc
|
|
2198
2271
|
*/
|
|
2199
2272
|
typ: EnumToken.WrappedValuesTokenType;
|
|
2200
2273
|
/**
|
|
@@ -2208,7 +2281,7 @@ export declare interface WrappedValuesToken extends BaseToken {
|
|
|
2208
2281
|
*/
|
|
2209
2282
|
export declare interface UnaryExpression extends BaseToken {
|
|
2210
2283
|
/**
|
|
2211
|
-
*
|
|
2284
|
+
* @inheritdoc
|
|
2212
2285
|
*/
|
|
2213
2286
|
typ: EnumToken.UnaryExpressionTokenType;
|
|
2214
2287
|
/**
|
|
@@ -2225,8 +2298,17 @@ export declare interface UnaryExpression extends BaseToken {
|
|
|
2225
2298
|
* Fraction token
|
|
2226
2299
|
*/
|
|
2227
2300
|
export declare interface FractionToken extends BaseToken {
|
|
2301
|
+
/**
|
|
2302
|
+
* @inheritdoc
|
|
2303
|
+
*/
|
|
2228
2304
|
typ: EnumToken.FractionTokenType;
|
|
2305
|
+
/**
|
|
2306
|
+
* Left handle
|
|
2307
|
+
*/
|
|
2229
2308
|
l: NumberToken;
|
|
2309
|
+
/**
|
|
2310
|
+
* Right handle
|
|
2311
|
+
*/
|
|
2230
2312
|
r: NumberToken;
|
|
2231
2313
|
}
|
|
2232
2314
|
|
|
@@ -2234,9 +2316,21 @@ export declare interface FractionToken extends BaseToken {
|
|
|
2234
2316
|
* Binary expression token
|
|
2235
2317
|
*/
|
|
2236
2318
|
export declare interface BinaryExpressionToken extends BaseToken {
|
|
2319
|
+
/**
|
|
2320
|
+
* @inheritdoc
|
|
2321
|
+
*/
|
|
2237
2322
|
typ: EnumToken.BinaryExpressionTokenType;
|
|
2323
|
+
/**
|
|
2324
|
+
* Operator
|
|
2325
|
+
*/
|
|
2238
2326
|
op: EnumToken.Add | EnumToken.Sub | EnumToken.Div | EnumToken.Mul;
|
|
2327
|
+
/**
|
|
2328
|
+
* Left handle
|
|
2329
|
+
*/
|
|
2239
2330
|
l: BinaryExpressionNode | Token$1;
|
|
2331
|
+
/**
|
|
2332
|
+
* Right handle
|
|
2333
|
+
*/
|
|
2240
2334
|
r: BinaryExpressionNode | Token$1;
|
|
2241
2335
|
}
|
|
2242
2336
|
|
|
@@ -2244,10 +2338,25 @@ export declare interface BinaryExpressionToken extends BaseToken {
|
|
|
2244
2338
|
* Match expression token
|
|
2245
2339
|
*/
|
|
2246
2340
|
export declare interface MatchExpressionToken extends BaseToken {
|
|
2341
|
+
/**
|
|
2342
|
+
* @inheritdoc
|
|
2343
|
+
*/
|
|
2247
2344
|
typ: EnumToken.MatchExpressionTokenType;
|
|
2345
|
+
/**
|
|
2346
|
+
* Operator
|
|
2347
|
+
*/
|
|
2248
2348
|
op: EqualMatchToken | DashMatchToken | StartMatchToken | ContainMatchToken | EndMatchToken | IncludeMatchToken;
|
|
2349
|
+
/**
|
|
2350
|
+
* Left handle
|
|
2351
|
+
*/
|
|
2249
2352
|
l: Token$1;
|
|
2353
|
+
/**
|
|
2354
|
+
* Right handle
|
|
2355
|
+
*/
|
|
2250
2356
|
r: Token$1;
|
|
2357
|
+
/**
|
|
2358
|
+
* Flags
|
|
2359
|
+
*/
|
|
2251
2360
|
attr?: "i" | "s";
|
|
2252
2361
|
}
|
|
2253
2362
|
|
|
@@ -2255,8 +2364,17 @@ export declare interface MatchExpressionToken extends BaseToken {
|
|
|
2255
2364
|
* Name space attribute token
|
|
2256
2365
|
*/
|
|
2257
2366
|
export declare interface NameSpaceAttributeToken extends BaseToken {
|
|
2367
|
+
/**
|
|
2368
|
+
* @inheritdoc
|
|
2369
|
+
*/
|
|
2258
2370
|
typ: EnumToken.NameSpaceAttributeTokenType;
|
|
2371
|
+
/**
|
|
2372
|
+
* Left handle
|
|
2373
|
+
*/
|
|
2259
2374
|
l?: Token$1;
|
|
2375
|
+
/**
|
|
2376
|
+
* Right handle
|
|
2377
|
+
*/
|
|
2260
2378
|
r: Token$1;
|
|
2261
2379
|
}
|
|
2262
2380
|
|
|
@@ -2264,7 +2382,13 @@ export declare interface NameSpaceAttributeToken extends BaseToken {
|
|
|
2264
2382
|
* List token
|
|
2265
2383
|
*/
|
|
2266
2384
|
export declare interface ListToken extends BaseToken {
|
|
2385
|
+
/**
|
|
2386
|
+
* @inheritdoc
|
|
2387
|
+
*/
|
|
2267
2388
|
typ: EnumToken.ListToken;
|
|
2389
|
+
/**
|
|
2390
|
+
* Children
|
|
2391
|
+
*/
|
|
2268
2392
|
chi: Token$1[];
|
|
2269
2393
|
}
|
|
2270
2394
|
|
|
@@ -2272,29 +2396,71 @@ export declare interface ListToken extends BaseToken {
|
|
|
2272
2396
|
* Composes selector token
|
|
2273
2397
|
*/
|
|
2274
2398
|
export declare interface ComposesSelectorToken extends BaseToken {
|
|
2399
|
+
/**
|
|
2400
|
+
* @inheritdoc
|
|
2401
|
+
*/
|
|
2275
2402
|
typ: EnumToken.ComposesSelectorTokenType;
|
|
2403
|
+
/**
|
|
2404
|
+
* Left handle
|
|
2405
|
+
*/
|
|
2276
2406
|
l: Token$1[];
|
|
2407
|
+
/**
|
|
2408
|
+
* Right handle
|
|
2409
|
+
*/
|
|
2277
2410
|
r: Token$1 | null;
|
|
2278
2411
|
}
|
|
2279
2412
|
|
|
2280
2413
|
/**
|
|
2281
2414
|
* Css variable token
|
|
2282
2415
|
*/
|
|
2283
|
-
export declare interface CssVariableToken
|
|
2416
|
+
export declare interface CssVariableToken extends BaseToken {
|
|
2417
|
+
/**
|
|
2418
|
+
* @inheritdoc
|
|
2419
|
+
*/
|
|
2284
2420
|
typ: EnumToken.CssVariableTokenType;
|
|
2421
|
+
/**
|
|
2422
|
+
* Name
|
|
2423
|
+
*/
|
|
2285
2424
|
nam: string;
|
|
2425
|
+
/**
|
|
2426
|
+
* Value
|
|
2427
|
+
*/
|
|
2286
2428
|
val: Token$1[];
|
|
2287
2429
|
}
|
|
2288
2430
|
|
|
2289
|
-
|
|
2431
|
+
/**
|
|
2432
|
+
* Css variable import token
|
|
2433
|
+
*/
|
|
2434
|
+
export declare interface CssVariableImportTokenType extends BaseToken {
|
|
2435
|
+
/**
|
|
2436
|
+
* @inheritdoc
|
|
2437
|
+
*/
|
|
2290
2438
|
typ: EnumToken.CssVariableImportTokenType;
|
|
2439
|
+
/**
|
|
2440
|
+
* Name
|
|
2441
|
+
*/
|
|
2291
2442
|
nam: string;
|
|
2443
|
+
/**
|
|
2444
|
+
* Value
|
|
2445
|
+
*/
|
|
2292
2446
|
val: Token$1[];
|
|
2293
2447
|
}
|
|
2294
2448
|
|
|
2449
|
+
/**
|
|
2450
|
+
* Css variable map token
|
|
2451
|
+
*/
|
|
2295
2452
|
export declare interface CssVariableMapTokenType extends BaseToken {
|
|
2453
|
+
/**
|
|
2454
|
+
* @inheritdoc
|
|
2455
|
+
*/
|
|
2296
2456
|
typ: EnumToken.CssVariableDeclarationMapTokenType;
|
|
2457
|
+
/**
|
|
2458
|
+
* CSS Variables
|
|
2459
|
+
*/
|
|
2297
2460
|
vars: Token$1[];
|
|
2461
|
+
/**
|
|
2462
|
+
* From clause
|
|
2463
|
+
*/
|
|
2298
2464
|
from: Token$1[];
|
|
2299
2465
|
}
|
|
2300
2466
|
|
|
@@ -2302,6 +2468,9 @@ export declare interface CssVariableMapTokenType extends BaseToken {
|
|
|
2302
2468
|
* Function definition token
|
|
2303
2469
|
*/
|
|
2304
2470
|
export declare interface FunctionDefToken extends BaseToken {
|
|
2471
|
+
/**
|
|
2472
|
+
* @inheritdoc
|
|
2473
|
+
*/
|
|
2305
2474
|
typ:
|
|
2306
2475
|
| EnumToken.FunctionDefTokenType
|
|
2307
2476
|
| EnumToken.UrlFunctionTokenDefType
|
|
@@ -2313,7 +2482,13 @@ export declare interface FunctionDefToken extends BaseToken {
|
|
|
2313
2482
|
| EnumToken.MathFunctionTokenDefType
|
|
2314
2483
|
| EnumToken.PseudoClassFunctionTokenDefType
|
|
2315
2484
|
| EnumToken.TransformFunctionTokenDefType;
|
|
2485
|
+
/**
|
|
2486
|
+
* Name
|
|
2487
|
+
*/
|
|
2316
2488
|
nam: string;
|
|
2489
|
+
/**
|
|
2490
|
+
* Value
|
|
2491
|
+
*/
|
|
2317
2492
|
val: string;
|
|
2318
2493
|
}
|
|
2319
2494
|
|
|
@@ -2321,7 +2496,13 @@ export declare interface FunctionDefToken extends BaseToken {
|
|
|
2321
2496
|
* Raw node token
|
|
2322
2497
|
*/
|
|
2323
2498
|
export declare interface RawNodeToken extends BaseToken, EnumAstNodeStatus$1 {
|
|
2499
|
+
/**
|
|
2500
|
+
* @inheritdoc
|
|
2501
|
+
*/
|
|
2324
2502
|
typ: EnumToken.RawNodeTokenType;
|
|
2503
|
+
/**
|
|
2504
|
+
* Value
|
|
2505
|
+
*/
|
|
2325
2506
|
val: Token$1[];
|
|
2326
2507
|
}
|
|
2327
2508
|
|
|
@@ -2431,7 +2612,7 @@ export declare type Token$1 =
|
|
|
2431
2612
|
| MatchExpressionToken
|
|
2432
2613
|
| NameSpaceAttributeToken
|
|
2433
2614
|
| ComposesSelectorToken
|
|
2434
|
-
| CssVariableToken
|
|
2615
|
+
| CssVariableToken
|
|
2435
2616
|
| DashMatchToken
|
|
2436
2617
|
| EqualMatchToken
|
|
2437
2618
|
| LessThanToken
|
|
@@ -2491,16 +2672,16 @@ export declare interface BaseToken {
|
|
|
2491
2672
|
* location info
|
|
2492
2673
|
* @private
|
|
2493
2674
|
*/
|
|
2494
|
-
[LOC]?: SourceLocation;
|
|
2675
|
+
[LOC]?: SourceLocation | null;
|
|
2495
2676
|
/**
|
|
2496
2677
|
* parent node
|
|
2497
2678
|
* @private
|
|
2498
2679
|
*/
|
|
2499
|
-
[PARENT]?: AstNode$1;
|
|
2680
|
+
[PARENT]?: AstNode$1 | Token$1 | null;
|
|
2500
2681
|
/**
|
|
2501
2682
|
* root node
|
|
2502
2683
|
*/
|
|
2503
|
-
[ROOT]?: AstStyleSheet;
|
|
2684
|
+
[ROOT]?: AstStyleSheet | null;
|
|
2504
2685
|
/**
|
|
2505
2686
|
* prelude or selector tokens
|
|
2506
2687
|
* @private
|
|
@@ -2510,12 +2691,12 @@ export declare interface BaseToken {
|
|
|
2510
2691
|
* node state
|
|
2511
2692
|
* @private
|
|
2512
2693
|
*/
|
|
2513
|
-
[STATE]?: EnumAstNodeStatus;
|
|
2694
|
+
[STATE]?: EnumAstNodeStatus | null;
|
|
2514
2695
|
/**
|
|
2515
2696
|
* node syntax errors
|
|
2516
2697
|
* @private
|
|
2517
2698
|
*/
|
|
2518
|
-
[ERRORS]?: ErrorDescription[];
|
|
2699
|
+
[ERRORS]?: ErrorDescription[] | null;
|
|
2519
2700
|
/**
|
|
2520
2701
|
* property name
|
|
2521
2702
|
* @private
|
|
@@ -2534,7 +2715,7 @@ export declare interface BaseToken {
|
|
|
2534
2715
|
/**
|
|
2535
2716
|
* parent node
|
|
2536
2717
|
*/
|
|
2537
|
-
parent?: AstAtRule | astRule | AstKeyframesAtRule |
|
|
2718
|
+
parent?: AstAtRule | astRule | AstKeyframesAtRule | AstKeyframesRule | AstInvalidRule | AstInvalidAtRule | null;
|
|
2538
2719
|
/**
|
|
2539
2720
|
* @private
|
|
2540
2721
|
*/
|
|
@@ -2676,36 +2857,6 @@ export declare interface AstInvalidAtRule extends BaseToken, AstNodeStatus {
|
|
|
2676
2857
|
chi?: Array<AstNode$1>;
|
|
2677
2858
|
}
|
|
2678
2859
|
|
|
2679
|
-
/**
|
|
2680
|
-
* keyframe rule node
|
|
2681
|
-
*/
|
|
2682
|
-
export declare interface AstKeyFrameRule extends BaseToken, AstNodeStatus {
|
|
2683
|
-
/**
|
|
2684
|
-
* token type
|
|
2685
|
-
*/
|
|
2686
|
-
typ: EnumToken.KeyFramesRuleNodeType;
|
|
2687
|
-
/**
|
|
2688
|
-
* selector
|
|
2689
|
-
*/
|
|
2690
|
-
sel: string;
|
|
2691
|
-
/**
|
|
2692
|
-
* child nodes
|
|
2693
|
-
*/
|
|
2694
|
-
chi: Array<AstDeclaration | AstComment | AstInvalidDeclaration>;
|
|
2695
|
-
/**
|
|
2696
|
-
* optimized selector
|
|
2697
|
-
*/
|
|
2698
|
-
optimized?: OptimizedSelector;
|
|
2699
|
-
/**
|
|
2700
|
-
* raw selector
|
|
2701
|
-
*/
|
|
2702
|
-
raw?: RawSelectorTokens;
|
|
2703
|
-
/**
|
|
2704
|
-
* tokens
|
|
2705
|
-
*/
|
|
2706
|
-
tokens?: Token$1[];
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
2860
|
/**
|
|
2710
2861
|
* raw selector tokens
|
|
2711
2862
|
*/
|
|
@@ -2788,7 +2939,37 @@ export declare interface AstKeyframesRule extends BaseToken, AstNodeStatus {
|
|
|
2788
2939
|
/**
|
|
2789
2940
|
* token type
|
|
2790
2941
|
*/
|
|
2791
|
-
typ: EnumToken.
|
|
2942
|
+
typ: EnumToken.KeyframesRuleNodeType;
|
|
2943
|
+
/**
|
|
2944
|
+
* selector
|
|
2945
|
+
*/
|
|
2946
|
+
sel: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* child nodes
|
|
2949
|
+
*/
|
|
2950
|
+
chi: Array<AstDeclaration | AstComment | AstInvalidDeclaration>;
|
|
2951
|
+
/**
|
|
2952
|
+
* optimized selector
|
|
2953
|
+
*/
|
|
2954
|
+
optimized?: OptimizedSelector;
|
|
2955
|
+
/**
|
|
2956
|
+
* raw selector
|
|
2957
|
+
*/
|
|
2958
|
+
raw?: RawSelectorTokens;
|
|
2959
|
+
/**
|
|
2960
|
+
* tokens
|
|
2961
|
+
*/
|
|
2962
|
+
tokens?: Token$1[];
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* keyframe rule node
|
|
2967
|
+
*/
|
|
2968
|
+
export declare interface AstKeyframesRule extends BaseToken, AstNodeStatus {
|
|
2969
|
+
/**
|
|
2970
|
+
* token type
|
|
2971
|
+
*/
|
|
2972
|
+
typ: EnumToken.KeyframesRuleNodeType;
|
|
2792
2973
|
/**
|
|
2793
2974
|
* selector
|
|
2794
2975
|
*/
|
|
@@ -2837,7 +3018,7 @@ export declare type AstRuleList =
|
|
|
2837
3018
|
| AstAtRule
|
|
2838
3019
|
| AstRule
|
|
2839
3020
|
| AstKeyframesAtRule
|
|
2840
|
-
|
|
|
3021
|
+
| AstKeyframesRule
|
|
2841
3022
|
| AstInvalidRule;
|
|
2842
3023
|
|
|
2843
3024
|
/**
|
|
@@ -2865,12 +3046,13 @@ export declare type AstNode$1 =
|
|
|
2865
3046
|
| AstRule
|
|
2866
3047
|
| AstDeclaration
|
|
2867
3048
|
| AstKeyframesAtRule
|
|
2868
|
-
|
|
|
3049
|
+
| AstKeyframesRule
|
|
2869
3050
|
| AstInvalidRule
|
|
2870
3051
|
| AstInvalidAtRule
|
|
2871
3052
|
| AstInvalidDeclaration
|
|
2872
3053
|
| CssVariableToken
|
|
2873
|
-
| CssVariableImportTokenType
|
|
3054
|
+
| CssVariableImportTokenType
|
|
3055
|
+
| WhitespaceToken;
|
|
2874
3056
|
|
|
2875
3057
|
/**
|
|
2876
3058
|
* token search result
|
|
@@ -2992,7 +3174,7 @@ declare enum WalkerEvent {
|
|
|
2992
3174
|
* }
|
|
2993
3175
|
*
|
|
2994
3176
|
* const result = await transform(css);
|
|
2995
|
-
* for (const {node} of walk(result.ast, filter)) {
|
|
3177
|
+
* for (const {node} of walk(result.ast, filter, false)) {
|
|
2996
3178
|
*
|
|
2997
3179
|
* console.error([EnumToken[node.typ]]);
|
|
2998
3180
|
* }
|
|
@@ -3007,6 +3189,79 @@ declare enum WalkerEvent {
|
|
|
3007
3189
|
* ```
|
|
3008
3190
|
*/
|
|
3009
3191
|
declare function walk(node: AstNode$1, filter?: WalkerFilter | null, reverse?: boolean): Generator<WalkResult>;
|
|
3192
|
+
/**
|
|
3193
|
+
* Walk ast nodes
|
|
3194
|
+
* @param node initial node
|
|
3195
|
+
* @param filter control the walk process
|
|
3196
|
+
*
|
|
3197
|
+
* ```ts
|
|
3198
|
+
*
|
|
3199
|
+
* import {walk} from '@tbela99/css-parser';
|
|
3200
|
+
*
|
|
3201
|
+
* const css = `
|
|
3202
|
+
* body { color: color(from var(--base-color) display-p3 r calc(g + 0.24) calc(b + 0.15)); }
|
|
3203
|
+
*
|
|
3204
|
+
* html,
|
|
3205
|
+
* body {
|
|
3206
|
+
* line-height: 1.474;
|
|
3207
|
+
* }
|
|
3208
|
+
*
|
|
3209
|
+
* .ruler {
|
|
3210
|
+
*
|
|
3211
|
+
* height: 10px;
|
|
3212
|
+
* }
|
|
3213
|
+
* `;
|
|
3214
|
+
*
|
|
3215
|
+
* for (const {node, parent, root} of walk(ast)) {
|
|
3216
|
+
*
|
|
3217
|
+
* // do something with node
|
|
3218
|
+
* }
|
|
3219
|
+
* ```
|
|
3220
|
+
*
|
|
3221
|
+
* Using a {@link filter} function to control the ast traversal. the filter function returns a value of type {@link WalkerOption}.
|
|
3222
|
+
*
|
|
3223
|
+
* ```ts
|
|
3224
|
+
* import {EnumToken, transform, walk, WalkerOptionEnum} from '@tbela99/css-parser';
|
|
3225
|
+
*
|
|
3226
|
+
* const css = `
|
|
3227
|
+
* body { color: color(from var(--base-color) display-p3 r calc(g + 0.24) calc(b + 0.15)); }
|
|
3228
|
+
*
|
|
3229
|
+
* html,
|
|
3230
|
+
* body {
|
|
3231
|
+
* line-height: 1.474;
|
|
3232
|
+
* }
|
|
3233
|
+
*
|
|
3234
|
+
* .ruler {
|
|
3235
|
+
*
|
|
3236
|
+
* height: 10px;
|
|
3237
|
+
* }
|
|
3238
|
+
* `;
|
|
3239
|
+
*
|
|
3240
|
+
* function filter(node) {
|
|
3241
|
+
*
|
|
3242
|
+
* if (node.typ == EnumToken.AstRule && node.sel.includes('html')) {
|
|
3243
|
+
*
|
|
3244
|
+
* // skip the children of the current node
|
|
3245
|
+
* return WalkerOptionEnum.IgnoreChildren;
|
|
3246
|
+
* }
|
|
3247
|
+
* }
|
|
3248
|
+
*
|
|
3249
|
+
* const result = await transform(css);
|
|
3250
|
+
* for (const {node} of walk(result.ast, {filter, reverse: false})) {
|
|
3251
|
+
*
|
|
3252
|
+
* console.error([EnumToken[node.typ]]);
|
|
3253
|
+
* }
|
|
3254
|
+
*
|
|
3255
|
+
* // [ "StyleSheetNodeType" ]
|
|
3256
|
+
* // [ "RuleNodeType" ]
|
|
3257
|
+
* // [ "DeclarationNodeType" ]
|
|
3258
|
+
* // [ "RuleNodeType" ]
|
|
3259
|
+
* // [ "DeclarationNodeType" ]
|
|
3260
|
+
* // [ "RuleNodeType" ]
|
|
3261
|
+
* // [ "DeclarationNodeType" ]
|
|
3262
|
+
* ```
|
|
3263
|
+
*/
|
|
3264
|
+
declare function walk(node: AstNode$1, filter?: WalkerOptions | null): Generator<WalkResult>;
|
|
3010
3265
|
/**
|
|
3011
3266
|
* Walk ast node value tokens
|
|
3012
3267
|
* @param values
|
|
@@ -3060,24 +3315,40 @@ declare function walkValues(values: Token$1[], root?: AstNode$1 | Token$1 | null
|
|
|
3060
3315
|
type?: EnumToken | EnumToken[] | ((token: Token$1) => boolean);
|
|
3061
3316
|
}, reverse?: boolean): Generator<WalkAttributesResult>;
|
|
3062
3317
|
|
|
3318
|
+
/**
|
|
3319
|
+
* Generic visitor result
|
|
3320
|
+
*/
|
|
3063
3321
|
export declare type GenericVisitorSyncResult<T> = T | T[] | null;
|
|
3064
|
-
|
|
3322
|
+
/**
|
|
3323
|
+
* Generic visitor result
|
|
3324
|
+
*/
|
|
3325
|
+
export declare type GenericVisitorAsyncResult<T> = Promise<T> | Promise<T[]> | Promise<null>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Generic visitor result
|
|
3328
|
+
*/
|
|
3065
3329
|
export declare type GenericVisitorResult<T> = GenericVisitorSyncResult<T> | GenericVisitorAsyncResult<T>;
|
|
3066
3330
|
|
|
3067
|
-
|
|
3068
|
-
|
|
3331
|
+
/**
|
|
3332
|
+
* Generic visitor handler
|
|
3333
|
+
*/
|
|
3069
3334
|
export declare type GenericVisitorSyncHandler<T> = (
|
|
3070
3335
|
node: T,
|
|
3071
3336
|
parent?: AstNode | Token,
|
|
3072
3337
|
root?: AstNode | Token,
|
|
3073
3338
|
) => GenericVisitorSyncResult<T>;
|
|
3074
3339
|
|
|
3340
|
+
/**
|
|
3341
|
+
* Generic visitor handler
|
|
3342
|
+
*/
|
|
3075
3343
|
export declare type GenericVisitorAstNodeSyncHandlerMap<T> =
|
|
3076
3344
|
| Record<string, GenericVisitorSyncHandler<T>>
|
|
3077
3345
|
| GenericVisitorSyncHandler<T>
|
|
3078
3346
|
| { type: WalkerEvent; handler: GenericVisitorSyncHandler<T> }
|
|
3079
3347
|
| { type: WalkerEvent; handler: Record<string, GenericVisitorSyncHandler<T>> };
|
|
3080
3348
|
|
|
3349
|
+
/**
|
|
3350
|
+
* Generic visitor handler
|
|
3351
|
+
*/
|
|
3081
3352
|
export declare type ValueVisitorSyncHandler = GenericVisitorSyncHandler<Token>;
|
|
3082
3353
|
|
|
3083
3354
|
/**
|
|
@@ -3273,8 +3544,14 @@ export declare interface VisitorSyncNodeMap {
|
|
|
3273
3544
|
*/
|
|
3274
3545
|
Rule?: GenericVisitorAstNodeSyncHandlerMap<AstRule>;
|
|
3275
3546
|
|
|
3547
|
+
/**
|
|
3548
|
+
* keyframes rule visitor
|
|
3549
|
+
*/
|
|
3276
3550
|
KeyframesRule?: GenericVisitorAstNodeSyncHandlerMap<AstKeyframesRule>;
|
|
3277
3551
|
|
|
3552
|
+
/**
|
|
3553
|
+
* keyframes at-rule visitor
|
|
3554
|
+
*/
|
|
3278
3555
|
KeyframesAtRule?: GenericVisitorAstNodeSyncHandlerMap<AstKeyframesAtRule>;
|
|
3279
3556
|
|
|
3280
3557
|
/**
|
|
@@ -3329,22 +3606,32 @@ export declare interface VisitorSyncNodeMap {
|
|
|
3329
3606
|
* // body {color:#f3fff0}
|
|
3330
3607
|
* ```
|
|
3331
3608
|
*/
|
|
3332
|
-
[key: keyof typeof EnumToken]:
|
|
3609
|
+
[key: keyof typeof EnumToken]:
|
|
3610
|
+
| GenericVisitorAstNodeSyncHandlerMap<Token>
|
|
3611
|
+
| GenericVisitorAstNodeSyncHandlerMap<AstNode>;
|
|
3333
3612
|
}
|
|
3334
3613
|
|
|
3335
|
-
|
|
3614
|
+
/**
|
|
3615
|
+
* Generic visitor handler
|
|
3616
|
+
*/
|
|
3336
3617
|
export declare type GenericVisitorHandler<T> = (
|
|
3337
3618
|
node: T,
|
|
3338
3619
|
parent?: AstNode | Token,
|
|
3339
3620
|
root?: AstNode | Token,
|
|
3340
3621
|
) => GenericVisitorSyncResult<T> | GenericVisitorAsyncResult<T>;
|
|
3341
3622
|
|
|
3623
|
+
/**
|
|
3624
|
+
* Generic visitor handler
|
|
3625
|
+
*/
|
|
3342
3626
|
export declare type GenericVisitorAstNodeHandlerMap<T> =
|
|
3343
3627
|
| Record<string, GenericVisitorHandler<T>>
|
|
3344
3628
|
| GenericVisitorHandler<T>
|
|
3345
3629
|
| { type: WalkerEvent; handler: GenericVisitorHandler<T> }
|
|
3346
3630
|
| { type: WalkerEvent; handler: Record<string, GenericVisitorHandler<T>> };
|
|
3347
3631
|
|
|
3632
|
+
/**
|
|
3633
|
+
* Generic visitor handler
|
|
3634
|
+
*/
|
|
3348
3635
|
export declare type ValueVisitorHandler = GenericVisitorHandler<Token>;
|
|
3349
3636
|
|
|
3350
3637
|
/**
|
|
@@ -3628,10 +3915,14 @@ export declare interface VisitorNodeMap {
|
|
|
3628
3915
|
}
|
|
3629
3916
|
|
|
3630
3917
|
/**
|
|
3631
|
-
*
|
|
3632
|
-
* @internal
|
|
3918
|
+
* Generate and parse source map
|
|
3633
3919
|
*/
|
|
3634
3920
|
declare class SourceMap {
|
|
3921
|
+
/**
|
|
3922
|
+
*
|
|
3923
|
+
* @private
|
|
3924
|
+
*/
|
|
3925
|
+
private keys;
|
|
3635
3926
|
/**
|
|
3636
3927
|
* Last location
|
|
3637
3928
|
*/
|
|
@@ -3645,28 +3936,76 @@ declare class SourceMap {
|
|
|
3645
3936
|
* Sources map
|
|
3646
3937
|
* @private
|
|
3647
3938
|
*/
|
|
3648
|
-
private sourcesMap;
|
|
3939
|
+
private sourcesMap;
|
|
3940
|
+
/**
|
|
3941
|
+
* Sources content
|
|
3942
|
+
* @private
|
|
3943
|
+
*/
|
|
3944
|
+
private readonly sourcesContent;
|
|
3945
|
+
/**
|
|
3946
|
+
* Sources
|
|
3947
|
+
* @private
|
|
3948
|
+
*/
|
|
3949
|
+
private readonly sources;
|
|
3950
|
+
/**
|
|
3951
|
+
* Map
|
|
3952
|
+
* @private
|
|
3953
|
+
*
|
|
3954
|
+
*/
|
|
3955
|
+
private map;
|
|
3956
|
+
/**
|
|
3957
|
+
* Map
|
|
3958
|
+
* @private
|
|
3959
|
+
*
|
|
3960
|
+
*/
|
|
3961
|
+
private reverseMap;
|
|
3962
|
+
/**
|
|
3963
|
+
* Line
|
|
3964
|
+
* @private
|
|
3965
|
+
*/
|
|
3966
|
+
private line;
|
|
3967
|
+
/**
|
|
3968
|
+
* Constructor
|
|
3969
|
+
*/
|
|
3970
|
+
constructor();
|
|
3971
|
+
/**
|
|
3972
|
+
* Constructor
|
|
3973
|
+
* @param sourcemaps
|
|
3974
|
+
*/
|
|
3975
|
+
constructor(sourcemaps: string | SourceMapObject);
|
|
3976
|
+
/**
|
|
3977
|
+
* add source
|
|
3978
|
+
* @param id
|
|
3979
|
+
* @param fileName
|
|
3980
|
+
* @param content
|
|
3981
|
+
* @returns
|
|
3982
|
+
*/
|
|
3983
|
+
addSourceContent(id: number, fileName: string | null, content: string | null): void;
|
|
3649
3984
|
/**
|
|
3650
|
-
*
|
|
3651
|
-
* @
|
|
3985
|
+
* Add sourcemap
|
|
3986
|
+
* @param newLine
|
|
3987
|
+
* @param newColumn
|
|
3988
|
+
* @param srcId
|
|
3989
|
+
* @param ln
|
|
3990
|
+
* @param col
|
|
3652
3991
|
*/
|
|
3653
|
-
|
|
3992
|
+
add(newLine: number, newColumn: number, srcId: number, ln: number, col: number): void;
|
|
3654
3993
|
/**
|
|
3655
|
-
*
|
|
3656
|
-
* @
|
|
3994
|
+
* Add multiple sourcemaps
|
|
3995
|
+
* @param maps
|
|
3996
|
+
* @throws
|
|
3657
3997
|
*/
|
|
3658
|
-
|
|
3998
|
+
add(...maps: Array<[newLine: number, newColumn: number, srcId: number, ln: number, col: number]>): void;
|
|
3659
3999
|
/**
|
|
3660
|
-
*
|
|
3661
|
-
* @private
|
|
4000
|
+
* compute original positions
|
|
3662
4001
|
*/
|
|
3663
|
-
|
|
4002
|
+
computePositions(): void;
|
|
3664
4003
|
/**
|
|
3665
|
-
*
|
|
3666
|
-
* @param
|
|
3667
|
-
* @param
|
|
4004
|
+
* retrieve original sources, lines and columns
|
|
4005
|
+
* @param line generated line
|
|
4006
|
+
* @param column generated column
|
|
3668
4007
|
*/
|
|
3669
|
-
|
|
4008
|
+
find(line: number, column: number): Array<[string | null, number, number, string | null]> | null;
|
|
3670
4009
|
/**
|
|
3671
4010
|
* Convert to URL encoded string
|
|
3672
4011
|
*/
|
|
@@ -3689,7 +4028,7 @@ declare class LineMap {
|
|
|
3689
4028
|
* Constructor
|
|
3690
4029
|
* @param lines
|
|
3691
4030
|
*/
|
|
3692
|
-
constructor(lines
|
|
4031
|
+
constructor(lines?: number[]);
|
|
3693
4032
|
/**
|
|
3694
4033
|
* Compute line and column of the offset
|
|
3695
4034
|
* @param offset
|
|
@@ -3711,17 +4050,13 @@ declare class LineMap {
|
|
|
3711
4050
|
* add line start
|
|
3712
4051
|
*/
|
|
3713
4052
|
addLineStart(lineStart: number): void;
|
|
3714
|
-
/**
|
|
3715
|
-
* clone the linemap
|
|
3716
|
-
* @returns
|
|
3717
|
-
*/
|
|
3718
|
-
clone(): LineMap;
|
|
3719
4053
|
}
|
|
3720
4054
|
|
|
3721
4055
|
/**
|
|
3722
4056
|
* Source file helper class
|
|
3723
4057
|
*/
|
|
3724
4058
|
declare class SourceFile {
|
|
4059
|
+
private inputSourceMap;
|
|
3725
4060
|
/**
|
|
3726
4061
|
* Source file ID
|
|
3727
4062
|
*/
|
|
@@ -3740,7 +4075,6 @@ declare class SourceFile {
|
|
|
3740
4075
|
private content;
|
|
3741
4076
|
/**
|
|
3742
4077
|
* Constructor
|
|
3743
|
-
* @param id
|
|
3744
4078
|
* @param content
|
|
3745
4079
|
* @param lines
|
|
3746
4080
|
* @param file
|
|
@@ -3749,7 +4083,6 @@ declare class SourceFile {
|
|
|
3749
4083
|
/**
|
|
3750
4084
|
* Update source content
|
|
3751
4085
|
* @param content
|
|
3752
|
-
* @param lines
|
|
3753
4086
|
*/
|
|
3754
4087
|
append(content: string): void;
|
|
3755
4088
|
/**
|
|
@@ -3791,10 +4124,19 @@ declare class SourceFile {
|
|
|
3791
4124
|
* @param lineStart
|
|
3792
4125
|
*/
|
|
3793
4126
|
addLineStart(lineStart: number): void;
|
|
4127
|
+
/**
|
|
4128
|
+
* set input source map
|
|
4129
|
+
* @param inputSourceMap
|
|
4130
|
+
*/
|
|
4131
|
+
setInputSourceMap(inputSourceMap: SourceMapObject | string | null): void;
|
|
4132
|
+
/**
|
|
4133
|
+
* return input source map
|
|
4134
|
+
* @returns
|
|
4135
|
+
*/
|
|
4136
|
+
getInputSourceMap(): SourceMap | null;
|
|
3794
4137
|
}
|
|
3795
4138
|
|
|
3796
4139
|
export declare interface PropertyListOptions {
|
|
3797
|
-
|
|
3798
4140
|
removeDuplicateDeclarations?: boolean | string | string[];
|
|
3799
4141
|
computeShorthand?: boolean;
|
|
3800
4142
|
}
|
|
@@ -3803,11 +4145,6 @@ export declare interface PropertyListOptions {
|
|
|
3803
4145
|
* parse info
|
|
3804
4146
|
*/
|
|
3805
4147
|
export declare interface ParseInfo$1 {
|
|
3806
|
-
|
|
3807
|
-
/**
|
|
3808
|
-
* read buffer
|
|
3809
|
-
*/
|
|
3810
|
-
buffer: string;
|
|
3811
4148
|
/**
|
|
3812
4149
|
* stream
|
|
3813
4150
|
*/
|
|
@@ -3817,7 +4154,7 @@ export declare interface ParseInfo$1 {
|
|
|
3817
4154
|
* Source file
|
|
3818
4155
|
*/
|
|
3819
4156
|
source: SourceFile;
|
|
3820
|
-
|
|
4157
|
+
|
|
3821
4158
|
/**
|
|
3822
4159
|
* last token position
|
|
3823
4160
|
*/
|
|
@@ -4567,6 +4904,26 @@ interface BorderRadius {
|
|
|
4567
4904
|
keywords: string[];
|
|
4568
4905
|
}
|
|
4569
4906
|
|
|
4907
|
+
/**
|
|
4908
|
+
* node walker options
|
|
4909
|
+
*/
|
|
4910
|
+
export declare interface WalkerOptions {
|
|
4911
|
+
|
|
4912
|
+
/**
|
|
4913
|
+
* walk in reverse
|
|
4914
|
+
*/
|
|
4915
|
+
reverse?: boolean;
|
|
4916
|
+
|
|
4917
|
+
/**
|
|
4918
|
+
* Traverse node value tokens. If false, only traverse node children
|
|
4919
|
+
*/
|
|
4920
|
+
inludeValues?: boolean;
|
|
4921
|
+
/**
|
|
4922
|
+
* filter function to control the walk
|
|
4923
|
+
*/
|
|
4924
|
+
filter?: WalkerFilter;
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4570
4927
|
/**
|
|
4571
4928
|
* node walker option
|
|
4572
4929
|
*/
|
|
@@ -4598,19 +4955,55 @@ export declare type WalkerValueFilter = (
|
|
|
4598
4955
|
parents?: Generator<Token$1>,
|
|
4599
4956
|
) => WalkerOption | null;
|
|
4600
4957
|
|
|
4958
|
+
/**
|
|
4959
|
+
* walker result
|
|
4960
|
+
*/
|
|
4601
4961
|
export declare interface WalkResult {
|
|
4962
|
+
/**
|
|
4963
|
+
* current node
|
|
4964
|
+
*/
|
|
4602
4965
|
node: AstNode$1;
|
|
4966
|
+
/**
|
|
4967
|
+
* parent node
|
|
4968
|
+
*/
|
|
4603
4969
|
parent?: AstRuleList;
|
|
4970
|
+
/**
|
|
4971
|
+
* root node
|
|
4972
|
+
*/
|
|
4604
4973
|
root?: AstNode$1;
|
|
4974
|
+
/**
|
|
4975
|
+
* parent nodes
|
|
4976
|
+
*/
|
|
4605
4977
|
parents: Generator<AstNode$1>;
|
|
4606
4978
|
}
|
|
4607
4979
|
|
|
4980
|
+
/**
|
|
4981
|
+
* walker result
|
|
4982
|
+
*/
|
|
4608
4983
|
export declare interface WalkAttributesResult {
|
|
4984
|
+
/**
|
|
4985
|
+
* current node
|
|
4986
|
+
*/
|
|
4609
4987
|
value: Token$1;
|
|
4988
|
+
/**
|
|
4989
|
+
* previous node
|
|
4990
|
+
*/
|
|
4610
4991
|
previousValue: Token$1 | null;
|
|
4992
|
+
/**
|
|
4993
|
+
* next node
|
|
4994
|
+
*/
|
|
4611
4995
|
nextValue: Token$1 | null;
|
|
4996
|
+
/**
|
|
4997
|
+
* root node
|
|
4998
|
+
*/
|
|
4612
4999
|
root?: AstNode$1 | Token$1 | null;
|
|
5000
|
+
/**
|
|
5001
|
+
* parent node
|
|
5002
|
+
*/
|
|
4613
5003
|
parent: AstNode$1 | Token$1 | null;
|
|
5004
|
+
/**
|
|
5005
|
+
* parent nodes
|
|
5006
|
+
*/
|
|
4614
5007
|
parents: Generator<Token$1>;
|
|
4615
5008
|
}
|
|
4616
5009
|
|
|
@@ -5040,21 +5433,52 @@ export declare interface ParseInputStreamOptions {
|
|
|
5040
5433
|
input: string | ReadableStream<Uint8Array>;
|
|
5041
5434
|
}
|
|
5042
5435
|
|
|
5436
|
+
/**
|
|
5437
|
+
* Input options for string or stream
|
|
5438
|
+
* @internal
|
|
5439
|
+
*/
|
|
5043
5440
|
export declare interface ParseSourceOptions {
|
|
5441
|
+
/**
|
|
5442
|
+
* Source file to be used for sourcemap
|
|
5443
|
+
* @internal
|
|
5444
|
+
*/
|
|
5044
5445
|
sourcesMap?: Map<number, SourceFile>;
|
|
5446
|
+
/**
|
|
5447
|
+
* Source file to be used for sourcemap
|
|
5448
|
+
* @internal
|
|
5449
|
+
*/
|
|
5045
5450
|
source?: SourceFile | null;
|
|
5046
5451
|
}
|
|
5047
5452
|
|
|
5453
|
+
/**
|
|
5454
|
+
* Parser sourcemap options
|
|
5455
|
+
*/
|
|
5456
|
+
export declare interface ParserSourceMapOptions {
|
|
5457
|
+
/**
|
|
5458
|
+
* Include sourcemap in the ast. Sourcemap info is always generated
|
|
5459
|
+
*/
|
|
5460
|
+
sourcemap?: boolean | "inline";
|
|
5461
|
+
/**
|
|
5462
|
+
* Input source map
|
|
5463
|
+
*/
|
|
5464
|
+
inputSourceMap?: SourceMapObject | string;
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
/**
|
|
5468
|
+
* Sync parseroptions
|
|
5469
|
+
*/
|
|
5048
5470
|
export declare interface ParserSyncOptions
|
|
5049
|
-
extends
|
|
5471
|
+
extends
|
|
5472
|
+
MinifyOptions,
|
|
5473
|
+
ParserSourceMapOptions,
|
|
5474
|
+
MinifyFeatureOptions,
|
|
5475
|
+
ValidationOptions,
|
|
5476
|
+
PropertyListOptions,
|
|
5477
|
+
ParseSourceOptions {
|
|
5050
5478
|
/**
|
|
5051
5479
|
* Source file to be used for sourcemap
|
|
5052
5480
|
*/
|
|
5053
5481
|
src?: string;
|
|
5054
|
-
/**
|
|
5055
|
-
* Include sourcemap in the ast. Sourcemap info is always generated
|
|
5056
|
-
*/
|
|
5057
|
-
sourcemap?: boolean | "inline";
|
|
5058
5482
|
/**
|
|
5059
5483
|
* Remove at-rule charset
|
|
5060
5484
|
*/
|
|
@@ -5112,7 +5536,7 @@ export declare interface ParserSyncOptions
|
|
|
5112
5536
|
* Node visitor
|
|
5113
5537
|
* {@link VisitorSyncNodeMap | VisitorSyncNodeMap[]}
|
|
5114
5538
|
*/
|
|
5115
|
-
visitor?: VisitorSyncNodeMap | VisitorSyncNodeMap[];
|
|
5539
|
+
visitor?: GenericVisitorAstNodeSyncHandlerMap<T> | VisitorSyncNodeMap | VisitorSyncNodeMap[];
|
|
5116
5540
|
/**
|
|
5117
5541
|
* Abort signal
|
|
5118
5542
|
*
|
|
@@ -5177,7 +5601,11 @@ export declare interface ParserOptions extends ParserSyncOptions, ModuleAsyncOpt
|
|
|
5177
5601
|
* Node visitor
|
|
5178
5602
|
* {@link VisitorNodeMap | VisitorNodeMap[]}
|
|
5179
5603
|
*/
|
|
5180
|
-
visitor?:
|
|
5604
|
+
visitor?:
|
|
5605
|
+
| GenericVisitorAstNodeSyncHandlerMap<T>
|
|
5606
|
+
| GenericVisitorAstNodeHandlerMap<T>
|
|
5607
|
+
| VisitorNodeMap
|
|
5608
|
+
| VisitorNodeMap[];
|
|
5181
5609
|
}
|
|
5182
5610
|
|
|
5183
5611
|
/**
|
|
@@ -5256,6 +5684,11 @@ export declare interface ResolvedPath {
|
|
|
5256
5684
|
* Ast node render options
|
|
5257
5685
|
*/
|
|
5258
5686
|
export declare interface RenderOptions {
|
|
5687
|
+
/**
|
|
5688
|
+
* Source file to be used as CSS input file for sourcemap resolution
|
|
5689
|
+
*/
|
|
5690
|
+
src?: string;
|
|
5691
|
+
|
|
5259
5692
|
/**
|
|
5260
5693
|
* Minify css values.
|
|
5261
5694
|
*/
|
|
@@ -5429,7 +5862,7 @@ export declare interface ParseResult {
|
|
|
5429
5862
|
* CSS module variables
|
|
5430
5863
|
* @private
|
|
5431
5864
|
*/
|
|
5432
|
-
cssModuleVariables?: Record<string, CssVariableToken
|
|
5865
|
+
cssModuleVariables?: Record<string, CssVariableToken>;
|
|
5433
5866
|
|
|
5434
5867
|
/**
|
|
5435
5868
|
* css module import mapping
|
|
@@ -5665,69 +6098,108 @@ declare enum ResponseType$1 {
|
|
|
5665
6098
|
ArrayBuffer = 2
|
|
5666
6099
|
}
|
|
5667
6100
|
|
|
6101
|
+
/**
|
|
6102
|
+
* Validation syntax
|
|
6103
|
+
* @internal
|
|
6104
|
+
*/
|
|
5668
6105
|
export declare interface ValidationSyntaxNode {
|
|
6106
|
+
/**
|
|
6107
|
+
* mdn data syntax
|
|
6108
|
+
*/
|
|
5669
6109
|
syntax: string;
|
|
6110
|
+
/**
|
|
6111
|
+
* validation tokens
|
|
6112
|
+
*/
|
|
5670
6113
|
ast?: ValidationToken[];
|
|
6114
|
+
/**
|
|
6115
|
+
* descriptors
|
|
6116
|
+
*/
|
|
5671
6117
|
descriptors?: Record<string, Record<string, string>>;
|
|
5672
6118
|
}
|
|
5673
6119
|
|
|
6120
|
+
/**
|
|
6121
|
+
* Validation selector options
|
|
6122
|
+
* @internal
|
|
6123
|
+
*/
|
|
5674
6124
|
interface ValidationSelectorOptions extends ValidationOptions {
|
|
6125
|
+
/**
|
|
6126
|
+
* nested selector
|
|
6127
|
+
*/
|
|
5675
6128
|
nestedSelector?: boolean;
|
|
5676
6129
|
}
|
|
5677
6130
|
|
|
6131
|
+
/**
|
|
6132
|
+
* Validation media feature
|
|
6133
|
+
* @internal
|
|
6134
|
+
*/
|
|
5678
6135
|
export declare interface ValidationMediaFeature {
|
|
6136
|
+
/**
|
|
6137
|
+
* media feature type
|
|
6138
|
+
*/
|
|
5679
6139
|
type: MediaFeatureType;
|
|
6140
|
+
/**
|
|
6141
|
+
* media feature status
|
|
6142
|
+
*/
|
|
5680
6143
|
status?: string;
|
|
6144
|
+
/**
|
|
6145
|
+
* media feature category
|
|
6146
|
+
*/
|
|
5681
6147
|
category: string;
|
|
6148
|
+
/**
|
|
6149
|
+
* media feature values
|
|
6150
|
+
*/
|
|
5682
6151
|
values?: Array<string> | Array<number>;
|
|
5683
6152
|
}
|
|
5684
6153
|
|
|
6154
|
+
/**
|
|
6155
|
+
* Validation configuration
|
|
6156
|
+
* @internal
|
|
6157
|
+
*/
|
|
5685
6158
|
export declare type ValidationConfiguration = Record<
|
|
5686
6159
|
ValidationSyntaxGroupEnum,
|
|
5687
6160
|
ValidationSyntaxNode | Record<string, string[]> | Record<string, ValidationMediaFeature>
|
|
5688
6161
|
>;
|
|
5689
6162
|
|
|
6163
|
+
/**
|
|
6164
|
+
* Validation result
|
|
6165
|
+
* @internal
|
|
6166
|
+
*/
|
|
5690
6167
|
interface ValidationResult {
|
|
6168
|
+
/**
|
|
6169
|
+
* validation result
|
|
6170
|
+
*/
|
|
5691
6171
|
valid: SyntaxValidationResult;
|
|
6172
|
+
/**
|
|
6173
|
+
* node
|
|
6174
|
+
*/
|
|
5692
6175
|
node: AstNode$1 | Token$1 | null;
|
|
6176
|
+
/**
|
|
6177
|
+
* syntax
|
|
6178
|
+
*/
|
|
5693
6179
|
syntax: ValidationToken | string | null;
|
|
6180
|
+
/**
|
|
6181
|
+
* error
|
|
6182
|
+
*/
|
|
5694
6183
|
error: string;
|
|
6184
|
+
/**
|
|
6185
|
+
* cycle
|
|
6186
|
+
*/
|
|
5695
6187
|
cycle?: boolean;
|
|
5696
6188
|
}
|
|
5697
6189
|
|
|
6190
|
+
/**
|
|
6191
|
+
* Validation syntax result
|
|
6192
|
+
* @internal
|
|
6193
|
+
*/
|
|
5698
6194
|
interface ValidationSyntaxResult extends ValidationResult {
|
|
6195
|
+
/**
|
|
6196
|
+
* syntax
|
|
6197
|
+
*/
|
|
5699
6198
|
syntax: ValidationToken | string | null;
|
|
5700
|
-
context: Context<Token$1> | Token$1[];
|
|
5701
|
-
}
|
|
5702
|
-
|
|
5703
|
-
interface Context<Type> {
|
|
5704
|
-
index: number;
|
|
5705
|
-
|
|
5706
6199
|
/**
|
|
5707
|
-
*
|
|
6200
|
+
* context
|
|
5708
6201
|
*/
|
|
5709
|
-
|
|
5710
|
-
readonly length: number;
|
|
5711
|
-
|
|
5712
|
-
current<Type>(): Type | null;
|
|
5713
|
-
|
|
5714
|
-
update<Type>(context: Context<Type>): void;
|
|
5715
|
-
|
|
5716
|
-
consume<Type>(token: Type, howMany?: number): boolean;
|
|
5717
|
-
|
|
5718
|
-
peek<Type>(): Type | null;
|
|
5719
|
-
|
|
5720
|
-
// tokens<Type>(): Type[];
|
|
5721
|
-
|
|
5722
|
-
next<Type>(): Type | null;
|
|
5723
|
-
|
|
5724
|
-
consume<Type>(token: Type, howMany?: number): boolean;
|
|
5725
|
-
|
|
5726
|
-
slice<Type>(): Type[];
|
|
5727
|
-
|
|
5728
|
-
clone<Type>(): Context<Type>;
|
|
5729
|
-
|
|
5730
|
-
done(): boolean;
|
|
6202
|
+
context: ValidationContext<Token$1> | Token$1[];
|
|
5731
6203
|
}
|
|
5732
6204
|
|
|
5733
6205
|
/**
|
|
@@ -5793,6 +6265,9 @@ declare function parseString(src: string, options?: {
|
|
|
5793
6265
|
* render ast token
|
|
5794
6266
|
* @param token
|
|
5795
6267
|
* @param options
|
|
6268
|
+
* @param cache
|
|
6269
|
+
* @param reducer
|
|
6270
|
+
* @param errors
|
|
5796
6271
|
* @private
|
|
5797
6272
|
*/
|
|
5798
6273
|
declare function renderValue(token: Token$1, options?: RenderOptions, cache?: {
|
|
@@ -5833,7 +6308,7 @@ declare function okLabDistance(color1: ColorToken, color2: ColorToken): number |
|
|
|
5833
6308
|
declare function isOkLabClose(color1: ColorToken, color2: ColorToken, threshold?: number): boolean;
|
|
5834
6309
|
|
|
5835
6310
|
/**
|
|
5836
|
-
* Search the ast
|
|
6311
|
+
* Search the ast subtree and return the first match
|
|
5837
6312
|
*
|
|
5838
6313
|
* ```ts
|
|
5839
6314
|
* // find the first ast declaration node which name is 'aspect-ratio'
|
|
@@ -5865,6 +6340,11 @@ button {
|
|
|
5865
6340
|
*/
|
|
5866
6341
|
declare function find(ast: AstNode$1, matcher: (node: AstNode$1, parent?: AstNode$1 | null) => boolean): AstNode$1 | null;
|
|
5867
6342
|
/**
|
|
6343
|
+
*
|
|
6344
|
+
* @param ast
|
|
6345
|
+
* @param matcher
|
|
6346
|
+
* @returns
|
|
6347
|
+
*
|
|
5868
6348
|
* Search the ast sub-tree by checking each node's value token and return the first match
|
|
5869
6349
|
*
|
|
5870
6350
|
```ts
|
|
@@ -5890,10 +6370,6 @@ button {
|
|
|
5890
6370
|
console.log({node, value});
|
|
5891
6371
|
|
|
5892
6372
|
```
|
|
5893
|
-
*
|
|
5894
|
-
* @param ast
|
|
5895
|
-
* @param matcher
|
|
5896
|
-
* @returns
|
|
5897
6373
|
*/
|
|
5898
6374
|
declare function findByValue(ast: AstNode$1, matcher: AstValueMatcher): {
|
|
5899
6375
|
node: AstNode$1;
|
|
@@ -5988,8 +6464,78 @@ declare function replaceNodeOrValue(parent: BinaryExpressionToken | (AstNode$1 &
|
|
|
5988
6464
|
chi: Token$1[];
|
|
5989
6465
|
} | {
|
|
5990
6466
|
val: Token$1[];
|
|
6467
|
+
})) | (Token$1 & ({
|
|
6468
|
+
chi: Token$1[];
|
|
6469
|
+
} | {
|
|
6470
|
+
val: Token$1[];
|
|
5991
6471
|
})), node: Token$1, replacement: Token$1 | Token$1[]): boolean;
|
|
5992
6472
|
|
|
6473
|
+
/**
|
|
6474
|
+
*
|
|
6475
|
+
* @param node
|
|
6476
|
+
* @param key
|
|
6477
|
+
*/
|
|
6478
|
+
declare function getNodeProperty(node: AstNode$1, key: 'parent'): AstNode$1 | Token$1 | null;
|
|
6479
|
+
/**
|
|
6480
|
+
*
|
|
6481
|
+
* @param node
|
|
6482
|
+
* @param key
|
|
6483
|
+
*/
|
|
6484
|
+
declare function getNodeProperty(node: AstNode$1, key: 'location'): SourceLocation | null;
|
|
6485
|
+
/**
|
|
6486
|
+
*
|
|
6487
|
+
* @param node
|
|
6488
|
+
* @param key
|
|
6489
|
+
*/
|
|
6490
|
+
declare function getNodeProperty(node: AstNode$1, key: 'state'): EnumAstNodeStatus$1 | null;
|
|
6491
|
+
/**
|
|
6492
|
+
*
|
|
6493
|
+
* @param node
|
|
6494
|
+
* @param key
|
|
6495
|
+
*/
|
|
6496
|
+
declare function getNodeProperty(node: AstNode$1, key: 'errors'): ErrorDescription$1[] | null;
|
|
6497
|
+
/**
|
|
6498
|
+
*
|
|
6499
|
+
* @param node
|
|
6500
|
+
* @param key
|
|
6501
|
+
*/
|
|
6502
|
+
declare function getNodeProperty(node: AstNode$1, key: 'tokens'): Token$1[] | null;
|
|
6503
|
+
/**
|
|
6504
|
+
*
|
|
6505
|
+
* @param node
|
|
6506
|
+
* @param key
|
|
6507
|
+
* @param value
|
|
6508
|
+
*/
|
|
6509
|
+
declare function setNodeProperty(node: AstNode$1, key: 'parent', value: AstNode$1 | Token$1 | null): void;
|
|
6510
|
+
/**
|
|
6511
|
+
*
|
|
6512
|
+
* @param node
|
|
6513
|
+
* @param key
|
|
6514
|
+
* @param value
|
|
6515
|
+
*/
|
|
6516
|
+
declare function setNodeProperty(node: AstNode$1, key: 'location', value: SourceLocation | null): void;
|
|
6517
|
+
/**
|
|
6518
|
+
*
|
|
6519
|
+
* @param node
|
|
6520
|
+
* @param key
|
|
6521
|
+
* @param value
|
|
6522
|
+
*/
|
|
6523
|
+
declare function setNodeProperty(node: AstNode$1, key: 'state', value: EnumAstNodeStatus$1 | null): void;
|
|
6524
|
+
/**
|
|
6525
|
+
*
|
|
6526
|
+
* @param node
|
|
6527
|
+
* @param key
|
|
6528
|
+
* @param value
|
|
6529
|
+
*/
|
|
6530
|
+
declare function setNodeProperty(node: AstNode$1, key: 'errors', value: ErrorDescription$1[] | null): void;
|
|
6531
|
+
/**
|
|
6532
|
+
*
|
|
6533
|
+
* @param node
|
|
6534
|
+
* @param key
|
|
6535
|
+
* @param value
|
|
6536
|
+
*/
|
|
6537
|
+
declare function setNodeProperty(node: AstNode$1, key: 'tokens', value: Token$1[] | null): void;
|
|
6538
|
+
|
|
5993
6539
|
/**
|
|
5994
6540
|
* Load file or url
|
|
5995
6541
|
* @param url
|
|
@@ -6040,7 +6586,7 @@ declare function render(data: AstNode$1, options?: RenderOptions, mapping?: {
|
|
|
6040
6586
|
importMapping: Record<string, Record<string, string>> | null;
|
|
6041
6587
|
} | null): RenderResult;
|
|
6042
6588
|
/**
|
|
6043
|
-
* Parse
|
|
6589
|
+
* Parse CSS file
|
|
6044
6590
|
* @param file url or path
|
|
6045
6591
|
* @param options
|
|
6046
6592
|
* @param asStream load file as stream
|
|
@@ -6066,7 +6612,7 @@ declare function render(data: AstNode$1, options?: RenderOptions, mapping?: {
|
|
|
6066
6612
|
*/
|
|
6067
6613
|
declare const parseFile: (file: string, options?: ParserOptions, asStream?: boolean) => Promise<ParseResult>;
|
|
6068
6614
|
/**
|
|
6069
|
-
* Parse
|
|
6615
|
+
* Parse CSS string
|
|
6070
6616
|
* @param stream
|
|
6071
6617
|
* @param options
|
|
6072
6618
|
*
|
|
@@ -6074,72 +6620,69 @@ declare const parseFile: (file: string, options?: ParserOptions, asStream?: bool
|
|
|
6074
6620
|
*
|
|
6075
6621
|
* ```ts
|
|
6076
6622
|
*
|
|
6077
|
-
* import {
|
|
6623
|
+
* import {parseSync} from '@tbela99/css-parser';
|
|
6078
6624
|
*
|
|
6079
6625
|
* // css string
|
|
6080
|
-
* let result =
|
|
6626
|
+
* let result = parseSync(css, {nestingRules: true});
|
|
6081
6627
|
* console.log(result.ast);
|
|
6082
6628
|
* ```
|
|
6083
6629
|
*
|
|
6084
6630
|
*/
|
|
6085
6631
|
declare function parseSync(stream: string, options?: ParserSyncOptions): ParseResult;
|
|
6086
6632
|
/**
|
|
6087
|
-
* Parse
|
|
6088
|
-
* @param stream
|
|
6633
|
+
* Parse CSS string
|
|
6089
6634
|
* @param options
|
|
6090
6635
|
*
|
|
6091
6636
|
* Parsing a string
|
|
6092
6637
|
*
|
|
6093
6638
|
* ```ts
|
|
6094
6639
|
*
|
|
6095
|
-
* import {
|
|
6640
|
+
* import {parseSync} from '@tbela99/css-parser';
|
|
6096
6641
|
*
|
|
6097
6642
|
* // css string
|
|
6098
|
-
* let result =
|
|
6643
|
+
* let result = parseSync({input: css, nestingRules: true});
|
|
6099
6644
|
* console.log(result.ast);
|
|
6100
6645
|
* ```
|
|
6101
6646
|
*
|
|
6102
6647
|
*/
|
|
6103
6648
|
declare function parseSync(options: ParseInputOptions & ParserSyncOptions): ParseResult;
|
|
6104
6649
|
/**
|
|
6105
|
-
* Transform
|
|
6650
|
+
* Transform CSS
|
|
6106
6651
|
* @param css
|
|
6107
6652
|
* @param options
|
|
6108
6653
|
*
|
|
6109
6654
|
*
|
|
6110
6655
|
* ```ts
|
|
6111
6656
|
*
|
|
6112
|
-
* import {
|
|
6657
|
+
* import {transformSync} from '@tbela99/css-parser';
|
|
6113
6658
|
*
|
|
6114
6659
|
* // css string
|
|
6115
|
-
* const result =
|
|
6660
|
+
* const result = transformSync(css, {beautify: true});
|
|
6116
6661
|
* console.log(result.code);
|
|
6117
6662
|
* ```
|
|
6118
6663
|
*
|
|
6119
6664
|
*/
|
|
6120
6665
|
declare function transformSync(css: string, options?: TransformSyncOptions): TransformResult;
|
|
6121
6666
|
/**
|
|
6122
|
-
* Transform
|
|
6667
|
+
* Transform CSS
|
|
6123
6668
|
* @param options
|
|
6124
6669
|
*
|
|
6125
6670
|
* ```ts
|
|
6126
6671
|
*
|
|
6127
|
-
* import {
|
|
6672
|
+
* import {transformSync} from '@tbela99/css-parser';
|
|
6128
6673
|
*
|
|
6129
6674
|
* // css string
|
|
6130
|
-
* const result =
|
|
6675
|
+
* const result = transformSync({input: css, beautify: true});
|
|
6131
6676
|
* console.log(result.code);
|
|
6132
6677
|
* ```
|
|
6133
6678
|
*
|
|
6134
6679
|
*/
|
|
6135
6680
|
declare function transformSync(options: ParseInputOptions & TransformSyncOptions): TransformResult;
|
|
6136
6681
|
/**
|
|
6137
|
-
* Parse
|
|
6682
|
+
* Parse CSS
|
|
6138
6683
|
* @param stream
|
|
6139
6684
|
* @param options
|
|
6140
6685
|
*
|
|
6141
|
-
* @throws Error file not found
|
|
6142
|
-
*
|
|
6143
6686
|
* Example:
|
|
6144
6687
|
*
|
|
6145
6688
|
* ```ts
|
|
@@ -6151,7 +6694,7 @@ declare function transformSync(options: ParseInputOptions & TransformSyncOptions
|
|
|
6151
6694
|
* console.log(result.ast);
|
|
6152
6695
|
* ```
|
|
6153
6696
|
*
|
|
6154
|
-
* parsing a
|
|
6697
|
+
* parsing a ReadableStream
|
|
6155
6698
|
*
|
|
6156
6699
|
* ```ts
|
|
6157
6700
|
*
|
|
@@ -6166,7 +6709,7 @@ declare function transformSync(options: ParseInputOptions & TransformSyncOptions
|
|
|
6166
6709
|
* console.log(result.ast);
|
|
6167
6710
|
* ```
|
|
6168
6711
|
*
|
|
6169
|
-
*
|
|
6712
|
+
* Parsing a file as a ReadableStream
|
|
6170
6713
|
*
|
|
6171
6714
|
* ```ts
|
|
6172
6715
|
*
|
|
@@ -6180,8 +6723,7 @@ declare function transformSync(options: ParseInputOptions & TransformSyncOptions
|
|
|
6180
6723
|
*/
|
|
6181
6724
|
declare function parse(stream: string | ReadableStream<Uint8Array>, options?: ParserOptions): Promise<ParseResult>;
|
|
6182
6725
|
/**
|
|
6183
|
-
* Parse
|
|
6184
|
-
* @param stream
|
|
6726
|
+
* Parse CSS
|
|
6185
6727
|
* @param options
|
|
6186
6728
|
*
|
|
6187
6729
|
* @throws Error file not found
|
|
@@ -6213,8 +6755,7 @@ declare function parse(stream: string | ReadableStream<Uint8Array>, options?: Pa
|
|
|
6213
6755
|
*/
|
|
6214
6756
|
declare function parse(options: ParseInputFileOptions & ParserOptions): Promise<ParseResult>;
|
|
6215
6757
|
/**
|
|
6216
|
-
* Parse
|
|
6217
|
-
* @param stream
|
|
6758
|
+
* Parse CSS
|
|
6218
6759
|
* @param options
|
|
6219
6760
|
*
|
|
6220
6761
|
* Parsing a string
|
|
@@ -6255,7 +6796,7 @@ declare function parse(options: ParseInputFileOptions & ParserOptions): Promise<
|
|
|
6255
6796
|
*/
|
|
6256
6797
|
declare function parse(options: ParseInputStreamOptions & ParserOptions): Promise<ParseResult>;
|
|
6257
6798
|
/**
|
|
6258
|
-
* Transform
|
|
6799
|
+
* Transform CSS file
|
|
6259
6800
|
* @param file url or path
|
|
6260
6801
|
* @param options
|
|
6261
6802
|
* @param asStream load file as stream
|
|
@@ -6280,7 +6821,7 @@ declare function parse(options: ParseInputStreamOptions & ParserOptions): Promis
|
|
|
6280
6821
|
*/
|
|
6281
6822
|
declare const transformFile: (file: string, options?: TransformOptions, asStream?: boolean) => Promise<TransformResult>;
|
|
6282
6823
|
/**
|
|
6283
|
-
* Transform
|
|
6824
|
+
* Transform CSS
|
|
6284
6825
|
* @param css
|
|
6285
6826
|
* @param options
|
|
6286
6827
|
*
|
|
@@ -6324,8 +6865,7 @@ declare const transformFile: (file: string, options?: TransformOptions, asStream
|
|
|
6324
6865
|
*/
|
|
6325
6866
|
declare function transform(css: string | ReadableStream<Uint8Array>, options?: TransformOptions): Promise<TransformResult>;
|
|
6326
6867
|
/**
|
|
6327
|
-
* Transform
|
|
6328
|
-
* @param css
|
|
6868
|
+
* Transform CSS
|
|
6329
6869
|
* @param options
|
|
6330
6870
|
*
|
|
6331
6871
|
* Parsing a string
|
|
@@ -6354,7 +6894,7 @@ declare function transform(css: string | ReadableStream<Uint8Array>, options?: T
|
|
|
6354
6894
|
* console.log(result.code);
|
|
6355
6895
|
* ```
|
|
6356
6896
|
*
|
|
6357
|
-
*
|
|
6897
|
+
* Parse a file as a ReadableStream
|
|
6358
6898
|
*
|
|
6359
6899
|
* ```ts
|
|
6360
6900
|
*
|
|
@@ -6368,48 +6908,20 @@ declare function transform(css: string | ReadableStream<Uint8Array>, options?: T
|
|
|
6368
6908
|
*/
|
|
6369
6909
|
declare function transform(options: ParseInputStreamOptions & TransformOptions): Promise<TransformResult>;
|
|
6370
6910
|
/**
|
|
6371
|
-
* Transform
|
|
6372
|
-
* @param css
|
|
6911
|
+
* Transform CSS
|
|
6373
6912
|
* @param options
|
|
6374
6913
|
*
|
|
6375
|
-
* Parsing a
|
|
6376
|
-
*
|
|
6377
|
-
* ```ts
|
|
6378
|
-
*
|
|
6379
|
-
* import {transform} from '@tbela99/css-parser';
|
|
6380
|
-
*
|
|
6381
|
-
* // css string
|
|
6382
|
-
* const result = await transform({input: css});
|
|
6383
|
-
* console.log(result.code);
|
|
6384
|
-
* ```
|
|
6385
|
-
*
|
|
6386
|
-
* Parsing a Readable stream
|
|
6914
|
+
* Parsing a file
|
|
6387
6915
|
*
|
|
6388
6916
|
* ```ts
|
|
6389
6917
|
*
|
|
6390
6918
|
* import {transform} from '@tbela99/css-parser';
|
|
6391
|
-
* import {Readable} from "node:stream";
|
|
6392
|
-
*
|
|
6393
|
-
* // usage: node index.ts < styles.css or cat styles.css | node index.ts
|
|
6394
|
-
*
|
|
6395
|
-
* const readableStream = Readable.toWeb(process.stdin);
|
|
6396
|
-
* const result = await transform( {input: readableStream, beautify: true});
|
|
6397
|
-
*
|
|
6398
|
-
* console.log(result.code);
|
|
6399
|
-
* ```
|
|
6400
|
-
*
|
|
6401
|
-
* Example using fetch
|
|
6402
|
-
*
|
|
6403
|
-
* ```ts
|
|
6404
|
-
*
|
|
6405
|
-
* import {transform} from '@tbela99/css-parser';
|
|
6406
|
-
*
|
|
6407
|
-
* result = await transform({file: 'https://docs.deno.com/styles.css', beautify: true});
|
|
6408
6919
|
*
|
|
6920
|
+
* const result = await transform( {file: 'https://docs.deno.com/styles.css', beautify: true});
|
|
6409
6921
|
* console.log(result.code);
|
|
6410
6922
|
* ```
|
|
6411
6923
|
*/
|
|
6412
6924
|
declare function transform(options: ParseInputFileOptions & TransformOptions): Promise<TransformResult>;
|
|
6413
6925
|
|
|
6414
|
-
export { ColorType$1 as ColorType, EnumAstNodeStatus$1 as EnumAstNodeStatus, EnumToken, FeatureWalkMode, ModuleCaseTransformEnum, ModuleScopeEnumOptions, ResponseType$1 as ResponseType, SourceMap, ValidationLevel, WalkerEvent, WalkerOptionEnum, cloneNode, convertColor, dirname, expand, find, findAll, findByValue, findLast, isOkLabClose, load, minify, okLabDistance, parse, parseDeclarations, parseFile, parseString, parseSync, render, renderValue as renderToken, replaceNodeOrValue, resolve, transform, transformFile, transformSync, walk, walkValues };
|
|
6415
|
-
export type { AddToken, AndToken, AngleToken, AstAtRule, AstComment, AstDeclaration, AstInvalidAtRule, AstInvalidDeclaration, AstInvalidRule,
|
|
6926
|
+
export { ColorType$1 as ColorType, EnumAstNodeStatus$1 as EnumAstNodeStatus, EnumToken, FeatureWalkMode, ModuleCaseTransformEnum, ModuleScopeEnumOptions, ResponseType$1 as ResponseType, SourceMap, ValidationLevel, WalkerEvent, WalkerOptionEnum, cloneNode, convertColor, dirname, expand, find, findAll, findByValue, findLast, getNodeProperty, isOkLabClose, load, minify, okLabDistance, parse, parseDeclarations, parseFile, parseString, parseSync, render, renderValue as renderToken, replaceNodeOrValue, resolve, setNodeProperty, transform, transformFile, transformSync, walk, walkValues };
|
|
6927
|
+
export type { AddToken, AndToken, AngleToken, AstAtRule, AstComment, AstDeclaration, AstInvalidAtRule, AstInvalidDeclaration, AstInvalidRule, AstKeyframesAtRule, AstKeyframesRule, AstNode$1 as AstNode, AstNodeStatus, AstRule, AstRuleList, AstStyleSheet, AstValueMatcher, AtRuleToken, AtRuleVisitorHandler, AttrEndToken, AttrStartToken, AttrToken, Background, BackgroundAttachmentMapping, BackgroundPosition, BackgroundPositionClass, BackgroundPositionConstraints, BackgroundPositionMapping, BackgroundProperties, BackgroundRepeat, BackgroundRepeatMapping, BackgroundSize, BackgroundSizeMapping, BadCDOCommentToken, BadCommentToken, BadStringToken, BadUrlToken, BaseToken, BinaryExpressionNode, BinaryExpressionToken, BlockEndToken, BlockStartToken, Border, BorderColor, BorderColorClass, BorderProperties, BorderRadius, CDOCommentToken, ChildCombinatorToken, ClassSelectorToken, ColonToken, ColorToken, ColumnCombinatorToken, CommaToken, CommentToken, ComposesSelectorToken, ConstraintsMapping, ContainMatchToken, ContainerStyleRangeToken, CssVariableImportTokenType, CssVariableMapTokenType, CssVariableToken, DashMatchToken, DashedIdentToken, DeclarationVisitorHandler, DelimToken, DescendantCombinatorToken, DimensionToken, DivToken, DoubleColonToken, EOFToken, EndMatchToken, EqualMatchToken, ErrorDescription$1 as ErrorDescription, FlexToken, Font, FontFamily, FontProperties, FontWeight, FontWeightConstraints, FontWeightMapping, FractionToken, FrequencyToken, FunctionDefToken, FunctionImageToken, FunctionToken, FunctionURLToken, GenericVisitorAstNodeHandlerMap, GenericVisitorAstNodeSyncHandlerMap, GenericVisitorAsyncResult, GenericVisitorHandler, GenericVisitorResult, GenericVisitorSyncHandler, GenericVisitorSyncResult, GreaterThanOrEqualToken, GreaterThanToken, GridTemplateFuncToken, HashToken, IdentListToken, IdentToken, IfConditionToken, IfElseConditionToken, ImportantToken, IncludeMatchToken, InvalidAttrToken, InvalidClassSelectorToken, InvalidMediaQueryToken, LengthToken, LessThanOrEqualToken, LessThanToken, LineHeight, ListToken, LiteralToken, LoadResult, Map$1 as Map, MatchExpressionToken, MatchedSelector, MediaFeatureOnlyToken, MediaFeatureToken, MediaQueryConditionToken, MediaQueryUnaryFeatureToken, MediaRangeQueryToken, MinifyFeature, MinifyFeatureOptions, MinifyOptions, ModuleAsyncOptions, ModuleSyncOptions, MulToken, NameSpaceAttributeToken, NestingSelectorToken, NextSiblingCombinatorToken, NotToken, NumberToken, OptimizedSelector, OptimizedSelectorToken, OrToken, Outline, OutlineProperties, ParensEndToken, ParensStartToken, ParensToken, ParseInfo$1 as ParseInfo, ParseInputFileOptions, ParseInputOptions, ParseInputStreamOptions, ParseResult, ParseResultStats, ParseSourceOptions, ParseTokenOptions, ParserOptions, ParserSourceMapOptions, ParserSyncOptions, PercentageToken, Prefix, PropertiesConfig, PropertiesConfigProperties, PropertyListOptions, PropertyMapType, PropertySetType, PropertyType, PseudoClassFunctionToken, PseudoClassToken, PseudoElementToken, PseudoPageToken, PurpleBackgroundAttachment, RawNodeToken, RawSelectorTokens, RenderOptions, RenderResult, ResolutionToken, ResolvedPath, RuleVisitorHandler, SemiColonToken, Separator, ShorthandDef, ShorthandMapType, ShorthandProperties, ShorthandPropertyType, ShorthandType, SinglePropertyType, SinglePropertyTypeMapping, SourceLocation, SourceMapObject, StartMatchToken, StringToken, SubToken, SubsequentCombinatorToken, SupportsQueryConditionToken, SupportsQueryUnaryConditionToken, TimeToken, TimelineFunctionToken, TimingFunctionToken, Token$1 as Token, TokenSearchResult, TokenizeResult, TransformOptions, TransformResult, TransformSyncOptions, UnaryExpression, UnaryExpressionNode, UnclosedStringToken, UniversalSelectorToken, UrlToken, ValidationConfiguration, ValidationMediaFeature, ValidationOptions, ValidationResult, ValidationSelectorOptions, ValidationSyntaxNode, ValidationSyntaxResult, ValidationToken$1 as ValidationToken, Value, ValueVisitorHandler, ValueVisitorSyncHandler, VariableScopeInfo, VisitorNodeMap, VisitorSyncNodeMap, WalkAttributesResult, WalkResult, WalkerFilter, WalkerOption, WalkerOptions, WalkerValueFilter, WhenElseQueryConditionToken, WhenElseUnaryConditionToken, WhitespaceToken, WrappedValuesToken };
|