@danielx/civet 0.10.3 → 0.10.5
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 -0
- package/dist/babel-plugin.js +1 -1
- package/dist/babel-plugin.mjs +1 -1
- package/dist/browser.js +64 -41
- package/dist/civet +1 -1
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/dist/esbuild-plugin.js +1 -1
- package/dist/esm.mjs +1 -1
- package/dist/main.js +74 -44
- package/dist/main.mjs +73 -43
- package/dist/node-worker.mjs +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/unplugin/astro.js +1 -1
- package/dist/unplugin/astro.mjs +1 -1
- package/dist/unplugin/esbuild.js +1 -1
- package/dist/unplugin/esbuild.mjs +1 -1
- package/dist/unplugin/farm.js +1 -1
- package/dist/unplugin/farm.mjs +1 -1
- package/dist/unplugin/rolldown.js +1 -1
- package/dist/unplugin/rolldown.mjs +1 -1
- package/dist/unplugin/rollup.js +1 -1
- package/dist/unplugin/rollup.mjs +1 -1
- package/dist/unplugin/rspack.js +1 -1
- package/dist/unplugin/rspack.mjs +1 -1
- package/dist/unplugin/unplugin.js +36 -38
- package/dist/unplugin/unplugin.mjs +36 -38
- package/dist/unplugin/vite.js +1 -1
- package/dist/unplugin/vite.mjs +1 -1
- package/dist/unplugin/webpack.js +1 -1
- package/dist/unplugin/webpack.mjs +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -483,7 +483,7 @@ ${body}`;
|
|
|
483
483
|
}
|
|
484
484
|
});
|
|
485
485
|
|
|
486
|
-
// unplugin-civet
|
|
486
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
487
487
|
var main_civet_exports = {};
|
|
488
488
|
__export(main_civet_exports, {
|
|
489
489
|
ParseError: () => import_lib2.ParseError,
|
|
@@ -504,7 +504,7 @@ module.exports = __toCommonJS(main_civet_exports);
|
|
|
504
504
|
// source/parser.hera
|
|
505
505
|
var import_lib2 = __toESM(require_machine());
|
|
506
506
|
|
|
507
|
-
// unplugin-civet
|
|
507
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
508
508
|
var lib_civet_exports = {};
|
|
509
509
|
__export(lib_civet_exports, {
|
|
510
510
|
addPostfixStatement: () => addPostfixStatement,
|
|
@@ -584,7 +584,7 @@ __export(lib_civet_exports, {
|
|
|
584
584
|
wrapTypeInPromise: () => wrapTypeInPromise
|
|
585
585
|
});
|
|
586
586
|
|
|
587
|
-
// unplugin-civet
|
|
587
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/util.civet.jsx
|
|
588
588
|
function len(arr, length) {
|
|
589
589
|
return arr.length === length;
|
|
590
590
|
}
|
|
@@ -1488,6 +1488,8 @@ function wrapIIFE(expressions, asyncFlag, generatorStar) {
|
|
|
1488
1488
|
},
|
|
1489
1489
|
parameters,
|
|
1490
1490
|
returnType: void 0,
|
|
1491
|
+
implicitReturn: true,
|
|
1492
|
+
// force implicit return in IIFE
|
|
1491
1493
|
children: generator.length ? [async, "function", generator, parameters] : [async, parameters]
|
|
1492
1494
|
};
|
|
1493
1495
|
let fn;
|
|
@@ -1583,7 +1585,7 @@ function flatJoin(array, separator) {
|
|
|
1583
1585
|
return result;
|
|
1584
1586
|
}
|
|
1585
1587
|
|
|
1586
|
-
// unplugin-civet
|
|
1588
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/traversal.civet.jsx
|
|
1587
1589
|
function gatherRecursiveWithinFunction(node, predicate) {
|
|
1588
1590
|
return gatherRecursive(node, predicate, isFunction);
|
|
1589
1591
|
}
|
|
@@ -1692,7 +1694,7 @@ function gatherRecursiveAll(node, predicate) {
|
|
|
1692
1694
|
return nodes;
|
|
1693
1695
|
}
|
|
1694
1696
|
|
|
1695
|
-
// unplugin-civet
|
|
1697
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/ref.civet.jsx
|
|
1696
1698
|
var range = (start, end) => {
|
|
1697
1699
|
const length = end - start;
|
|
1698
1700
|
if (length <= 0) return [];
|
|
@@ -1787,7 +1789,7 @@ function populateRefs(statements) {
|
|
|
1787
1789
|
}
|
|
1788
1790
|
}
|
|
1789
1791
|
|
|
1790
|
-
// unplugin-civet
|
|
1792
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/binding.civet.jsx
|
|
1791
1793
|
function adjustAtBindings(statements, asThis = false) {
|
|
1792
1794
|
for (let ref1 = gatherRecursiveAll(statements, ($1) => $1.type === "AtBindingProperty"), i1 = 0, len3 = ref1.length; i1 < len3; i1++) {
|
|
1793
1795
|
const binding = ref1[i1];
|
|
@@ -2054,12 +2056,12 @@ function gatherBindingPatternTypeSuffix(pattern) {
|
|
|
2054
2056
|
return pattern;
|
|
2055
2057
|
}
|
|
2056
2058
|
|
|
2057
|
-
// unplugin-civet
|
|
2059
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
2058
2060
|
var import_node_path = require("node:path");
|
|
2059
2061
|
var import_node_module = require("node:module");
|
|
2060
2062
|
var import_node_vm = __toESM(require("node:vm"));
|
|
2061
2063
|
|
|
2062
|
-
// unplugin-civet
|
|
2064
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/helper.civet.jsx
|
|
2063
2065
|
var preludeVar = "var ";
|
|
2064
2066
|
function ts(children) {
|
|
2065
2067
|
return {
|
|
@@ -2376,7 +2378,7 @@ function extractPreludeFor(node) {
|
|
|
2376
2378
|
}
|
|
2377
2379
|
}
|
|
2378
2380
|
|
|
2379
|
-
// unplugin-civet
|
|
2381
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/generate.civet.jsx
|
|
2380
2382
|
function stringify(node) {
|
|
2381
2383
|
try {
|
|
2382
2384
|
return JSON.stringify(removeParentPointers(node));
|
|
@@ -2486,7 +2488,7 @@ function prune(node) {
|
|
|
2486
2488
|
return node;
|
|
2487
2489
|
}
|
|
2488
2490
|
|
|
2489
|
-
// unplugin-civet
|
|
2491
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/comptime.civet.jsx
|
|
2490
2492
|
function expressionizeComptime(statement) {
|
|
2491
2493
|
const { expressions } = statement.block;
|
|
2492
2494
|
const expression = wrapIIFE(expressions, hasAwait(expressions));
|
|
@@ -2807,7 +2809,7 @@ function serialize(value, context) {
|
|
|
2807
2809
|
return recurse(value);
|
|
2808
2810
|
}
|
|
2809
2811
|
|
|
2810
|
-
// unplugin-civet
|
|
2812
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/function.civet.jsx
|
|
2811
2813
|
var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
2812
2814
|
function getTypeArguments(args) {
|
|
2813
2815
|
while (typeof args === "object" && args != null && "args" in args) {
|
|
@@ -2895,7 +2897,7 @@ function processReturn(f, implicitReturns) {
|
|
|
2895
2897
|
if (returnType && returnType.optional) {
|
|
2896
2898
|
convertOptionalType(returnType);
|
|
2897
2899
|
}
|
|
2898
|
-
if (!processReturnValue(f) && implicitReturns) {
|
|
2900
|
+
if (!processReturnValue(f) && (implicitReturns || f.signature.implicitReturn)) {
|
|
2899
2901
|
const { signature, block } = f;
|
|
2900
2902
|
const { modifier, name, returnType: returnType2 } = signature;
|
|
2901
2903
|
const { async, generator, set } = modifier;
|
|
@@ -4240,7 +4242,7 @@ function makeAmpersandFunction(rhs) {
|
|
|
4240
4242
|
return fn;
|
|
4241
4243
|
}
|
|
4242
4244
|
|
|
4243
|
-
// unplugin-civet
|
|
4245
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/block.civet.jsx
|
|
4244
4246
|
function blockWithPrefix(prefixStatements, block) {
|
|
4245
4247
|
if (prefixStatements && prefixStatements.length) {
|
|
4246
4248
|
const expressions = [...prefixStatements, ...block.expressions];
|
|
@@ -4461,7 +4463,7 @@ function blockContainingStatement(exp) {
|
|
|
4461
4463
|
};
|
|
4462
4464
|
}
|
|
4463
4465
|
|
|
4464
|
-
// unplugin-civet
|
|
4466
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/op.civet.jsx
|
|
4465
4467
|
var precedenceOrder = [
|
|
4466
4468
|
["||", "??"],
|
|
4467
4469
|
["^^"],
|
|
@@ -4797,7 +4799,7 @@ function expandChainedComparisons([first, binops]) {
|
|
|
4797
4799
|
}
|
|
4798
4800
|
}
|
|
4799
4801
|
|
|
4800
|
-
// unplugin-civet
|
|
4802
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pattern-matching.civet.jsx
|
|
4801
4803
|
function processPatternTest(lhs, patterns) {
|
|
4802
4804
|
const { ref, refAssignmentComma } = maybeRefAssignment(lhs, "m");
|
|
4803
4805
|
const conditionExpression = flatJoin(patterns.map(($1) => getPatternConditions($1, ref)).map(($2) => flatJoin($2, " && ")), " || ");
|
|
@@ -5316,7 +5318,7 @@ function aliasBinding(p, ref) {
|
|
|
5316
5318
|
}
|
|
5317
5319
|
}
|
|
5318
5320
|
|
|
5319
|
-
// unplugin-civet
|
|
5321
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/declaration.civet.jsx
|
|
5320
5322
|
function len2(arr, length) {
|
|
5321
5323
|
return arr.length === length;
|
|
5322
5324
|
}
|
|
@@ -5870,7 +5872,7 @@ function convertWithClause(withClause, extendsClause) {
|
|
|
5870
5872
|
return [extendsToken, insertTrimmingSpace(ws, " "), wrapped];
|
|
5871
5873
|
}
|
|
5872
5874
|
|
|
5873
|
-
// unplugin-civet
|
|
5875
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/unary.civet.jsx
|
|
5874
5876
|
function processUnaryExpression(pre, exp, post) {
|
|
5875
5877
|
if (!(pre.length || post)) {
|
|
5876
5878
|
return exp;
|
|
@@ -6032,7 +6034,7 @@ function processUnaryNestedExpression(pre, args, post) {
|
|
|
6032
6034
|
return processUnaryExpression(pre, args, post);
|
|
6033
6035
|
}
|
|
6034
6036
|
|
|
6035
|
-
// unplugin-civet
|
|
6037
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/pipe.civet.jsx
|
|
6036
6038
|
function constructInvocation(fn, arg) {
|
|
6037
6039
|
let expr = fn.expr;
|
|
6038
6040
|
while (expr.type === "ParenthesizedExpression") {
|
|
@@ -6255,7 +6257,7 @@ function processPipelineExpressions(statements) {
|
|
|
6255
6257
|
}
|
|
6256
6258
|
}
|
|
6257
6259
|
|
|
6258
|
-
// unplugin-civet
|
|
6260
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/for.civet.jsx
|
|
6259
6261
|
function processRangeExpression(start, ws1, range2, end) {
|
|
6260
6262
|
ws1 = [ws1, range2.children[0]];
|
|
6261
6263
|
const ws2 = range2.children[1];
|
|
@@ -6700,7 +6702,7 @@ function processForInOf($0) {
|
|
|
6700
6702
|
};
|
|
6701
6703
|
}
|
|
6702
6704
|
|
|
6703
|
-
// unplugin-civet
|
|
6705
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/auto-dec.civet.jsx
|
|
6704
6706
|
var concatAssign2 = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
|
|
6705
6707
|
function findDecs(statements) {
|
|
6706
6708
|
const declarations = gatherNodes(statements, ($) => $.type === "Declaration");
|
|
@@ -6846,7 +6848,7 @@ function createVarDecs(block, scopes, pushVar) {
|
|
|
6846
6848
|
scopes.pop();
|
|
6847
6849
|
}
|
|
6848
6850
|
|
|
6849
|
-
// unplugin-civet
|
|
6851
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/string.civet.jsx
|
|
6850
6852
|
function getIndentLevel(str, tab) {
|
|
6851
6853
|
if (tab != null && tab != 1) {
|
|
6852
6854
|
const tabs = str.match(/\t/g);
|
|
@@ -7014,7 +7016,7 @@ function quoteString(str) {
|
|
|
7014
7016
|
return JSON.stringify(str);
|
|
7015
7017
|
}
|
|
7016
7018
|
|
|
7017
|
-
// unplugin-civet
|
|
7019
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/parser/lib.civet.jsx
|
|
7018
7020
|
var xor = (a, b) => a ? !b && a : b;
|
|
7019
7021
|
function addPostfixStatement(statement, ws, post) {
|
|
7020
7022
|
const expressions = [
|
|
@@ -9009,6 +9011,7 @@ var grammar = {
|
|
|
9009
9011
|
AccessModifier,
|
|
9010
9012
|
FieldDefinition,
|
|
9011
9013
|
ThisLiteral,
|
|
9014
|
+
BasicThisLiteral,
|
|
9012
9015
|
HashThis,
|
|
9013
9016
|
LengthShorthand,
|
|
9014
9017
|
AtThis,
|
|
@@ -11374,23 +11377,30 @@ var NestedClassElement$0 = (0, import_lib2.$S)(Nested, ClassElement, StatementDe
|
|
|
11374
11377
|
function NestedClassElement(ctx, state2) {
|
|
11375
11378
|
return (0, import_lib2.$EVENT)(ctx, state2, "NestedClassElement", NestedClassElement$0);
|
|
11376
11379
|
}
|
|
11377
|
-
var ClassElement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))), ClassElementDefinition), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
11380
|
+
var ClassElement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(Decorators), (0, import_lib2.$E)((0, import_lib2.$S)(Declare, (0, import_lib2.$E)(_))), (0, import_lib2.$E)(AccessModifier), (0, import_lib2.$E)((0, import_lib2.$S)(Static, (0, import_lib2.$E)(_))), (0, import_lib2.$E)((0, import_lib2.$S)(Override, (0, import_lib2.$E)(_))), ClassElementDefinition), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
11378
11381
|
var decorators = $1;
|
|
11379
|
-
var
|
|
11382
|
+
var declare = $2;
|
|
11383
|
+
var access = $3;
|
|
11384
|
+
var static_ = $4;
|
|
11385
|
+
var override = $5;
|
|
11386
|
+
var definition = $6;
|
|
11387
|
+
const ts2 = definition.ts || !!declare;
|
|
11380
11388
|
if (definition.type === "MultiMethodDefinition") {
|
|
11381
11389
|
return {
|
|
11382
11390
|
...definition,
|
|
11391
|
+
ts: ts2,
|
|
11383
11392
|
children: definition.children.map((c) => {
|
|
11384
11393
|
return {
|
|
11385
11394
|
...c,
|
|
11386
|
-
children: [decorators, ...c.children]
|
|
11395
|
+
children: [decorators, declare, access, static_, override, ...c.children]
|
|
11387
11396
|
};
|
|
11388
11397
|
})
|
|
11389
11398
|
};
|
|
11390
11399
|
}
|
|
11391
11400
|
return {
|
|
11392
11401
|
...definition,
|
|
11393
|
-
|
|
11402
|
+
ts: ts2,
|
|
11403
|
+
children: [decorators, declare, access, static_, override, ...definition.children]
|
|
11394
11404
|
};
|
|
11395
11405
|
});
|
|
11396
11406
|
var ClassElement$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Static, BracedBlock), function($skip, $loc, $0, $1, $2) {
|
|
@@ -11539,11 +11549,8 @@ var FieldDefinition$$ = [FieldDefinition$0, FieldDefinition$1, FieldDefinition$2
|
|
|
11539
11549
|
function FieldDefinition(ctx, state2) {
|
|
11540
11550
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "FieldDefinition", FieldDefinition$$);
|
|
11541
11551
|
}
|
|
11542
|
-
var ThisLiteral$0 =
|
|
11543
|
-
|
|
11544
|
-
});
|
|
11545
|
-
var ThisLiteral$1 = HashThis;
|
|
11546
|
-
var ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
11552
|
+
var ThisLiteral$0 = HashThis;
|
|
11553
|
+
var ThisLiteral$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$E)(Hash), IdentifierName))), function($skip, $loc, $0, $1, $2) {
|
|
11547
11554
|
var at = $1;
|
|
11548
11555
|
var id = $2;
|
|
11549
11556
|
return {
|
|
@@ -11562,11 +11569,19 @@ var ThisLiteral$2 = (0, import_lib2.$TS)((0, import_lib2.$S)(AtThis, (0, import_
|
|
|
11562
11569
|
thisShorthand: true
|
|
11563
11570
|
};
|
|
11564
11571
|
});
|
|
11565
|
-
var ThisLiteral$
|
|
11566
|
-
var ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2
|
|
11572
|
+
var ThisLiteral$2 = BasicThisLiteral;
|
|
11573
|
+
var ThisLiteral$$ = [ThisLiteral$0, ThisLiteral$1, ThisLiteral$2];
|
|
11567
11574
|
function ThisLiteral(ctx, state2) {
|
|
11568
11575
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ThisLiteral", ThisLiteral$$);
|
|
11569
11576
|
}
|
|
11577
|
+
var BasicThisLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)(This), function(value) {
|
|
11578
|
+
return { "type": "Identifier", "name": "this", "children": [value[0]] };
|
|
11579
|
+
});
|
|
11580
|
+
var BasicThisLiteral$1 = AtThis;
|
|
11581
|
+
var BasicThisLiteral$$ = [BasicThisLiteral$0, BasicThisLiteral$1];
|
|
11582
|
+
function BasicThisLiteral(ctx, state2) {
|
|
11583
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "BasicThisLiteral", BasicThisLiteral$$);
|
|
11584
|
+
}
|
|
11570
11585
|
var HashThis$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(AtThis), LengthShorthand, (0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$Y)((0, import_lib2.$S)(_, (0, import_lib2.$E)((0, import_lib2.$S)(Not, __)), ActualIn)), (0, import_lib2.$EXPECT)($L0, 'HashThis ""')))), function($skip, $loc, $0, $1, $2, $3) {
|
|
11571
11586
|
var at = $1;
|
|
11572
11587
|
var id = $2;
|
|
@@ -11603,7 +11618,7 @@ var HashThis$$ = [HashThis$0, HashThis$1, HashThis$2];
|
|
|
11603
11618
|
function HashThis(ctx, state2) {
|
|
11604
11619
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HashThis", HashThis$$);
|
|
11605
11620
|
}
|
|
11606
|
-
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Hash, NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
11621
|
+
var LengthShorthand$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)(CoffeeCommentEnabled), Hash, NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
11607
11622
|
const id = "length";
|
|
11608
11623
|
return {
|
|
11609
11624
|
type: "Identifier",
|
|
@@ -12356,7 +12371,15 @@ var AtIdentifierRef$$ = [AtIdentifierRef$0, AtIdentifierRef$1];
|
|
|
12356
12371
|
function AtIdentifierRef(ctx, state2) {
|
|
12357
12372
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "AtIdentifierRef", AtIdentifierRef$$);
|
|
12358
12373
|
}
|
|
12359
|
-
var PinPattern$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret,
|
|
12374
|
+
var PinPattern$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret, IdentifierName, (0, import_lib2.$Y)(Colon)), function($skip, $loc, $0, $1, $2, $3) {
|
|
12375
|
+
var expression = $2;
|
|
12376
|
+
return {
|
|
12377
|
+
type: "PinPattern",
|
|
12378
|
+
children: [expression],
|
|
12379
|
+
expression
|
|
12380
|
+
};
|
|
12381
|
+
});
|
|
12382
|
+
var PinPattern$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret, SingleLineExpressionWithIndentedApplicationForbidden), function($skip, $loc, $0, $1, $2) {
|
|
12360
12383
|
var expression = $2;
|
|
12361
12384
|
return {
|
|
12362
12385
|
type: "PinPattern",
|
|
@@ -12364,7 +12387,7 @@ var PinPattern$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Caret, SingleLineExp
|
|
|
12364
12387
|
expression
|
|
12365
12388
|
};
|
|
12366
12389
|
});
|
|
12367
|
-
var PinPattern$
|
|
12390
|
+
var PinPattern$2 = (0, import_lib2.$TV)(ActualMemberExpression, function($skip, $loc, $0, $1) {
|
|
12368
12391
|
var expression = $0;
|
|
12369
12392
|
return {
|
|
12370
12393
|
type: "PinPattern",
|
|
@@ -12372,7 +12395,7 @@ var PinPattern$1 = (0, import_lib2.$TV)(ActualMemberExpression, function($skip,
|
|
|
12372
12395
|
expression
|
|
12373
12396
|
};
|
|
12374
12397
|
});
|
|
12375
|
-
var PinPattern$
|
|
12398
|
+
var PinPattern$3 = (0, import_lib2.$TV)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R14, "PinPattern /[+-]/"), NumericLiteral), function($skip, $loc, $0, $1) {
|
|
12376
12399
|
var expression = $0;
|
|
12377
12400
|
return {
|
|
12378
12401
|
type: "PinPattern",
|
|
@@ -12380,7 +12403,7 @@ var PinPattern$2 = (0, import_lib2.$TV)((0, import_lib2.$S)((0, import_lib2.$EXP
|
|
|
12380
12403
|
expression
|
|
12381
12404
|
};
|
|
12382
12405
|
});
|
|
12383
|
-
var PinPattern$
|
|
12406
|
+
var PinPattern$4 = (0, import_lib2.$TV)(Undefined, function($skip, $loc, $0, $1) {
|
|
12384
12407
|
var expression = $0;
|
|
12385
12408
|
return {
|
|
12386
12409
|
type: "PinPattern",
|
|
@@ -12388,7 +12411,7 @@ var PinPattern$3 = (0, import_lib2.$TV)(Undefined, function($skip, $loc, $0, $1)
|
|
|
12388
12411
|
expression
|
|
12389
12412
|
};
|
|
12390
12413
|
});
|
|
12391
|
-
var PinPattern$$ = [PinPattern$0, PinPattern$1, PinPattern$2, PinPattern$3];
|
|
12414
|
+
var PinPattern$$ = [PinPattern$0, PinPattern$1, PinPattern$2, PinPattern$3, PinPattern$4];
|
|
12392
12415
|
function PinPattern(ctx, state2) {
|
|
12393
12416
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "PinPattern", PinPattern$$);
|
|
12394
12417
|
}
|
|
@@ -19887,7 +19910,14 @@ var TypeIdentifier$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.
|
|
|
19887
19910
|
args
|
|
19888
19911
|
};
|
|
19889
19912
|
});
|
|
19890
|
-
var TypeIdentifier
|
|
19913
|
+
var TypeIdentifier$2 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), BasicThisLiteral), function($skip, $loc, $0, $1, $2) {
|
|
19914
|
+
return {
|
|
19915
|
+
type: "TypeIdentifier",
|
|
19916
|
+
children: $0,
|
|
19917
|
+
raw: $2.name
|
|
19918
|
+
};
|
|
19919
|
+
});
|
|
19920
|
+
var TypeIdentifier$$ = [TypeIdentifier$0, TypeIdentifier$1, TypeIdentifier$2];
|
|
19891
19921
|
function TypeIdentifier(ctx, state2) {
|
|
19892
19922
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeIdentifier", TypeIdentifier$$);
|
|
19893
19923
|
}
|
|
@@ -21168,7 +21198,7 @@ var wellKnownSymbols = [
|
|
|
21168
21198
|
"unscopables"
|
|
21169
21199
|
];
|
|
21170
21200
|
|
|
21171
|
-
// unplugin-civet
|
|
21201
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/sourcemap.civet.jsx
|
|
21172
21202
|
var sourcemap_civet_exports = {};
|
|
21173
21203
|
__export(sourcemap_civet_exports, {
|
|
21174
21204
|
SourceMap: () => SourceMap,
|
|
@@ -21482,7 +21512,7 @@ var remapPosition = function(position, sourcemapLines) {
|
|
|
21482
21512
|
}
|
|
21483
21513
|
};
|
|
21484
21514
|
|
|
21485
|
-
// unplugin-civet
|
|
21515
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/state-cache.civet.jsx
|
|
21486
21516
|
var StateCache = class {
|
|
21487
21517
|
cache = /* @__PURE__ */ new Map();
|
|
21488
21518
|
get(key) {
|
|
@@ -21522,7 +21552,7 @@ var StateCache = class {
|
|
|
21522
21552
|
}
|
|
21523
21553
|
};
|
|
21524
21554
|
|
|
21525
|
-
// unplugin-civet
|
|
21555
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/worker-pool.civet.jsx
|
|
21526
21556
|
var WorkerPool = class {
|
|
21527
21557
|
idle;
|
|
21528
21558
|
spawned;
|
|
@@ -21618,7 +21648,7 @@ var WorkerPool = class {
|
|
|
21618
21648
|
}
|
|
21619
21649
|
};
|
|
21620
21650
|
|
|
21621
|
-
// unplugin-civet
|
|
21651
|
+
// unplugin-civet:/home/daniel/apps/Civet/source/main.civet.jsx
|
|
21622
21652
|
var { SourceMap: SourceMap2 } = sourcemap_civet_exports;
|
|
21623
21653
|
var ParseErrors = class extends Error {
|
|
21624
21654
|
name = "ParseErrors";
|