@danielx/civet 0.11.2 → 0.11.4
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 +24 -0
- package/README.md +3 -0
- package/dist/browser.js +301 -124
- package/dist/civet +91 -35
- package/dist/config.js +3 -0
- package/dist/config.mjs +3 -0
- package/dist/main.js +422 -194
- package/dist/main.mjs +422 -194
- package/dist/unplugin/unplugin.js +176 -3
- package/dist/unplugin/unplugin.mjs +183 -3
- package/package.json +6 -2
package/dist/main.js
CHANGED
|
@@ -61,7 +61,7 @@ var require_machine = __commonJS({
|
|
|
61
61
|
$N: () => $N2,
|
|
62
62
|
$P: () => $P2,
|
|
63
63
|
$Q: () => $Q2,
|
|
64
|
-
$R: () => $
|
|
64
|
+
$R: () => $R106,
|
|
65
65
|
$R$0: () => $R$02,
|
|
66
66
|
$S: () => $S2,
|
|
67
67
|
$T: () => $T2,
|
|
@@ -98,7 +98,7 @@ var require_machine = __commonJS({
|
|
|
98
98
|
return;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
function $
|
|
101
|
+
function $R106(regExp) {
|
|
102
102
|
return function(_ctx, state2) {
|
|
103
103
|
const { input, pos } = state2;
|
|
104
104
|
regExp.lastIndex = state2.pos;
|
|
@@ -2932,20 +2932,7 @@ function wrapTypeInApplication(t, id, raw) {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
function implicitFunctionBlock(f) {
|
|
2934
2934
|
if (f.abstract || f.block || f.signature?.optional) return;
|
|
2935
|
-
|
|
2936
|
-
let ancestor = parent;
|
|
2937
|
-
let child = f;
|
|
2938
|
-
if (ancestor?.type === "ExportDeclaration") {
|
|
2939
|
-
child = ancestor;
|
|
2940
|
-
ancestor = ancestor.parent;
|
|
2941
|
-
}
|
|
2942
|
-
const expressions = ancestor?.expressions ?? ancestor?.elements;
|
|
2943
|
-
const currentIndex = expressions?.findIndex(([, def]) => def === child);
|
|
2944
|
-
let following = currentIndex >= 0 && expressions[currentIndex + 1]?.[1];
|
|
2945
|
-
if (following?.type === "ExportDeclaration") {
|
|
2946
|
-
following = following.declaration;
|
|
2947
|
-
}
|
|
2948
|
-
if (f.type === following?.type && name != null && name === following.name) {
|
|
2935
|
+
if (followingOverloads(f).length) {
|
|
2949
2936
|
f.ts = true;
|
|
2950
2937
|
} else {
|
|
2951
2938
|
const block = makeEmptyBlock();
|
|
@@ -2955,6 +2942,66 @@ function implicitFunctionBlock(f) {
|
|
|
2955
2942
|
f.ts = false;
|
|
2956
2943
|
}
|
|
2957
2944
|
}
|
|
2945
|
+
function overloadsInDirection(f, direction) {
|
|
2946
|
+
if (!(f.name != null)) {
|
|
2947
|
+
return [];
|
|
2948
|
+
}
|
|
2949
|
+
let ancestor = f.parent;
|
|
2950
|
+
let child = f;
|
|
2951
|
+
if (ancestor?.type === "ExportDeclaration") {
|
|
2952
|
+
child = ancestor;
|
|
2953
|
+
ancestor = ancestor.parent;
|
|
2954
|
+
}
|
|
2955
|
+
if (!(ancestor?.type === "BlockStatement")) {
|
|
2956
|
+
return [];
|
|
2957
|
+
}
|
|
2958
|
+
const { expressions } = ancestor;
|
|
2959
|
+
let index = findChildIndex(expressions, child);
|
|
2960
|
+
if (!(index >= 0)) {
|
|
2961
|
+
return [];
|
|
2962
|
+
}
|
|
2963
|
+
if (direction < 0) {
|
|
2964
|
+
const results1 = [];
|
|
2965
|
+
while (--index >= 0) {
|
|
2966
|
+
let candidate = expressions[index][1];
|
|
2967
|
+
if (!candidate) {
|
|
2968
|
+
break;
|
|
2969
|
+
}
|
|
2970
|
+
if (candidate.type === "ExportDeclaration") {
|
|
2971
|
+
candidate = candidate.declaration;
|
|
2972
|
+
}
|
|
2973
|
+
if (!(candidate && candidate.type === f.type && candidate.name === f.name)) {
|
|
2974
|
+
break;
|
|
2975
|
+
}
|
|
2976
|
+
results1.push(candidate);
|
|
2977
|
+
}
|
|
2978
|
+
;
|
|
2979
|
+
return results1;
|
|
2980
|
+
} else {
|
|
2981
|
+
const results2 = [];
|
|
2982
|
+
while (++index < expressions.length) {
|
|
2983
|
+
let candidate = expressions[index][1];
|
|
2984
|
+
if (!candidate) {
|
|
2985
|
+
break;
|
|
2986
|
+
}
|
|
2987
|
+
if (candidate.type === "ExportDeclaration") {
|
|
2988
|
+
candidate = candidate.declaration;
|
|
2989
|
+
}
|
|
2990
|
+
if (!(candidate && candidate.type === f.type && candidate.name === f.name)) {
|
|
2991
|
+
break;
|
|
2992
|
+
}
|
|
2993
|
+
results2.push(candidate);
|
|
2994
|
+
}
|
|
2995
|
+
;
|
|
2996
|
+
return results2;
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
function precedingOverloads(f) {
|
|
3000
|
+
return overloadsInDirection(f, -1);
|
|
3001
|
+
}
|
|
3002
|
+
function followingOverloads(f) {
|
|
3003
|
+
return overloadsInDirection(f, 1);
|
|
3004
|
+
}
|
|
2958
3005
|
function processReturn(f, implicitReturns) {
|
|
2959
3006
|
let { returnType } = f.signature;
|
|
2960
3007
|
if (returnType && returnType.optional) {
|
|
@@ -3988,10 +4035,7 @@ function processParams(f) {
|
|
|
3988
4035
|
const classExpressions = ancestor.body.expressions;
|
|
3989
4036
|
let index2 = findChildIndex(classExpressions, f);
|
|
3990
4037
|
assert.notEqual(index2, -1, "Could not find constructor in class");
|
|
3991
|
-
|
|
3992
|
-
while (m7 = classExpressions[index2 - 1]?.[1], typeof m7 === "object" && m7 != null && "type" in m7 && m7.type === "MethodDefinition" && "name" in m7 && m7.name === "constructor") {
|
|
3993
|
-
index2--;
|
|
3994
|
-
}
|
|
4038
|
+
index2 -= precedingOverloads(f).length;
|
|
3995
4039
|
const fStatement = classExpressions[index2];
|
|
3996
4040
|
for (let ref20 = gatherRecursive(parameters, ($14) => $14.type === "Parameter"), i10 = 0, len9 = ref20.length; i10 < len9; i10++) {
|
|
3997
4041
|
const parameter = ref20[i10];
|
|
@@ -4086,10 +4130,11 @@ function findSuperCall(block) {
|
|
|
4086
4130
|
}
|
|
4087
4131
|
function processSignature(f) {
|
|
4088
4132
|
const { block, signature } = f;
|
|
4133
|
+
let addAsync = false;
|
|
4134
|
+
let addGenerator = false;
|
|
4089
4135
|
if (!f.async?.length && hasAwait(block)) {
|
|
4090
4136
|
if (f.async != null) {
|
|
4091
|
-
|
|
4092
|
-
signature.modifier.async = true;
|
|
4137
|
+
addAsync = true;
|
|
4093
4138
|
} else {
|
|
4094
4139
|
for (let ref23 = gatherRecursiveWithinFunction(block, ($17) => $17.type === "Await"), i13 = 0, len12 = ref23.length; i13 < len12; i13++) {
|
|
4095
4140
|
const a = ref23[i13];
|
|
@@ -4103,8 +4148,7 @@ function processSignature(f) {
|
|
|
4103
4148
|
}
|
|
4104
4149
|
if (!f.generator?.length && hasYield(block)) {
|
|
4105
4150
|
if (f.generator != null) {
|
|
4106
|
-
|
|
4107
|
-
signature.modifier.generator = true;
|
|
4151
|
+
addGenerator = true;
|
|
4108
4152
|
} else {
|
|
4109
4153
|
for (let ref24 = gatherRecursiveWithinFunction(block, ($18) => $18.type === "YieldExpression"), i14 = 0, len13 = ref24.length; i14 < len13; i14++) {
|
|
4110
4154
|
const y = ref24[i14];
|
|
@@ -4116,17 +4160,28 @@ function processSignature(f) {
|
|
|
4116
4160
|
}
|
|
4117
4161
|
}
|
|
4118
4162
|
}
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
signature.
|
|
4124
|
-
|
|
4163
|
+
for (let ref25 = [f, ...precedingOverloads(f)], i15 = 0, len14 = ref25.length; i15 < len14; i15++) {
|
|
4164
|
+
const overload = ref25[i15];
|
|
4165
|
+
if (addAsync && overload.async != null && !overload.async.length) {
|
|
4166
|
+
overload.async.push("async ");
|
|
4167
|
+
overload.signature.modifier.async = true;
|
|
4168
|
+
}
|
|
4169
|
+
if (addGenerator && overload.generator != null && !overload.generator.length) {
|
|
4170
|
+
overload.generator.push("*");
|
|
4171
|
+
overload.signature.modifier.generator = true;
|
|
4172
|
+
}
|
|
4173
|
+
if (overload.signature.modifier.async && !overload.signature.modifier.generator && overload.signature.returnType && !isPromiseType(overload.signature.returnType.t)) {
|
|
4174
|
+
replaceNode(
|
|
4175
|
+
overload.signature.returnType.t,
|
|
4176
|
+
wrapTypeInPromise(overload.signature.returnType.t),
|
|
4177
|
+
overload.signature.returnType
|
|
4178
|
+
);
|
|
4179
|
+
}
|
|
4125
4180
|
}
|
|
4126
4181
|
}
|
|
4127
4182
|
function processFunctions(statements, config2) {
|
|
4128
|
-
for (let
|
|
4129
|
-
const f =
|
|
4183
|
+
for (let ref26 = gatherRecursiveAll(statements, ($20) => $20.type === "FunctionExpression" || $20.type === "ArrowFunction" || $20.type === "MethodDefinition"), i16 = 0, len15 = ref26.length; i16 < len15; i16++) {
|
|
4184
|
+
const f = ref26[i16];
|
|
4130
4185
|
if (f.type === "FunctionExpression" || f.type === "MethodDefinition") {
|
|
4131
4186
|
implicitFunctionBlock(f);
|
|
4132
4187
|
}
|
|
@@ -4185,9 +4240,9 @@ function expressionizeIteration(exp) {
|
|
|
4185
4240
|
}
|
|
4186
4241
|
let done;
|
|
4187
4242
|
if (!async) {
|
|
4188
|
-
let
|
|
4189
|
-
if ((
|
|
4190
|
-
const { block: parentBlock, index } =
|
|
4243
|
+
let ref27;
|
|
4244
|
+
if ((ref27 = blockContainingStatement(exp)) && typeof ref27 === "object" && "block" in ref27 && "index" in ref27) {
|
|
4245
|
+
const { block: parentBlock, index } = ref27;
|
|
4191
4246
|
statements[0][0] = parentBlock.expressions[index][0];
|
|
4192
4247
|
parentBlock.expressions.splice(index, index + 1 - index, ...statements);
|
|
4193
4248
|
updateParentPointers(parentBlock);
|
|
@@ -4204,8 +4259,8 @@ function expressionizeIteration(exp) {
|
|
|
4204
4259
|
}
|
|
4205
4260
|
}
|
|
4206
4261
|
function processIterationExpressions(statements) {
|
|
4207
|
-
for (let
|
|
4208
|
-
const s =
|
|
4262
|
+
for (let ref28 = gatherRecursiveAll(statements, ($21) => $21.type === "IterationExpression"), i17 = 0, len16 = ref28.length; i17 < len16; i17++) {
|
|
4263
|
+
const s = ref28[i17];
|
|
4209
4264
|
expressionizeIteration(s);
|
|
4210
4265
|
}
|
|
4211
4266
|
}
|
|
@@ -4228,13 +4283,13 @@ function processCoffeeDo(ws, expression) {
|
|
|
4228
4283
|
if (typeof expression === "object" && expression != null && "type" in expression && expression.type === "ArrowFunction" || typeof expression === "object" && expression != null && "type" in expression && expression.type === "FunctionExpression") {
|
|
4229
4284
|
let { parameters } = expression;
|
|
4230
4285
|
const parameterList = parameters.parameters;
|
|
4231
|
-
const
|
|
4232
|
-
for (let
|
|
4233
|
-
let parameter = parameterList[
|
|
4286
|
+
const results3 = [];
|
|
4287
|
+
for (let i18 = 0, len17 = parameterList.length; i18 < len17; i18++) {
|
|
4288
|
+
let parameter = parameterList[i18];
|
|
4234
4289
|
if (typeof parameter === "object" && parameter != null && "type" in parameter && parameter.type === "Parameter") {
|
|
4235
|
-
let
|
|
4236
|
-
if (
|
|
4237
|
-
const initializer =
|
|
4290
|
+
let ref29;
|
|
4291
|
+
if (ref29 = parameter.initializer) {
|
|
4292
|
+
const initializer = ref29;
|
|
4238
4293
|
args.push(initializer.expression, parameter.delim);
|
|
4239
4294
|
parameter = {
|
|
4240
4295
|
...parameter,
|
|
@@ -4247,10 +4302,10 @@ function processCoffeeDo(ws, expression) {
|
|
|
4247
4302
|
));
|
|
4248
4303
|
}
|
|
4249
4304
|
}
|
|
4250
|
-
|
|
4305
|
+
results3.push(parameter);
|
|
4251
4306
|
}
|
|
4252
4307
|
;
|
|
4253
|
-
const newParameterList =
|
|
4308
|
+
const newParameterList = results3;
|
|
4254
4309
|
const newParameters = {
|
|
4255
4310
|
...parameters,
|
|
4256
4311
|
parameters: newParameterList,
|
|
@@ -9186,12 +9241,16 @@ var grammar = {
|
|
|
9186
9241
|
CommaDelimiter,
|
|
9187
9242
|
OptionalCommaDelimiter,
|
|
9188
9243
|
ArgumentList,
|
|
9244
|
+
PostfixedArgumentList,
|
|
9189
9245
|
NestedArguments,
|
|
9190
9246
|
NestedArgumentList,
|
|
9191
9247
|
NestedArgument,
|
|
9192
9248
|
SingleLineArgumentExpressions,
|
|
9193
9249
|
WArgumentPart,
|
|
9250
|
+
SingleLinePostfixedArgumentExpressions,
|
|
9251
|
+
WPostfixedArgumentPart,
|
|
9194
9252
|
ArgumentPart,
|
|
9253
|
+
PostfixedArgumentPart,
|
|
9195
9254
|
BinaryOpExpression,
|
|
9196
9255
|
BinaryOpNotDedented,
|
|
9197
9256
|
BinaryOpRHS,
|
|
@@ -9574,6 +9633,7 @@ var grammar = {
|
|
|
9574
9633
|
Debugger,
|
|
9575
9634
|
MaybeNestedNonPipelineExpression,
|
|
9576
9635
|
MaybeNestedPostfixedExpression,
|
|
9636
|
+
MaybeNestedPostfixedCommaExpression,
|
|
9577
9637
|
NestedPostfixedExpressionNoTrailing,
|
|
9578
9638
|
MaybeNestedExpression,
|
|
9579
9639
|
MaybeParenNestedExpression,
|
|
@@ -9629,6 +9689,8 @@ var grammar = {
|
|
|
9629
9689
|
StringLiteral,
|
|
9630
9690
|
DoubleStringCharacters,
|
|
9631
9691
|
SingleStringCharacters,
|
|
9692
|
+
SingleLineStringLiteral,
|
|
9693
|
+
UnclosedSingleLineStringLiteral,
|
|
9632
9694
|
TripleDoubleStringContents,
|
|
9633
9695
|
CoffeeTripleDoubleStringCharacters,
|
|
9634
9696
|
TripleDoubleStringCharacters,
|
|
@@ -10290,7 +10352,7 @@ var $R30 = (0, import_lib2.$R)(new RegExp("[:.]", "suy"));
|
|
|
10290
10352
|
var $R31 = (0, import_lib2.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy"));
|
|
10291
10353
|
var $R32 = (0, import_lib2.$R)(new RegExp("(?:loop|while|until|for|do)(?!\\p{ID_Continue})", "suy"));
|
|
10292
10354
|
var $R33 = (0, import_lib2.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy"));
|
|
10293
|
-
var $R34 = (0, import_lib2.$R)(new RegExp(
|
|
10355
|
+
var $R34 = (0, import_lib2.$R)(new RegExp(`[^;"'\\s=>]+`, "suy"));
|
|
10294
10356
|
var $R35 = (0, import_lib2.$R)(new RegExp("(?=[0-9.])", "suy"));
|
|
10295
10357
|
var $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
|
|
10296
10358
|
var $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
|
|
@@ -10304,62 +10366,64 @@ var $R44 = (0, import_lib2.$R)(new RegExp("(?=[0-9])", "suy"));
|
|
|
10304
10366
|
var $R45 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
10305
10367
|
var $R46 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"])*', "suy"));
|
|
10306
10368
|
var $R47 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'])*", "suy"));
|
|
10307
|
-
var $R48 = (0, import_lib2.$R)(new RegExp('(
|
|
10308
|
-
var $R49 = (0, import_lib2.$R)(new RegExp(
|
|
10309
|
-
var $R50 = (0, import_lib2.$R)(new RegExp(
|
|
10310
|
-
var $R51 = (0, import_lib2.$R)(new RegExp('(
|
|
10311
|
-
var $R52 = (0, import_lib2.$R)(new RegExp("(
|
|
10312
|
-
var $R53 = (0, import_lib2.$R)(new RegExp(
|
|
10313
|
-
var $R54 = (0, import_lib2.$R)(new RegExp("[
|
|
10314
|
-
var $R55 = (0, import_lib2.$R)(new RegExp("
|
|
10315
|
-
var $R56 = (0, import_lib2.$R)(new RegExp("[
|
|
10316
|
-
var $R57 = (0, import_lib2.$R)(new RegExp("
|
|
10317
|
-
var $R58 = (0, import_lib2.$R)(new RegExp("
|
|
10318
|
-
var $R59 = (0, import_lib2.$R)(new RegExp("
|
|
10319
|
-
var $R60 = (0, import_lib2.$R)(new RegExp("(
|
|
10320
|
-
var $R61 = (0, import_lib2.$R)(new RegExp("(
|
|
10321
|
-
var $R62 = (0, import_lib2.$R)(new RegExp("(
|
|
10322
|
-
var $R63 = (0, import_lib2.$R)(new RegExp("(
|
|
10323
|
-
var $R64 = (0, import_lib2.$R)(new RegExp("(
|
|
10324
|
-
var $R65 = (0, import_lib2.$R)(new RegExp("(?:
|
|
10325
|
-
var $R66 = (0, import_lib2.$R)(new RegExp("(?:
|
|
10326
|
-
var $R67 = (0, import_lib2.$R)(new RegExp("(?:
|
|
10327
|
-
var $R68 = (0, import_lib2.$R)(new RegExp("(
|
|
10328
|
-
var $R69 = (0, import_lib2.$R)(new RegExp("
|
|
10329
|
-
var $R70 = (0, import_lib2.$R)(new RegExp("
|
|
10330
|
-
var $R71 = (0, import_lib2.$R)(new RegExp("
|
|
10331
|
-
var $R72 = (0, import_lib2.$R)(new RegExp("
|
|
10332
|
-
var $R73 = (0, import_lib2.$R)(new RegExp("
|
|
10333
|
-
var $R74 = (0, import_lib2.$R)(new RegExp("
|
|
10334
|
-
var $R75 = (0, import_lib2.$R)(new RegExp("(
|
|
10335
|
-
var $R76 = (0, import_lib2.$R)(new RegExp("(
|
|
10336
|
-
var $R77 = (0, import_lib2.$R)(new RegExp("(
|
|
10337
|
-
var $R78 = (0, import_lib2.$R)(new RegExp("
|
|
10338
|
-
var $R79 = (0, import_lib2.$R)(new RegExp("
|
|
10339
|
-
var $R80 = (0, import_lib2.$R)(new RegExp("
|
|
10340
|
-
var $R81 = (0, import_lib2.$R)(new RegExp("
|
|
10341
|
-
var $R82 = (0, import_lib2.$R)(new RegExp("
|
|
10342
|
-
var $R83 = (0, import_lib2.$R)(new RegExp("[
|
|
10343
|
-
var $R84 = (0, import_lib2.$R)(new RegExp("[\\
|
|
10344
|
-
var $R85 = (0, import_lib2.$R)(new RegExp("
|
|
10345
|
-
var $R86 = (0, import_lib2.$R)(new RegExp(
|
|
10346
|
-
var $R87 = (0, import_lib2.$R)(new RegExp("[
|
|
10347
|
-
var $R88 = (0, import_lib2.$R)(new RegExp("[
|
|
10348
|
-
var $R89 = (0, import_lib2.$R)(new RegExp("
|
|
10349
|
-
var $R90 = (0, import_lib2.$R)(new RegExp("[
|
|
10350
|
-
var $R91 = (0, import_lib2.$R)(new RegExp("[
|
|
10351
|
-
var $R92 = (0, import_lib2.$R)(new RegExp("
|
|
10352
|
-
var $R93 = (0, import_lib2.$R)(new RegExp("[
|
|
10353
|
-
var $R94 = (0, import_lib2.$R)(new RegExp("(
|
|
10354
|
-
var $R95 = (0, import_lib2.$R)(new RegExp("
|
|
10355
|
-
var $R96 = (0, import_lib2.$R)(new RegExp("
|
|
10356
|
-
var $R97 = (0, import_lib2.$R)(new RegExp("
|
|
10357
|
-
var $R98 = (0, import_lib2.$R)(new RegExp("[\\
|
|
10358
|
-
var $R99 = (0, import_lib2.$R)(new RegExp("
|
|
10359
|
-
var $R100 = (0, import_lib2.$R)(new RegExp("
|
|
10360
|
-
var $R101 = (0, import_lib2.$R)(new RegExp("(
|
|
10361
|
-
var $R102 = (0, import_lib2.$R)(new RegExp("
|
|
10362
|
-
var $R103 = (0, import_lib2.$R)(new RegExp("[
|
|
10369
|
+
var $R48 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"\\n])*', "suy"));
|
|
10370
|
+
var $R49 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'\\n])*", "suy"));
|
|
10371
|
+
var $R50 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy"));
|
|
10372
|
+
var $R51 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
|
|
10373
|
+
var $R52 = (0, import_lib2.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy"));
|
|
10374
|
+
var $R53 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy"));
|
|
10375
|
+
var $R54 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy"));
|
|
10376
|
+
var $R55 = (0, import_lib2.$R)(new RegExp("(?:\\\\.)", "suy"));
|
|
10377
|
+
var $R56 = (0, import_lib2.$R)(new RegExp("[\\s]+", "suy"));
|
|
10378
|
+
var $R57 = (0, import_lib2.$R)(new RegExp("\\/(?!\\/\\/)", "suy"));
|
|
10379
|
+
var $R58 = (0, import_lib2.$R)(new RegExp("[^[\\/\\s#$\\\\]+|[#$]", "suy"));
|
|
10380
|
+
var $R59 = (0, import_lib2.$R)(new RegExp("[*\\/\\r\\n]", "suy"));
|
|
10381
|
+
var $R60 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy"));
|
|
10382
|
+
var $R61 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
|
|
10383
|
+
var $R62 = (0, import_lib2.$R)(new RegExp("(?=[`'\"])", "suy"));
|
|
10384
|
+
var $R63 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
|
|
10385
|
+
var $R64 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
|
|
10386
|
+
var $R65 = (0, import_lib2.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
|
|
10387
|
+
var $R66 = (0, import_lib2.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
|
|
10388
|
+
var $R67 = (0, import_lib2.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
|
|
10389
|
+
var $R68 = (0, import_lib2.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
|
|
10390
|
+
var $R69 = (0, import_lib2.$R)(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
|
|
10391
|
+
var $R70 = (0, import_lib2.$R)(new RegExp("(?=\\/|#)", "suy"));
|
|
10392
|
+
var $R71 = (0, import_lib2.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
|
|
10393
|
+
var $R72 = (0, import_lib2.$R)(new RegExp(".", "suy"));
|
|
10394
|
+
var $R73 = (0, import_lib2.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
|
|
10395
|
+
var $R74 = (0, import_lib2.$R)(new RegExp("[^]*?###", "suy"));
|
|
10396
|
+
var $R75 = (0, import_lib2.$R)(new RegExp("###(?!#)", "suy"));
|
|
10397
|
+
var $R76 = (0, import_lib2.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy"));
|
|
10398
|
+
var $R77 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\/\\\\#])", "suy"));
|
|
10399
|
+
var $R78 = (0, import_lib2.$R)(new RegExp("(?=\\s|\\/|#)", "suy"));
|
|
10400
|
+
var $R79 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Continue})", "suy"));
|
|
10401
|
+
var $R80 = (0, import_lib2.$R)(new RegExp("[=:]", "suy"));
|
|
10402
|
+
var $R81 = (0, import_lib2.$R)(new RegExp("['\u2019]s", "suy"));
|
|
10403
|
+
var $R82 = (0, import_lib2.$R)(new RegExp("\\s", "suy"));
|
|
10404
|
+
var $R83 = (0, import_lib2.$R)(new RegExp("(?=[<])", "suy"));
|
|
10405
|
+
var $R84 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
|
|
10406
|
+
var $R85 = (0, import_lib2.$R)(new RegExp("[!+-]", "suy"));
|
|
10407
|
+
var $R86 = (0, import_lib2.$R)(new RegExp("[\\s>]|\\/>", "suy"));
|
|
10408
|
+
var $R87 = (0, import_lib2.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
|
|
10409
|
+
var $R88 = (0, import_lib2.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy"));
|
|
10410
|
+
var $R89 = (0, import_lib2.$R)(new RegExp("[<>]", "suy"));
|
|
10411
|
+
var $R90 = (0, import_lib2.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
|
|
10412
|
+
var $R91 = (0, import_lib2.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
|
|
10413
|
+
var $R92 = (0, import_lib2.$R)(new RegExp("[^{}<>\\r\\n]+", "suy"));
|
|
10414
|
+
var $R93 = (0, import_lib2.$R)(new RegExp("[+-]?", "suy"));
|
|
10415
|
+
var $R94 = (0, import_lib2.$R)(new RegExp("(?=if|unless)", "suy"));
|
|
10416
|
+
var $R95 = (0, import_lib2.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy"));
|
|
10417
|
+
var $R96 = (0, import_lib2.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
|
|
10418
|
+
var $R97 = (0, import_lib2.$R)(new RegExp("const|in|out", "suy"));
|
|
10419
|
+
var $R98 = (0, import_lib2.$R)(new RegExp("#![^\\r\\n]*", "suy"));
|
|
10420
|
+
var $R99 = (0, import_lib2.$R)(new RegExp("[\\t ]*", "suy"));
|
|
10421
|
+
var $R100 = (0, import_lib2.$R)(new RegExp("[\\s]*", "suy"));
|
|
10422
|
+
var $R101 = (0, import_lib2.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy"));
|
|
10423
|
+
var $R102 = (0, import_lib2.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy"));
|
|
10424
|
+
var $R103 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy"));
|
|
10425
|
+
var $R104 = (0, import_lib2.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
10426
|
+
var $R105 = (0, import_lib2.$R)(new RegExp("[^]*", "suy"));
|
|
10363
10427
|
var Program$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
10364
10428
|
var reset = $1;
|
|
10365
10429
|
var init = $2;
|
|
@@ -10589,7 +10653,7 @@ var ImplicitArguments$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(ApplicationSt
|
|
|
10589
10653
|
function ImplicitArguments(ctx, state2) {
|
|
10590
10654
|
return (0, import_lib2.$EVENT)(ctx, state2, "ImplicitArguments", ImplicitArguments$0);
|
|
10591
10655
|
}
|
|
10592
|
-
var ExplicitArguments$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(OpenParen, AllowAll, (0, import_lib2.$E)((0, import_lib2.$S)(
|
|
10656
|
+
var ExplicitArguments$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(OpenParen, AllowAll, (0, import_lib2.$E)((0, import_lib2.$S)(PostfixedArgumentList, (0, import_lib2.$E)((0, import_lib2.$S)(__, Comma)))), __, RestoreAll, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
10593
10657
|
var open = $1;
|
|
10594
10658
|
var args = $3;
|
|
10595
10659
|
var ws = $4;
|
|
@@ -10727,6 +10791,35 @@ var ArgumentList$$ = [ArgumentList$0, ArgumentList$1, ArgumentList$2];
|
|
|
10727
10791
|
function ArgumentList(ctx, state2) {
|
|
10728
10792
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ArgumentList", ArgumentList$$);
|
|
10729
10793
|
}
|
|
10794
|
+
var PostfixedArgumentList$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(EOS), PostfixedArgumentPart, (0, import_lib2.$Q)((0, import_lib2.$S)(CommaDelimiter, (0, import_lib2.$N)(EOS), (0, import_lib2.$E)(_), PostfixedArgumentPart)), (0, import_lib2.$S)(CommaDelimiter, NestedArguments), (0, import_lib2.$Q)((0, import_lib2.$S)(OptionalCommaDelimiter, NestedArguments))), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
10795
|
+
return [
|
|
10796
|
+
$2,
|
|
10797
|
+
...$3.flatMap(([comma, eos, ws, arg]) => [comma, prepend(ws, arg)]),
|
|
10798
|
+
...Array.isArray($4[1]) ? [$4[0], ...$4[1]] : $4,
|
|
10799
|
+
...$5.flatMap(
|
|
10800
|
+
([comma, args]) => Array.isArray(args) ? [comma, ...args] : [comma, args]
|
|
10801
|
+
)
|
|
10802
|
+
];
|
|
10803
|
+
});
|
|
10804
|
+
var PostfixedArgumentList$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(NestedArguments, (0, import_lib2.$Q)((0, import_lib2.$S)(OptionalCommaDelimiter, NestedArguments))), function($skip, $loc, $0, $1, $2) {
|
|
10805
|
+
if (!Array.isArray($1)) $1 = [$1];
|
|
10806
|
+
return [
|
|
10807
|
+
...trimFirstSpace($1),
|
|
10808
|
+
...$2.flatMap(
|
|
10809
|
+
([comma, args]) => Array.isArray(args) ? [comma, ...args] : [comma, args]
|
|
10810
|
+
)
|
|
10811
|
+
];
|
|
10812
|
+
});
|
|
10813
|
+
var PostfixedArgumentList$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), PostfixedArgumentPart, (0, import_lib2.$Q)((0, import_lib2.$S)(CommaDelimiter, (0, import_lib2.$E)(_), PostfixedArgumentPart))), function($skip, $loc, $0, $1, $2, $3) {
|
|
10814
|
+
return [
|
|
10815
|
+
prepend($1, $2),
|
|
10816
|
+
...$3.flatMap(([comma, ws, arg]) => [comma, prepend(ws, arg)])
|
|
10817
|
+
];
|
|
10818
|
+
});
|
|
10819
|
+
var PostfixedArgumentList$$ = [PostfixedArgumentList$0, PostfixedArgumentList$1, PostfixedArgumentList$2];
|
|
10820
|
+
function PostfixedArgumentList(ctx, state2) {
|
|
10821
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "PostfixedArgumentList", PostfixedArgumentList$$);
|
|
10822
|
+
}
|
|
10730
10823
|
var NestedArguments$0 = NestedBulletedArray;
|
|
10731
10824
|
var NestedArguments$1 = NestedImplicitObjectLiteral;
|
|
10732
10825
|
var NestedArguments$2 = NestedArgumentList;
|
|
@@ -10742,7 +10835,7 @@ var NestedArgumentList$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(PushIndent,
|
|
|
10742
10835
|
function NestedArgumentList(ctx, state2) {
|
|
10743
10836
|
return (0, import_lib2.$EVENT)(ctx, state2, "NestedArgumentList", NestedArgumentList$0);
|
|
10744
10837
|
}
|
|
10745
|
-
var NestedArgument$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(NestedImplicitPropertyDefinition), Nested, (0, import_lib2.$N)(Bullet),
|
|
10838
|
+
var NestedArgument$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(NestedImplicitPropertyDefinition), Nested, (0, import_lib2.$N)(Bullet), SingleLinePostfixedArgumentExpressions, ParameterElementDelimiter), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
10746
10839
|
var indent = $2;
|
|
10747
10840
|
var args = $4;
|
|
10748
10841
|
var comma = $5;
|
|
@@ -10765,6 +10858,18 @@ var WArgumentPart$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$
|
|
|
10765
10858
|
function WArgumentPart(ctx, state2) {
|
|
10766
10859
|
return (0, import_lib2.$EVENT)(ctx, state2, "WArgumentPart", WArgumentPart$0);
|
|
10767
10860
|
}
|
|
10861
|
+
var SingleLinePostfixedArgumentExpressions$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(WPostfixedArgumentPart, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$S)((0, import_lib2.$E)(_), Comma), WPostfixedArgumentPart))), function($skip, $loc, $0, $1, $2) {
|
|
10862
|
+
return [$1, ...$2.flat()];
|
|
10863
|
+
});
|
|
10864
|
+
function SingleLinePostfixedArgumentExpressions(ctx, state2) {
|
|
10865
|
+
return (0, import_lib2.$EVENT)(ctx, state2, "SingleLinePostfixedArgumentExpressions", SingleLinePostfixedArgumentExpressions$0);
|
|
10866
|
+
}
|
|
10867
|
+
var WPostfixedArgumentPart$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), PostfixedArgumentPart), function($skip, $loc, $0, $1, $2) {
|
|
10868
|
+
return prepend($1, $2);
|
|
10869
|
+
});
|
|
10870
|
+
function WPostfixedArgumentPart(ctx, state2) {
|
|
10871
|
+
return (0, import_lib2.$EVENT)(ctx, state2, "WPostfixedArgumentPart", WPostfixedArgumentPart$0);
|
|
10872
|
+
}
|
|
10768
10873
|
var ArgumentPart$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(DotDotDot, Expression), function($skip, $loc, $0, $1, $2) {
|
|
10769
10874
|
var spread = $1;
|
|
10770
10875
|
var expression = $2;
|
|
@@ -10789,6 +10894,30 @@ var ArgumentPart$$ = [ArgumentPart$0, ArgumentPart$1];
|
|
|
10789
10894
|
function ArgumentPart(ctx, state2) {
|
|
10790
10895
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ArgumentPart", ArgumentPart$$);
|
|
10791
10896
|
}
|
|
10897
|
+
var PostfixedArgumentPart$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(DotDotDot, PostfixedExpression), function($skip, $loc, $0, $1, $2) {
|
|
10898
|
+
var spread = $1;
|
|
10899
|
+
var expression = $2;
|
|
10900
|
+
return {
|
|
10901
|
+
type: "Argument",
|
|
10902
|
+
children: $0,
|
|
10903
|
+
expression,
|
|
10904
|
+
spread
|
|
10905
|
+
};
|
|
10906
|
+
});
|
|
10907
|
+
var PostfixedArgumentPart$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(PostfixedExpression, (0, import_lib2.$E)(DotDotDot)), function($skip, $loc, $0, $1, $2) {
|
|
10908
|
+
var expression = $1;
|
|
10909
|
+
var spread = $2;
|
|
10910
|
+
return {
|
|
10911
|
+
type: "Argument",
|
|
10912
|
+
children: spread ? [spread, expression] : [expression],
|
|
10913
|
+
expression,
|
|
10914
|
+
spread
|
|
10915
|
+
};
|
|
10916
|
+
});
|
|
10917
|
+
var PostfixedArgumentPart$$ = [PostfixedArgumentPart$0, PostfixedArgumentPart$1];
|
|
10918
|
+
function PostfixedArgumentPart(ctx, state2) {
|
|
10919
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "PostfixedArgumentPart", PostfixedArgumentPart$$);
|
|
10920
|
+
}
|
|
10792
10921
|
var BinaryOpExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(UnaryExpression, (0, import_lib2.$Q)(BinaryOpRHS)), function($skip, $loc, $0, $1, $2) {
|
|
10793
10922
|
if (!$2.length) return $1;
|
|
10794
10923
|
return processBinaryOpExpression($0);
|
|
@@ -10821,10 +10950,13 @@ var BinaryOpRHS$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(BinaryOp, RHS), fun
|
|
|
10821
10950
|
var BinaryOpRHS$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(NewlineBinaryOpAllowed, NotDedentedBinaryOp, WRHS), function($skip, $loc, $0, $1, $2, $3) {
|
|
10822
10951
|
var op = $2;
|
|
10823
10952
|
var rhs = $3;
|
|
10953
|
+
if (op[1].token === ">" && op[0].length === 0) return $skip;
|
|
10824
10954
|
return [...op, ...rhs];
|
|
10825
10955
|
});
|
|
10826
|
-
var BinaryOpRHS$3 = (0, import_lib2.$
|
|
10827
|
-
|
|
10956
|
+
var BinaryOpRHS$3 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(NewlineBinaryOpAllowed), SingleLineBinaryOpRHS), function($skip, $loc, $0, $1, $2) {
|
|
10957
|
+
const [ws1, op] = $2;
|
|
10958
|
+
if (op.token === ">" && !ws1.length) return $skip;
|
|
10959
|
+
return $2;
|
|
10828
10960
|
});
|
|
10829
10961
|
var BinaryOpRHS$$ = [BinaryOpRHS$0, BinaryOpRHS$1, BinaryOpRHS$2, BinaryOpRHS$3];
|
|
10830
10962
|
function BinaryOpRHS(ctx, state2) {
|
|
@@ -11779,7 +11911,7 @@ var FieldDefinition$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeClassesEn
|
|
|
11779
11911
|
};
|
|
11780
11912
|
}
|
|
11781
11913
|
});
|
|
11782
|
-
var FieldDefinition$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(InsertReadonly, ClassElementName, (0, import_lib2.$E)(TypeSuffix), __, ConstAssignment,
|
|
11914
|
+
var FieldDefinition$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(InsertReadonly, ClassElementName, (0, import_lib2.$E)(TypeSuffix), __, ConstAssignment, MaybeNestedPostfixedCommaExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
11783
11915
|
var readonly = $1;
|
|
11784
11916
|
var id = $2;
|
|
11785
11917
|
var typeSuffix = $3;
|
|
@@ -12326,7 +12458,22 @@ var PropertyAccess$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AccessStart, (0,
|
|
|
12326
12458
|
children: [dot, ...comments, ...id.children]
|
|
12327
12459
|
};
|
|
12328
12460
|
});
|
|
12329
|
-
var PropertyAccess$3 = (0, import_lib2.$TS)((0, import_lib2.$S)(
|
|
12461
|
+
var PropertyAccess$3 = (0, import_lib2.$TS)((0, import_lib2.$S)(ExplicitAccessStart, (0, import_lib2.$Y)(EOS)), function($skip, $loc, $0, $1, $2) {
|
|
12462
|
+
var dot = $1;
|
|
12463
|
+
return {
|
|
12464
|
+
type: "PropertyAccess",
|
|
12465
|
+
name: "",
|
|
12466
|
+
dot,
|
|
12467
|
+
children: [
|
|
12468
|
+
dot,
|
|
12469
|
+
{
|
|
12470
|
+
type: "Error",
|
|
12471
|
+
message: "Missing property name after '.'"
|
|
12472
|
+
}
|
|
12473
|
+
]
|
|
12474
|
+
};
|
|
12475
|
+
});
|
|
12476
|
+
var PropertyAccess$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(ImplicitAccessStart, (0, import_lib2.$C)(PrivateIdentifier, LengthShorthand)), function($skip, $loc, $0, $1, $2) {
|
|
12330
12477
|
var dot = $1;
|
|
12331
12478
|
var id = $2;
|
|
12332
12479
|
return {
|
|
@@ -12336,7 +12483,7 @@ var PropertyAccess$3 = (0, import_lib2.$TS)((0, import_lib2.$S)(ImplicitAccessSt
|
|
|
12336
12483
|
children: [dot, ...id.children]
|
|
12337
12484
|
};
|
|
12338
12485
|
});
|
|
12339
|
-
var PropertyAccess$
|
|
12486
|
+
var PropertyAccess$5 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeePrototypeEnabled, (0, import_lib2.$E)(PropertyAccessModifier), DoubleColon, (0, import_lib2.$E)(IdentifierName)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
12340
12487
|
var modifier = $2;
|
|
12341
12488
|
var p = $3;
|
|
12342
12489
|
var id = $4;
|
|
@@ -12362,7 +12509,7 @@ var PropertyAccess$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeePrototypeE
|
|
|
12362
12509
|
};
|
|
12363
12510
|
}
|
|
12364
12511
|
});
|
|
12365
|
-
var PropertyAccess$$ = [PropertyAccess$0, PropertyAccess$1, PropertyAccess$2, PropertyAccess$3, PropertyAccess$4];
|
|
12512
|
+
var PropertyAccess$$ = [PropertyAccess$0, PropertyAccess$1, PropertyAccess$2, PropertyAccess$3, PropertyAccess$4, PropertyAccess$5];
|
|
12366
12513
|
function PropertyAccess(ctx, state2) {
|
|
12367
12514
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "PropertyAccess", PropertyAccess$$);
|
|
12368
12515
|
}
|
|
@@ -15547,26 +15694,37 @@ var PostfixedNoCommaStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(NoCom
|
|
|
15547
15694
|
function PostfixedNoCommaStatement(ctx, state2) {
|
|
15548
15695
|
return (0, import_lib2.$EVENT)(ctx, state2, "PostfixedNoCommaStatement", PostfixedNoCommaStatement$0);
|
|
15549
15696
|
}
|
|
15550
|
-
var PostfixedExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(
|
|
15697
|
+
var PostfixedExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(AssignmentExpressionSpread, (0, import_lib2.$E)(_), (0, import_lib2.$N)(IfClause), PostfixStatement), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
15698
|
+
var expression = $1;
|
|
15699
|
+
var ws = $2;
|
|
15700
|
+
var post = $4;
|
|
15701
|
+
return attachPostfixStatementAsExpression(expression, [ws, post]);
|
|
15702
|
+
});
|
|
15703
|
+
var PostfixedExpression$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Expression, (0, import_lib2.$S)((0, import_lib2.$E)(_), PostfixStatement)), function($skip, $loc, $0, $1, $2) {
|
|
15551
15704
|
var expression = $1;
|
|
15552
15705
|
var post = $2;
|
|
15553
|
-
|
|
15554
|
-
return expression;
|
|
15706
|
+
return attachPostfixStatementAsExpression(expression, post);
|
|
15555
15707
|
});
|
|
15708
|
+
var PostfixedExpression$2 = Expression;
|
|
15709
|
+
var PostfixedExpression$$ = [PostfixedExpression$0, PostfixedExpression$1, PostfixedExpression$2];
|
|
15556
15710
|
function PostfixedExpression(ctx, state2) {
|
|
15557
|
-
return (0, import_lib2.$
|
|
15711
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "PostfixedExpression", PostfixedExpression$$);
|
|
15558
15712
|
}
|
|
15559
|
-
var PostfixedCommaExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(
|
|
15713
|
+
var PostfixedCommaExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CommaExpressionSpread, (0, import_lib2.$E)(_), (0, import_lib2.$N)(IfClause), PostfixStatement), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
15714
|
+
var expression = $1;
|
|
15715
|
+
var ws = $2;
|
|
15716
|
+
var post = $4;
|
|
15717
|
+
return attachPostfixStatementAsExpression(expression, [ws, post]);
|
|
15718
|
+
});
|
|
15719
|
+
var PostfixedCommaExpression$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Expression, (0, import_lib2.$S)((0, import_lib2.$E)(_), PostfixStatement)), function($skip, $loc, $0, $1, $2) {
|
|
15560
15720
|
var expression = $1;
|
|
15561
15721
|
var post = $2;
|
|
15562
|
-
|
|
15563
|
-
if (post.length === 2 && !Array.isArray(post[1])) {
|
|
15564
|
-
return attachPostfixStatementAsExpression(expression, post);
|
|
15565
|
-
}
|
|
15566
|
-
return $0;
|
|
15722
|
+
return attachPostfixStatementAsExpression(expression, post);
|
|
15567
15723
|
});
|
|
15724
|
+
var PostfixedCommaExpression$2 = CommaExpression;
|
|
15725
|
+
var PostfixedCommaExpression$$ = [PostfixedCommaExpression$0, PostfixedCommaExpression$1, PostfixedCommaExpression$2];
|
|
15568
15726
|
function PostfixedCommaExpression(ctx, state2) {
|
|
15569
|
-
return (0, import_lib2.$
|
|
15727
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "PostfixedCommaExpression", PostfixedCommaExpression$$);
|
|
15570
15728
|
}
|
|
15571
15729
|
var PostfixStatement$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R31, "PostfixStatement /(?=for|if|loop|unless|until|while)/"), _PostfixStatement), function(value) {
|
|
15572
15730
|
return value[1];
|
|
@@ -17018,6 +17176,22 @@ var MaybeNestedPostfixedExpression$$ = [MaybeNestedPostfixedExpression$0, MaybeN
|
|
|
17018
17176
|
function MaybeNestedPostfixedExpression(ctx, state2) {
|
|
17019
17177
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "MaybeNestedPostfixedExpression", MaybeNestedPostfixedExpression$$);
|
|
17020
17178
|
}
|
|
17179
|
+
var MaybeNestedPostfixedCommaExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(NestedBulletedArray), (0, import_lib2.$N)(NestedImplicitObjectLiteral), PushIndent, (0, import_lib2.$E)((0, import_lib2.$S)(Nested, PostfixedCommaExpression)), PopIndent, (0, import_lib2.$E)(AllowedTrailingCallExpressions)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
17180
|
+
var expression = $4;
|
|
17181
|
+
var trailing = $6;
|
|
17182
|
+
if (!expression) return $skip;
|
|
17183
|
+
if (!trailing) return expression;
|
|
17184
|
+
return [expression, trailing];
|
|
17185
|
+
});
|
|
17186
|
+
var MaybeNestedPostfixedCommaExpression$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(ForbidImplicitFragment, (0, import_lib2.$E)(PostfixedCommaExpression), RestoreImplicitFragment), function($skip, $loc, $0, $1, $2, $3) {
|
|
17187
|
+
var expression = $2;
|
|
17188
|
+
if (!expression) return $skip;
|
|
17189
|
+
return expression;
|
|
17190
|
+
});
|
|
17191
|
+
var MaybeNestedPostfixedCommaExpression$$ = [MaybeNestedPostfixedCommaExpression$0, MaybeNestedPostfixedCommaExpression$1];
|
|
17192
|
+
function MaybeNestedPostfixedCommaExpression(ctx, state2) {
|
|
17193
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "MaybeNestedPostfixedCommaExpression", MaybeNestedPostfixedCommaExpression$$);
|
|
17194
|
+
}
|
|
17021
17195
|
var NestedPostfixedExpressionNoTrailing$0 = NestedBulletedArray;
|
|
17022
17196
|
var NestedPostfixedExpressionNoTrailing$1 = NestedImplicitObjectLiteral;
|
|
17023
17197
|
var NestedPostfixedExpressionNoTrailing$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(PushIndent, (0, import_lib2.$E)((0, import_lib2.$S)(Nested, PostfixedExpression)), PopIndent), function($skip, $loc, $0, $1, $2, $3) {
|
|
@@ -17073,7 +17247,7 @@ var ImportDeclaration$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Import, _, Id
|
|
|
17073
17247
|
children: [imp, $0.slice(1)]
|
|
17074
17248
|
};
|
|
17075
17249
|
});
|
|
17076
|
-
var ImportDeclaration$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$S)(Import,
|
|
17250
|
+
var ImportDeclaration$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$S)(Import, SameLineOrIndentedFurther), ImpliedImport), Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports, SameLineOrIndentedFurther, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
|
|
17077
17251
|
var i = $1;
|
|
17078
17252
|
var behavior = $3;
|
|
17079
17253
|
var ws1 = $4;
|
|
@@ -17094,7 +17268,7 @@ var ImportDeclaration$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_li
|
|
|
17094
17268
|
from
|
|
17095
17269
|
};
|
|
17096
17270
|
});
|
|
17097
|
-
var ImportDeclaration$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(Import,
|
|
17271
|
+
var ImportDeclaration$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
17098
17272
|
var t = $3;
|
|
17099
17273
|
var imports = $4;
|
|
17100
17274
|
var from = $6;
|
|
@@ -17106,11 +17280,31 @@ var ImportDeclaration$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(Import, __, (
|
|
|
17106
17280
|
ts: !!t
|
|
17107
17281
|
};
|
|
17108
17282
|
});
|
|
17109
|
-
var ImportDeclaration$3 = (0, import_lib2.$T)((0, import_lib2.$S)(Import,
|
|
17283
|
+
var ImportDeclaration$3 = (0, import_lib2.$T)((0, import_lib2.$S)(Import, SameLineOrIndentedFurther, ModuleSpecifier), function(value) {
|
|
17110
17284
|
var module2 = value[2];
|
|
17111
17285
|
return { "type": "ImportDeclaration", "children": value, "module": module2 };
|
|
17112
17286
|
});
|
|
17113
|
-
var ImportDeclaration$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(
|
|
17287
|
+
var ImportDeclaration$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(Import, (0, import_lib2.$E)(_), (0, import_lib2.$E)(UnclosedSingleLineStringLiteral), (0, import_lib2.$Y)(EOS)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
17288
|
+
var i = $1;
|
|
17289
|
+
var ws = $2;
|
|
17290
|
+
var unclosed = $3;
|
|
17291
|
+
return {
|
|
17292
|
+
type: "ImportDeclaration",
|
|
17293
|
+
children: [
|
|
17294
|
+
i,
|
|
17295
|
+
ws,
|
|
17296
|
+
...unclosed ?? [
|
|
17297
|
+
{
|
|
17298
|
+
type: "Error",
|
|
17299
|
+
message: `Expected module or import clause after "import"`
|
|
17300
|
+
},
|
|
17301
|
+
'""'
|
|
17302
|
+
// act like an empty string to let TypeScript do completions
|
|
17303
|
+
]
|
|
17304
|
+
]
|
|
17305
|
+
};
|
|
17306
|
+
});
|
|
17307
|
+
var ImportDeclaration$5 = (0, import_lib2.$TS)((0, import_lib2.$S)(ImpliedImport, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause, SameLineOrIndentedFurther, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
17114
17308
|
var i = $1;
|
|
17115
17309
|
var t = $2;
|
|
17116
17310
|
var imports = $3;
|
|
@@ -17123,7 +17317,7 @@ var ImportDeclaration$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(ImpliedImport
|
|
|
17123
17317
|
const children = [i, t, imports, w, from];
|
|
17124
17318
|
return { type: "ImportDeclaration", ts: !!t, children, imports, from };
|
|
17125
17319
|
});
|
|
17126
|
-
var ImportDeclaration$
|
|
17320
|
+
var ImportDeclaration$6 = (0, import_lib2.$TS)((0, import_lib2.$S)(FromClause, SameLineOrIndentedFurther, Import, SameLineOrIndentedFurther, Operator, (0, import_lib2.$E)(OperatorBehavior), SameLineOrIndentedFurther, OperatorNamedImports), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
17127
17321
|
var from = $1;
|
|
17128
17322
|
var fws = $2;
|
|
17129
17323
|
var i = $3;
|
|
@@ -17145,7 +17339,7 @@ var ImportDeclaration$5 = (0, import_lib2.$TS)((0, import_lib2.$S)(FromClause, _
|
|
|
17145
17339
|
from
|
|
17146
17340
|
};
|
|
17147
17341
|
});
|
|
17148
|
-
var ImportDeclaration$
|
|
17342
|
+
var ImportDeclaration$7 = (0, import_lib2.$TS)((0, import_lib2.$S)(FromClause, SameLineOrIndentedFurther, Import, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$S)(TypeKeyword, SameLineOrIndentedFurther)), ImportClause), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
17149
17343
|
var from = $1;
|
|
17150
17344
|
var fws = $2;
|
|
17151
17345
|
var i = $3;
|
|
@@ -17160,7 +17354,7 @@ var ImportDeclaration$6 = (0, import_lib2.$TS)((0, import_lib2.$S)(FromClause, _
|
|
|
17160
17354
|
ts: !!t
|
|
17161
17355
|
};
|
|
17162
17356
|
});
|
|
17163
|
-
var ImportDeclaration$$ = [ImportDeclaration$0, ImportDeclaration$1, ImportDeclaration$2, ImportDeclaration$3, ImportDeclaration$4, ImportDeclaration$5, ImportDeclaration$6];
|
|
17357
|
+
var ImportDeclaration$$ = [ImportDeclaration$0, ImportDeclaration$1, ImportDeclaration$2, ImportDeclaration$3, ImportDeclaration$4, ImportDeclaration$5, ImportDeclaration$6, ImportDeclaration$7];
|
|
17164
17358
|
function ImportDeclaration(ctx, state2) {
|
|
17165
17359
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ImportDeclaration", ImportDeclaration$$);
|
|
17166
17360
|
}
|
|
@@ -17253,9 +17447,17 @@ var DynamicImportContents$$ = [DynamicImportContents$0, DynamicImportContents$1,
|
|
|
17253
17447
|
function DynamicImportContents(ctx, state2) {
|
|
17254
17448
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "DynamicImportContents", DynamicImportContents$$);
|
|
17255
17449
|
}
|
|
17256
|
-
var FromClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(From,
|
|
17450
|
+
var FromClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(From, SameLineOrIndentedFurther, (0, import_lib2.$E)((0, import_lib2.$C)(ModuleSpecifier, UnclosedSingleLineStringLiteral))), function($skip, $loc, $0, $1, $2, $3) {
|
|
17257
17451
|
var module2 = $3;
|
|
17258
|
-
|
|
17452
|
+
module2 ??= [
|
|
17453
|
+
{
|
|
17454
|
+
type: "Error",
|
|
17455
|
+
message: "Expected module specifier after `from`"
|
|
17456
|
+
},
|
|
17457
|
+
'""'
|
|
17458
|
+
// act like an empty string to let TypeScript do completions
|
|
17459
|
+
];
|
|
17460
|
+
if (!Array.isArray(module2)) return [$1, $2, module2];
|
|
17259
17461
|
return [$1, $2, ...module2];
|
|
17260
17462
|
});
|
|
17261
17463
|
function FromClause(ctx, state2) {
|
|
@@ -17414,13 +17616,13 @@ var ModuleSpecifier$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(UnprocessedModu
|
|
|
17414
17616
|
function ModuleSpecifier(ctx, state2) {
|
|
17415
17617
|
return (0, import_lib2.$EVENT)(ctx, state2, "ModuleSpecifier", ModuleSpecifier$0);
|
|
17416
17618
|
}
|
|
17417
|
-
var UnprocessedModuleSpecifier$0 =
|
|
17619
|
+
var UnprocessedModuleSpecifier$0 = SingleLineStringLiteral;
|
|
17418
17620
|
var UnprocessedModuleSpecifier$1 = UnquotedSpecifier;
|
|
17419
17621
|
var UnprocessedModuleSpecifier$$ = [UnprocessedModuleSpecifier$0, UnprocessedModuleSpecifier$1];
|
|
17420
17622
|
function UnprocessedModuleSpecifier(ctx, state2) {
|
|
17421
17623
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "UnprocessedModuleSpecifier", UnprocessedModuleSpecifier$$);
|
|
17422
17624
|
}
|
|
17423
|
-
var UnquotedSpecifier$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($R34,
|
|
17625
|
+
var UnquotedSpecifier$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($R34, `UnquotedSpecifier /[^;"'\\s=>]+/`), function($skip, $loc, $0, $1) {
|
|
17424
17626
|
var spec = $0;
|
|
17425
17627
|
return { $loc, token: `"${spec}"` };
|
|
17426
17628
|
});
|
|
@@ -17468,7 +17670,7 @@ var ExportDeclaration$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_li
|
|
|
17468
17670
|
}
|
|
17469
17671
|
];
|
|
17470
17672
|
});
|
|
17471
|
-
var ExportDeclaration$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), Export, __, Default, __, (0, import_lib2.$C)(HoistableDeclaration, ClassDeclaration, InterfaceDeclaration,
|
|
17673
|
+
var ExportDeclaration$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), Export, __, Default, __, (0, import_lib2.$C)(HoistableDeclaration, ClassDeclaration, InterfaceDeclaration, MaybeNestedPostfixedExpression)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
17472
17674
|
var declaration = $6;
|
|
17473
17675
|
return { type: "ExportDeclaration", declaration, ts: declaration.ts, children: $0 };
|
|
17474
17676
|
});
|
|
@@ -17591,7 +17793,7 @@ var LexicalDeclaration$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(LetOrConst,
|
|
|
17591
17793
|
thisAssignments: bindings.flatMap((b) => b.thisAssignments)
|
|
17592
17794
|
};
|
|
17593
17795
|
});
|
|
17594
|
-
var LexicalDeclaration$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Loc, (0, import_lib2.$C)(BindingPattern, BindingIdentifier), (0, import_lib2.$E)(TypeSuffix), __, (0, import_lib2.$C)(ConstAssignment, LetAssignment),
|
|
17796
|
+
var LexicalDeclaration$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Loc, (0, import_lib2.$C)(BindingPattern, BindingIdentifier), (0, import_lib2.$E)(TypeSuffix), __, (0, import_lib2.$C)(ConstAssignment, LetAssignment), MaybeNestedPostfixedCommaExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
17595
17797
|
var loc = $1;
|
|
17596
17798
|
var assign = $5;
|
|
17597
17799
|
return processAssignmentDeclaration(
|
|
@@ -17657,7 +17859,7 @@ var LexicalBinding$$ = [LexicalBinding$0, LexicalBinding$1];
|
|
|
17657
17859
|
function LexicalBinding(ctx, state2) {
|
|
17658
17860
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "LexicalBinding", LexicalBinding$$);
|
|
17659
17861
|
}
|
|
17660
|
-
var Initializer$0 = (0, import_lib2.$T)((0, import_lib2.$S)(__, Equals,
|
|
17862
|
+
var Initializer$0 = (0, import_lib2.$T)((0, import_lib2.$S)(__, Equals, MaybeNestedPostfixedExpression), function(value) {
|
|
17661
17863
|
var expression = value[2];
|
|
17662
17864
|
return { "type": "Initializer", "expression": expression, "children": value };
|
|
17663
17865
|
});
|
|
@@ -17786,6 +17988,32 @@ var SingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R4
|
|
|
17786
17988
|
function SingleStringCharacters(ctx, state2) {
|
|
17787
17989
|
return (0, import_lib2.$EVENT)(ctx, state2, "SingleStringCharacters", SingleStringCharacters$0);
|
|
17788
17990
|
}
|
|
17991
|
+
var SingleLineStringLiteral$0 = (0, import_lib2.$TV)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($R48, 'SingleLineStringLiteral /(?:\\\\.|[^"\\n])*/'), DoubleQuote)), (0, import_lib2.$TEXT)((0, import_lib2.$S)(SingleQuote, (0, import_lib2.$EXPECT)($R49, "SingleLineStringLiteral /(?:\\\\.|[^'\\n])*/"), SingleQuote))), function($skip, $loc, $0, $1) {
|
|
17992
|
+
return {
|
|
17993
|
+
type: "StringLiteral",
|
|
17994
|
+
token: $1,
|
|
17995
|
+
$loc
|
|
17996
|
+
};
|
|
17997
|
+
});
|
|
17998
|
+
function SingleLineStringLiteral(ctx, state2) {
|
|
17999
|
+
return (0, import_lib2.$EVENT)(ctx, state2, "SingleLineStringLiteral", SingleLineStringLiteral$0);
|
|
18000
|
+
}
|
|
18001
|
+
var UnclosedSingleLineStringLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)((0, import_lib2.$TEXT)((0, import_lib2.$S)(DoubleQuote, (0, import_lib2.$EXPECT)($R48, 'UnclosedSingleLineStringLiteral /(?:\\\\.|[^"\\n])*/'))), (0, import_lib2.$TEXT)((0, import_lib2.$S)(SingleQuote, (0, import_lib2.$EXPECT)($R49, "UnclosedSingleLineStringLiteral /(?:\\\\.|[^'\\n])*/")))), (0, import_lib2.$Y)(EOS)), function($skip, $loc, $0, $1, $2) {
|
|
18002
|
+
return [
|
|
18003
|
+
{
|
|
18004
|
+
type: "StringLiteral",
|
|
18005
|
+
token: $1 + $1[0],
|
|
18006
|
+
$loc
|
|
18007
|
+
},
|
|
18008
|
+
{
|
|
18009
|
+
type: "Error",
|
|
18010
|
+
message: "Unclosed string literal"
|
|
18011
|
+
}
|
|
18012
|
+
];
|
|
18013
|
+
});
|
|
18014
|
+
function UnclosedSingleLineStringLiteral(ctx, state2) {
|
|
18015
|
+
return (0, import_lib2.$EVENT)(ctx, state2, "UnclosedSingleLineStringLiteral", UnclosedSingleLineStringLiteral$0);
|
|
18016
|
+
}
|
|
17789
18017
|
var TripleDoubleStringContents$0 = (0, import_lib2.$T)((0, import_lib2.$S)(CoffeeInterpolationEnabled, (0, import_lib2.$Q)((0, import_lib2.$C)(CoffeeTripleDoubleStringCharacters, CoffeeStringSubstitution))), function(value) {
|
|
17790
18018
|
return value[1];
|
|
17791
18019
|
});
|
|
@@ -17796,19 +18024,19 @@ var TripleDoubleStringContents$$ = [TripleDoubleStringContents$0, TripleDoubleSt
|
|
|
17796
18024
|
function TripleDoubleStringContents(ctx, state2) {
|
|
17797
18025
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TripleDoubleStringContents", TripleDoubleStringContents$$);
|
|
17798
18026
|
}
|
|
17799
|
-
var CoffeeTripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18027
|
+
var CoffeeTripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R50, 'CoffeeTripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17800
18028
|
return { $loc, token: $0 };
|
|
17801
18029
|
});
|
|
17802
18030
|
function CoffeeTripleDoubleStringCharacters(ctx, state2) {
|
|
17803
18031
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeTripleDoubleStringCharacters", CoffeeTripleDoubleStringCharacters$0);
|
|
17804
18032
|
}
|
|
17805
|
-
var TripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18033
|
+
var TripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R51, 'TripleDoubleStringCharacters /(?:"(?!"")|\\\\.|[^"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17806
18034
|
return { $loc, token: $0 };
|
|
17807
18035
|
});
|
|
17808
18036
|
function TripleDoubleStringCharacters(ctx, state2) {
|
|
17809
18037
|
return (0, import_lib2.$EVENT)(ctx, state2, "TripleDoubleStringCharacters", TripleDoubleStringCharacters$0);
|
|
17810
18038
|
}
|
|
17811
|
-
var TripleSingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18039
|
+
var TripleSingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R52, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17812
18040
|
return { $loc, token: $0 };
|
|
17813
18041
|
});
|
|
17814
18042
|
function TripleSingleStringCharacters(ctx, state2) {
|
|
@@ -17830,7 +18058,7 @@ var CoffeeInterpolatedDoubleQuotedString$0 = (0, import_lib2.$TS)((0, import_lib
|
|
|
17830
18058
|
function CoffeeInterpolatedDoubleQuotedString(ctx, state2) {
|
|
17831
18059
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeInterpolatedDoubleQuotedString", CoffeeInterpolatedDoubleQuotedString$0);
|
|
17832
18060
|
}
|
|
17833
|
-
var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18061
|
+
var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R53, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17834
18062
|
return { $loc, token: $0 };
|
|
17835
18063
|
});
|
|
17836
18064
|
function CoffeeDoubleQuotedStringCharacters(ctx, state2) {
|
|
@@ -17855,7 +18083,7 @@ var RegularExpressionClass$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, i
|
|
|
17855
18083
|
function RegularExpressionClass(ctx, state2) {
|
|
17856
18084
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionClass", RegularExpressionClass$0);
|
|
17857
18085
|
}
|
|
17858
|
-
var RegularExpressionClassCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18086
|
+
var RegularExpressionClassCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R54, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17859
18087
|
return { $loc, token: $0 };
|
|
17860
18088
|
});
|
|
17861
18089
|
function RegularExpressionClassCharacters(ctx, state2) {
|
|
@@ -17912,7 +18140,7 @@ var HeregexPart$1 = (0, import_lib2.$T)((0, import_lib2.$S)(CoffeeInterpolationE
|
|
|
17912
18140
|
var HeregexPart$2 = (0, import_lib2.$T)((0, import_lib2.$S)(TemplateSubstitution), function(value) {
|
|
17913
18141
|
return { "type": "Substitution", "children": value[0] };
|
|
17914
18142
|
});
|
|
17915
|
-
var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18143
|
+
var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R55, "HeregexPart /(?:\\\\.)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17916
18144
|
let token = $0;
|
|
17917
18145
|
switch ($0[1]) {
|
|
17918
18146
|
case "\n":
|
|
@@ -17930,13 +18158,13 @@ var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R53, "Heregex
|
|
|
17930
18158
|
var HeregexPart$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(HeregexComment), function($skip, $loc, $0, $1) {
|
|
17931
18159
|
return { $loc, token: "" };
|
|
17932
18160
|
});
|
|
17933
|
-
var HeregexPart$5 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18161
|
+
var HeregexPart$5 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R56, "HeregexPart /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17934
18162
|
return { $loc, token: "" };
|
|
17935
18163
|
});
|
|
17936
|
-
var HeregexPart$6 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18164
|
+
var HeregexPart$6 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R57, "HeregexPart /\\/(?!\\/\\/)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17937
18165
|
return { $loc, token: "\\/" };
|
|
17938
18166
|
});
|
|
17939
|
-
var HeregexPart$7 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18167
|
+
var HeregexPart$7 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R58, "HeregexPart /[^[\\/\\s#$\\\\]+|[#$]/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17940
18168
|
return { $loc, token: $0 };
|
|
17941
18169
|
});
|
|
17942
18170
|
var HeregexPart$$ = [HeregexPart$0, HeregexPart$1, HeregexPart$2, HeregexPart$3, HeregexPart$4, HeregexPart$5, HeregexPart$6, HeregexPart$7];
|
|
@@ -17951,7 +18179,7 @@ var HeregexComment$$ = [HeregexComment$0, HeregexComment$1];
|
|
|
17951
18179
|
function HeregexComment(ctx, state2) {
|
|
17952
18180
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HeregexComment", HeregexComment$$);
|
|
17953
18181
|
}
|
|
17954
|
-
var RegularExpressionBody$0 = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18182
|
+
var RegularExpressionBody$0 = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R59, "RegularExpressionBody /[*\\/\\r\\n]/"))), (0, import_lib2.$Q)(RegExpPart));
|
|
17955
18183
|
function RegularExpressionBody(ctx, state2) {
|
|
17956
18184
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionBody", RegularExpressionBody$0);
|
|
17957
18185
|
}
|
|
@@ -17961,15 +18189,15 @@ var RegExpPart$$ = [RegExpPart$0, RegExpPart$1];
|
|
|
17961
18189
|
function RegExpPart(ctx, state2) {
|
|
17962
18190
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "RegExpPart", RegExpPart$$);
|
|
17963
18191
|
}
|
|
17964
|
-
var RegExpCharacter$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18192
|
+
var RegExpCharacter$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R60, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
17965
18193
|
function RegExpCharacter(ctx, state2) {
|
|
17966
18194
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegExpCharacter", RegExpCharacter$0);
|
|
17967
18195
|
}
|
|
17968
|
-
var RegularExpressionFlags$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18196
|
+
var RegularExpressionFlags$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R61, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
17969
18197
|
function RegularExpressionFlags(ctx, state2) {
|
|
17970
18198
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionFlags", RegularExpressionFlags$0);
|
|
17971
18199
|
}
|
|
17972
|
-
var TemplateLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18200
|
+
var TemplateLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R62, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral), function(value) {
|
|
17973
18201
|
return value[1];
|
|
17974
18202
|
});
|
|
17975
18203
|
function TemplateLiteral(ctx, state2) {
|
|
@@ -18008,28 +18236,28 @@ var TemplateSubstitution$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Substituti
|
|
|
18008
18236
|
function TemplateSubstitution(ctx, state2) {
|
|
18009
18237
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateSubstitution", TemplateSubstitution$0);
|
|
18010
18238
|
}
|
|
18011
|
-
var TemplateCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18239
|
+
var TemplateCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R63, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18012
18240
|
return { $loc, token: $0 };
|
|
18013
18241
|
});
|
|
18014
18242
|
function TemplateCharacters(ctx, state2) {
|
|
18015
18243
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateCharacters", TemplateCharacters$0);
|
|
18016
18244
|
}
|
|
18017
|
-
var TemplateBlockCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18245
|
+
var TemplateBlockCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R64, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18018
18246
|
return { $loc, token: $0 };
|
|
18019
18247
|
});
|
|
18020
18248
|
function TemplateBlockCharacters(ctx, state2) {
|
|
18021
18249
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateBlockCharacters", TemplateBlockCharacters$0);
|
|
18022
18250
|
}
|
|
18023
|
-
var ReservedWord$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18024
|
-
var ReservedWord$1 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18025
|
-
var ReservedWord$2 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18026
|
-
var ReservedWord$3 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18027
|
-
var ReservedWord$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18251
|
+
var ReservedWord$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R65, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")), CoffeeBooleansEnabled);
|
|
18252
|
+
var ReservedWord$1 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R66, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")), CoffeeIsntEnabled);
|
|
18253
|
+
var ReservedWord$2 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R67, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")), CoffeeForLoopsEnabled);
|
|
18254
|
+
var ReservedWord$3 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R68, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")), CoffeeOfEnabled);
|
|
18255
|
+
var ReservedWord$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R69, "ReservedWord /(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
|
|
18028
18256
|
var ReservedWord$$ = [ReservedWord$0, ReservedWord$1, ReservedWord$2, ReservedWord$3, ReservedWord$4];
|
|
18029
18257
|
function ReservedWord(ctx, state2) {
|
|
18030
18258
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ReservedWord", ReservedWord$$);
|
|
18031
18259
|
}
|
|
18032
|
-
var Comment$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18260
|
+
var Comment$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R70, "Comment /(?=\\/|#)/"), _Comment), function(value) {
|
|
18033
18261
|
return value[1];
|
|
18034
18262
|
});
|
|
18035
18263
|
function Comment(ctx, state2) {
|
|
@@ -18047,7 +18275,7 @@ var SingleLineComment$$ = [SingleLineComment$0, SingleLineComment$1];
|
|
|
18047
18275
|
function SingleLineComment(ctx, state2) {
|
|
18048
18276
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "SingleLineComment", SingleLineComment$$);
|
|
18049
18277
|
}
|
|
18050
|
-
var JSSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18278
|
+
var JSSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R71, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18051
18279
|
return { type: "Comment", $loc, token: $0 };
|
|
18052
18280
|
});
|
|
18053
18281
|
function JSSingleLineComment(ctx, state2) {
|
|
@@ -18059,30 +18287,30 @@ var MultiLineComment$$ = [MultiLineComment$0, MultiLineComment$1];
|
|
|
18059
18287
|
function MultiLineComment(ctx, state2) {
|
|
18060
18288
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "MultiLineComment", MultiLineComment$$);
|
|
18061
18289
|
}
|
|
18062
|
-
var JSMultiLineComment$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L141, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($
|
|
18290
|
+
var JSMultiLineComment$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L140, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L141, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($R72, "JSMultiLineComment /./"))), (0, import_lib2.$EXPECT)($L141, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
18063
18291
|
return { type: "Comment", $loc, token: $1 };
|
|
18064
18292
|
});
|
|
18065
18293
|
function JSMultiLineComment(ctx, state2) {
|
|
18066
18294
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSMultiLineComment", JSMultiLineComment$0);
|
|
18067
18295
|
}
|
|
18068
|
-
var CoffeeSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18296
|
+
var CoffeeSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R73, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18069
18297
|
return { type: "Comment", $loc, token: `//${$1}` };
|
|
18070
18298
|
});
|
|
18071
18299
|
function CoffeeSingleLineComment(ctx, state2) {
|
|
18072
18300
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeSingleLineComment", CoffeeSingleLineComment$0);
|
|
18073
18301
|
}
|
|
18074
|
-
var CoffeeMultiLineComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
18302
|
+
var CoffeeMultiLineComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R74, "CoffeeMultiLineComment /[^]*?###/"))), function($skip, $loc, $0, $1, $2) {
|
|
18075
18303
|
$2 = $2.slice(0, $2.length - 3).replace(/\*\//g, "* /");
|
|
18076
18304
|
return { type: "Comment", $loc, token: `/*${$2}*/` };
|
|
18077
18305
|
});
|
|
18078
18306
|
function CoffeeMultiLineComment(ctx, state2) {
|
|
18079
18307
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeMultiLineComment", CoffeeMultiLineComment$0);
|
|
18080
18308
|
}
|
|
18081
|
-
var CoffeeHereCommentStart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18309
|
+
var CoffeeHereCommentStart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R75, "CoffeeHereCommentStart /###(?!#)/"));
|
|
18082
18310
|
function CoffeeHereCommentStart(ctx, state2) {
|
|
18083
18311
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeHereCommentStart", CoffeeHereCommentStart$0);
|
|
18084
18312
|
}
|
|
18085
|
-
var InlineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18313
|
+
var InlineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R76, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18086
18314
|
return { $loc, token: $0 };
|
|
18087
18315
|
});
|
|
18088
18316
|
var InlineComment$1 = CoffeeMultiLineComment;
|
|
@@ -18098,7 +18326,7 @@ var TrailingComment$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_l
|
|
|
18098
18326
|
function TrailingComment(ctx, state2) {
|
|
18099
18327
|
return (0, import_lib2.$EVENT)(ctx, state2, "TrailingComment", TrailingComment$0);
|
|
18100
18328
|
}
|
|
18101
|
-
var _$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18329
|
+
var _$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R77, "_ /(?=[ \\t\\/\\\\#])/"), (0, import_lib2.$P)((0, import_lib2.$C)(NonNewlineWhitespace, InlineComment))), function(value) {
|
|
18102
18330
|
return value[1];
|
|
18103
18331
|
});
|
|
18104
18332
|
function _(ctx, state2) {
|
|
@@ -18121,7 +18349,7 @@ var Trimmed_$0 = (0, import_lib2.$TV)(_, function($skip, $loc, $0, $1) {
|
|
|
18121
18349
|
function Trimmed_(ctx, state2) {
|
|
18122
18350
|
return (0, import_lib2.$EVENT)(ctx, state2, "Trimmed_", Trimmed_$0);
|
|
18123
18351
|
}
|
|
18124
|
-
var __$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18352
|
+
var __$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R78, "__ /(?=\\s|\\/|#)/"), (0, import_lib2.$Q)((0, import_lib2.$C)(Whitespace, Comment))), function(value) {
|
|
18125
18353
|
return value[1];
|
|
18126
18354
|
});
|
|
18127
18355
|
var __$1 = (0, import_lib2.$EXPECT)($L0, '__ ""');
|
|
@@ -18129,7 +18357,7 @@ var __$$ = [__$0, __$1];
|
|
|
18129
18357
|
function __(ctx, state2) {
|
|
18130
18358
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "__", __$$);
|
|
18131
18359
|
}
|
|
18132
|
-
var Whitespace$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18360
|
+
var Whitespace$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R56, "Whitespace /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18133
18361
|
return { $loc, token: $0 };
|
|
18134
18362
|
});
|
|
18135
18363
|
function Whitespace(ctx, state2) {
|
|
@@ -18171,7 +18399,7 @@ var SemicolonDelimiter$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_l
|
|
|
18171
18399
|
function SemicolonDelimiter(ctx, state2) {
|
|
18172
18400
|
return (0, import_lib2.$EVENT)(ctx, state2, "SemicolonDelimiter", SemicolonDelimiter$0);
|
|
18173
18401
|
}
|
|
18174
|
-
var NonIdContinue$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18402
|
+
var NonIdContinue$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R79, "NonIdContinue /(?!\\p{ID_Continue})/"));
|
|
18175
18403
|
function NonIdContinue(ctx, state2) {
|
|
18176
18404
|
return (0, import_lib2.$EVENT)(ctx, state2, "NonIdContinue", NonIdContinue$0);
|
|
18177
18405
|
}
|
|
@@ -18289,7 +18517,7 @@ var CoffeeSubstitutionStart$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($L
|
|
|
18289
18517
|
function CoffeeSubstitutionStart(ctx, state2) {
|
|
18290
18518
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeSubstitutionStart", CoffeeSubstitutionStart$0);
|
|
18291
18519
|
}
|
|
18292
|
-
var Colon$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L16, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
18520
|
+
var Colon$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L16, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R80, "Colon /[=:]/"))), function($skip, $loc, $0, $1, $2) {
|
|
18293
18521
|
return { $loc, token: $1 };
|
|
18294
18522
|
});
|
|
18295
18523
|
function Colon(ctx, state2) {
|
|
@@ -18340,7 +18568,7 @@ function Do(ctx, state2) {
|
|
|
18340
18568
|
var Dot$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($L7, 'Dot "."'), function($skip, $loc, $0, $1) {
|
|
18341
18569
|
return { $loc, token: $1 };
|
|
18342
18570
|
});
|
|
18343
|
-
var Dot$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
18571
|
+
var Dot$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R81, "Dot /['\u2019]s/"), Trimmed_), function($skip, $loc, $0, $1, $2) {
|
|
18344
18572
|
var ws = $2;
|
|
18345
18573
|
return [
|
|
18346
18574
|
{ $loc, token: "." },
|
|
@@ -18473,7 +18701,7 @@ var If$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, i
|
|
|
18473
18701
|
function If(ctx, state2) {
|
|
18474
18702
|
return (0, import_lib2.$EVENT)(ctx, state2, "If", If$0);
|
|
18475
18703
|
}
|
|
18476
|
-
var Import$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Import "import"'), (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($
|
|
18704
|
+
var Import$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Import "import"'), (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($R82, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
|
|
18477
18705
|
return { $loc, token: $1 };
|
|
18478
18706
|
});
|
|
18479
18707
|
function Import(ctx, state2) {
|
|
@@ -18835,7 +19063,7 @@ var JSXImplicitFragment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(JSXTag, (0,
|
|
|
18835
19063
|
function JSXImplicitFragment(ctx, state2) {
|
|
18836
19064
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXImplicitFragment", JSXImplicitFragment$0);
|
|
18837
19065
|
}
|
|
18838
|
-
var JSXTag$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19066
|
+
var JSXTag$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R83, "JSXTag /(?=[<])/"), _JSXTag), function(value) {
|
|
18839
19067
|
return value[1];
|
|
18840
19068
|
});
|
|
18841
19069
|
function JSXTag(ctx, state2) {
|
|
@@ -18977,7 +19205,7 @@ var JSXElementName$$ = [JSXElementName$0, JSXElementName$1];
|
|
|
18977
19205
|
function JSXElementName(ctx, state2) {
|
|
18978
19206
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXElementName", JSXElementName$$);
|
|
18979
19207
|
}
|
|
18980
|
-
var JSXIdentifierName$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19208
|
+
var JSXIdentifierName$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R84, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
18981
19209
|
function JSXIdentifierName(ctx, state2) {
|
|
18982
19210
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXIdentifierName", JSXIdentifierName$0);
|
|
18983
19211
|
}
|
|
@@ -19155,7 +19383,7 @@ var JSXAttribute$6 = (0, import_lib2.$TS)((0, import_lib2.$S)(Dot, JSXShorthandS
|
|
|
19155
19383
|
class: $2
|
|
19156
19384
|
};
|
|
19157
19385
|
});
|
|
19158
|
-
var JSXAttribute$7 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
19386
|
+
var JSXAttribute$7 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R85, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib2.$Y)(JSXAttributeSpace)), function($skip, $loc, $0, $1, $2, $3) {
|
|
19159
19387
|
var toggle = $1;
|
|
19160
19388
|
var id = $2;
|
|
19161
19389
|
const value = toggle === "+" ? "true" : "false";
|
|
@@ -19165,11 +19393,11 @@ var JSXAttribute$$ = [JSXAttribute$0, JSXAttribute$1, JSXAttribute$2, JSXAttribu
|
|
|
19165
19393
|
function JSXAttribute(ctx, state2) {
|
|
19166
19394
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXAttribute", JSXAttribute$$);
|
|
19167
19395
|
}
|
|
19168
|
-
var JSXAttributeSpace$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19396
|
+
var JSXAttributeSpace$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R86, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
19169
19397
|
function JSXAttributeSpace(ctx, state2) {
|
|
19170
19398
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXAttributeSpace", JSXAttributeSpace$0);
|
|
19171
19399
|
}
|
|
19172
|
-
var JSXShorthandString$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19400
|
+
var JSXShorthandString$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R87, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
19173
19401
|
return quoteString($0);
|
|
19174
19402
|
});
|
|
19175
19403
|
var JSXShorthandString$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(TemplateLiteral), function($skip, $loc, $0, $1) {
|
|
@@ -19212,7 +19440,7 @@ var JSXAttributeValue$3 = (0, import_lib2.$TS)((0, import_lib2.$S)(InsertInlineO
|
|
|
19212
19440
|
}
|
|
19213
19441
|
return [open, value, close];
|
|
19214
19442
|
});
|
|
19215
|
-
var JSXAttributeValue$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19443
|
+
var JSXAttributeValue$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R88, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
19216
19444
|
var JSXAttributeValue$$ = [JSXAttributeValue$0, JSXAttributeValue$1, JSXAttributeValue$2, JSXAttributeValue$3, JSXAttributeValue$4];
|
|
19217
19445
|
function JSXAttributeValue(ctx, state2) {
|
|
19218
19446
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXAttributeValue", JSXAttributeValue$$);
|
|
@@ -19224,7 +19452,7 @@ var InlineJSXAttributeValue$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(InlineJ
|
|
|
19224
19452
|
function InlineJSXAttributeValue(ctx, state2) {
|
|
19225
19453
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineJSXAttributeValue", InlineJSXAttributeValue$0);
|
|
19226
19454
|
}
|
|
19227
|
-
var InlineJSXBinaryOpRHS$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
19455
|
+
var InlineJSXBinaryOpRHS$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($R89, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
|
|
19228
19456
|
var op = $2;
|
|
19229
19457
|
var rhs = $3;
|
|
19230
19458
|
return [[], op, [], rhs];
|
|
@@ -19241,7 +19469,7 @@ var InlineJSXUnaryExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, im
|
|
|
19241
19469
|
function InlineJSXUnaryExpression(ctx, state2) {
|
|
19242
19470
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineJSXUnaryExpression", InlineJSXUnaryExpression$0);
|
|
19243
19471
|
}
|
|
19244
|
-
var InlineJSXUnaryOp$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19472
|
+
var InlineJSXUnaryOp$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R90, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
19245
19473
|
return { $loc, token: $0 };
|
|
19246
19474
|
});
|
|
19247
19475
|
function InlineJSXUnaryOp(ctx, state2) {
|
|
@@ -19488,13 +19716,13 @@ var JSXComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXP
|
|
|
19488
19716
|
function JSXComment(ctx, state2) {
|
|
19489
19717
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXComment", JSXComment$0);
|
|
19490
19718
|
}
|
|
19491
|
-
var JSXCommentContent$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19719
|
+
var JSXCommentContent$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R91, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
19492
19720
|
return { $loc, token: $0.replace(/\*\//g, "* /") };
|
|
19493
19721
|
});
|
|
19494
19722
|
function JSXCommentContent(ctx, state2) {
|
|
19495
19723
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXCommentContent", JSXCommentContent$0);
|
|
19496
19724
|
}
|
|
19497
|
-
var JSXText$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19725
|
+
var JSXText$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R92, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
19498
19726
|
return {
|
|
19499
19727
|
type: "JSXText",
|
|
19500
19728
|
token: $0,
|
|
@@ -20014,7 +20242,7 @@ var TypeProperty$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)
|
|
|
20014
20242
|
function TypeProperty(ctx, state2) {
|
|
20015
20243
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeProperty", TypeProperty$0);
|
|
20016
20244
|
}
|
|
20017
|
-
var TypeIndexSignature$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20245
|
+
var TypeIndexSignature$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R93, "TypeIndexSignature /[+-]?/")), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, (0, import_lib2.$E)((0, import_lib2.$S)(__, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R14, "TypeIndexSignature /[+-]/")), (0, import_lib2.$Y)((0, import_lib2.$S)((0, import_lib2.$E)(_), QuestionMark)))));
|
|
20018
20246
|
function TypeIndexSignature(ctx, state2) {
|
|
20019
20247
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeIndexSignature", TypeIndexSignature$0);
|
|
20020
20248
|
}
|
|
@@ -20515,7 +20743,7 @@ var TypeWithPostfix$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(TypeConditional
|
|
|
20515
20743
|
function TypeWithPostfix(ctx, state2) {
|
|
20516
20744
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeWithPostfix", TypeWithPostfix$0);
|
|
20517
20745
|
}
|
|
20518
|
-
var TypeConditional$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($
|
|
20746
|
+
var TypeConditional$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($R94, "TypeConditional /(?=if|unless)/"), TypeIfThenElse), function($skip, $loc, $0, $1, $2, $3) {
|
|
20519
20747
|
return prepend($1, expressionizeTypeIf($3));
|
|
20520
20748
|
});
|
|
20521
20749
|
var TypeConditional$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(TypeCondition, NotDedented, QuestionMark, __, Type, __, Colon, __, Type), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
@@ -20743,8 +20971,8 @@ function TypeApplicationStart(ctx, state2) {
|
|
|
20743
20971
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeApplicationStart", TypeApplicationStart$$);
|
|
20744
20972
|
}
|
|
20745
20973
|
var ForbiddenImplicitTypeCalls$0 = ReservedBinary;
|
|
20746
|
-
var ForbiddenImplicitTypeCalls$1 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20747
|
-
var ForbiddenImplicitTypeCalls$2 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20974
|
+
var ForbiddenImplicitTypeCalls$1 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R95, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
|
|
20975
|
+
var ForbiddenImplicitTypeCalls$2 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R96, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
20748
20976
|
var ForbiddenImplicitTypeCalls$$ = [ForbiddenImplicitTypeCalls$0, ForbiddenImplicitTypeCalls$1, ForbiddenImplicitTypeCalls$2];
|
|
20749
20977
|
function ForbiddenImplicitTypeCalls(ctx, state2) {
|
|
20750
20978
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ForbiddenImplicitTypeCalls", ForbiddenImplicitTypeCalls$$);
|
|
@@ -20834,7 +21062,7 @@ var TypeParameters$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(OpenAngleBracket
|
|
|
20834
21062
|
function TypeParameters(ctx, state2) {
|
|
20835
21063
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeParameters", TypeParameters$0);
|
|
20836
21064
|
}
|
|
20837
|
-
var TypeParameter$0 = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21065
|
+
var TypeParameter$0 = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R97, "TypeParameter /const|in|out/")), _)), Identifier, (0, import_lib2.$E)(TypeConstraint), (0, import_lib2.$E)(TypeInitializer), TypeParameterDelimiter);
|
|
20838
21066
|
function TypeParameter(ctx, state2) {
|
|
20839
21067
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeParameter", TypeParameter$0);
|
|
20840
21068
|
}
|
|
@@ -20861,15 +21089,15 @@ var ThisType$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$E)(_),
|
|
|
20861
21089
|
function ThisType(ctx, state2) {
|
|
20862
21090
|
return (0, import_lib2.$EVENT)(ctx, state2, "ThisType", ThisType$0);
|
|
20863
21091
|
}
|
|
20864
|
-
var Shebang$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21092
|
+
var Shebang$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R98, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
20865
21093
|
function Shebang(ctx, state2) {
|
|
20866
21094
|
return (0, import_lib2.$EVENT)(ctx, state2, "Shebang", Shebang$0);
|
|
20867
21095
|
}
|
|
20868
|
-
var CivetPrologue$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
21096
|
+
var CivetPrologue$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R99, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R22, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine))), function(value) {
|
|
20869
21097
|
var content = value[2];
|
|
20870
21098
|
return content;
|
|
20871
21099
|
});
|
|
20872
|
-
var CivetPrologue$1 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
21100
|
+
var CivetPrologue$1 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R99, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R22, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine))), function(value) {
|
|
20873
21101
|
var content = value[2];
|
|
20874
21102
|
return content;
|
|
20875
21103
|
});
|
|
@@ -20877,7 +21105,7 @@ var CivetPrologue$$ = [CivetPrologue$0, CivetPrologue$1];
|
|
|
20877
21105
|
function CivetPrologue(ctx, state2) {
|
|
20878
21106
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "CivetPrologue", CivetPrologue$$);
|
|
20879
21107
|
}
|
|
20880
|
-
var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($
|
|
21108
|
+
var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L248, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($R100, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
20881
21109
|
var options = $3;
|
|
20882
21110
|
return {
|
|
20883
21111
|
type: "CivetPrologue",
|
|
@@ -20888,7 +21116,7 @@ var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import
|
|
|
20888
21116
|
function CivetPrologueContent(ctx, state2) {
|
|
20889
21117
|
return (0, import_lib2.$EVENT)(ctx, state2, "CivetPrologueContent", CivetPrologueContent$0);
|
|
20890
21118
|
}
|
|
20891
|
-
var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
21119
|
+
var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R101, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
20892
21120
|
const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
|
|
20893
21121
|
if (l) return l.toUpperCase();
|
|
20894
21122
|
return "";
|
|
@@ -20910,11 +21138,11 @@ var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R99, "CivetOp
|
|
|
20910
21138
|
function CivetOption(ctx, state2) {
|
|
20911
21139
|
return (0, import_lib2.$EVENT)(ctx, state2, "CivetOption", CivetOption$0);
|
|
20912
21140
|
}
|
|
20913
|
-
var UnknownPrologue$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21141
|
+
var UnknownPrologue$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R99, "UnknownPrologue /[\\t ]*/")), StringLiteral, (0, import_lib2.$TEXT)(SimpleStatementDelimiter), EOS);
|
|
20914
21142
|
function UnknownPrologue(ctx, state2) {
|
|
20915
21143
|
return (0, import_lib2.$EVENT)(ctx, state2, "UnknownPrologue", UnknownPrologue$0);
|
|
20916
21144
|
}
|
|
20917
|
-
var TripleSlashDirective$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21145
|
+
var TripleSlashDirective$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R102, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), (0, import_lib2.$E)(EOS));
|
|
20918
21146
|
function TripleSlashDirective(ctx, state2) {
|
|
20919
21147
|
return (0, import_lib2.$EVENT)(ctx, state2, "TripleSlashDirective", TripleSlashDirective$0);
|
|
20920
21148
|
}
|
|
@@ -20930,13 +21158,13 @@ var PrologueString$$ = [PrologueString$0, PrologueString$1];
|
|
|
20930
21158
|
function PrologueString(ctx, state2) {
|
|
20931
21159
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "PrologueString", PrologueString$$);
|
|
20932
21160
|
}
|
|
20933
|
-
var EOS$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
21161
|
+
var EOS$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R103, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib2.$P)(RestOfLine)), function(value) {
|
|
20934
21162
|
return value[1];
|
|
20935
21163
|
});
|
|
20936
21164
|
function EOS(ctx, state2) {
|
|
20937
21165
|
return (0, import_lib2.$EVENT)(ctx, state2, "EOS", EOS$0);
|
|
20938
21166
|
}
|
|
20939
|
-
var EOL$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
21167
|
+
var EOL$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R104, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
20940
21168
|
return { $loc, token: $0 };
|
|
20941
21169
|
});
|
|
20942
21170
|
function EOL(ctx, state2) {
|
|
@@ -21365,7 +21593,7 @@ var Prologue$0 = (0, import_lib2.$Q)((0, import_lib2.$C)(TripleSlashDirective, (
|
|
|
21365
21593
|
function Prologue(ctx, state2) {
|
|
21366
21594
|
return (0, import_lib2.$EVENT)(ctx, state2, "Prologue", Prologue$0);
|
|
21367
21595
|
}
|
|
21368
|
-
var ProloguePrefix$0 = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
21596
|
+
var ProloguePrefix$0 = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R105, "ProloguePrefix /[^]*/")));
|
|
21369
21597
|
function ProloguePrefix(ctx, state2) {
|
|
21370
21598
|
return (0, import_lib2.$EVENT)(ctx, state2, "ProloguePrefix", ProloguePrefix$0);
|
|
21371
21599
|
}
|