@danielx/civet 0.6.53 → 0.6.54
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/dist/browser.js +47 -7
- package/dist/main.js +47 -7
- package/dist/main.mjs +47 -7
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -2744,7 +2744,7 @@ ${input.slice(result.pos)}
|
|
|
2744
2744
|
conditions.push([
|
|
2745
2745
|
ref,
|
|
2746
2746
|
" === ",
|
|
2747
|
-
pattern.
|
|
2747
|
+
pattern.expression
|
|
2748
2748
|
]);
|
|
2749
2749
|
break;
|
|
2750
2750
|
case "Literal":
|
|
@@ -3866,6 +3866,7 @@ ${input.slice(result.pos)}
|
|
|
3866
3866
|
OptionalDot,
|
|
3867
3867
|
NonNullAssertion,
|
|
3868
3868
|
MemberExpression,
|
|
3869
|
+
ActualMemberExpression,
|
|
3869
3870
|
MemberBase,
|
|
3870
3871
|
MemberExpressionRest,
|
|
3871
3872
|
MemberExpressionRestBody,
|
|
@@ -4078,6 +4079,7 @@ ${input.slice(result.pos)}
|
|
|
4078
4079
|
Condition,
|
|
4079
4080
|
DeclarationCondition,
|
|
4080
4081
|
ExpressionWithIndentedApplicationForbidden,
|
|
4082
|
+
SingleLineExpressionWithIndentedApplicationForbidden,
|
|
4081
4083
|
ExpressionWithObjectApplicationForbidden,
|
|
4082
4084
|
LeftHandSideExpressionWithObjectApplicationForbidden,
|
|
4083
4085
|
ForbidClassImplicitCall,
|
|
@@ -4212,6 +4214,7 @@ ${input.slice(result.pos)}
|
|
|
4212
4214
|
Await,
|
|
4213
4215
|
Backtick,
|
|
4214
4216
|
By,
|
|
4217
|
+
Caret,
|
|
4215
4218
|
Case,
|
|
4216
4219
|
Catch,
|
|
4217
4220
|
Class,
|
|
@@ -5868,6 +5871,16 @@ ${input.slice(result.pos)}
|
|
|
5868
5871
|
function MemberExpression(ctx, state) {
|
|
5869
5872
|
return $EVENT(ctx, state, "MemberExpression", MemberExpression$0);
|
|
5870
5873
|
}
|
|
5874
|
+
var ActualMemberExpression$0 = $TS($S(MemberBase, $P(MemberExpressionRest)), function($skip, $loc, $0, $1, $2) {
|
|
5875
|
+
var rest = $2;
|
|
5876
|
+
return processCallMemberExpression({
|
|
5877
|
+
type: "MemberExpression",
|
|
5878
|
+
children: [$1, ...rest].flat()
|
|
5879
|
+
});
|
|
5880
|
+
});
|
|
5881
|
+
function ActualMemberExpression(ctx, state) {
|
|
5882
|
+
return $EVENT(ctx, state, "ActualMemberExpression", ActualMemberExpression$0);
|
|
5883
|
+
}
|
|
5871
5884
|
var MemberBase$0 = PrimaryExpression;
|
|
5872
5885
|
var MemberBase$1 = SuperProperty;
|
|
5873
5886
|
var MemberBase$2 = MetaProperty;
|
|
@@ -6367,16 +6380,25 @@ ${input.slice(result.pos)}
|
|
|
6367
6380
|
function AtIdentifierRef(ctx, state) {
|
|
6368
6381
|
return $EVENT_C(ctx, state, "AtIdentifierRef", AtIdentifierRef$$);
|
|
6369
6382
|
}
|
|
6370
|
-
var PinPattern$0 = $TS($S(
|
|
6371
|
-
var
|
|
6383
|
+
var PinPattern$0 = $TS($S(Caret, SingleLineExpressionWithIndentedApplicationForbidden), function($skip, $loc, $0, $1, $2) {
|
|
6384
|
+
var expression = $2;
|
|
6372
6385
|
return {
|
|
6373
6386
|
type: "PinPattern",
|
|
6374
6387
|
children: $0,
|
|
6375
|
-
|
|
6388
|
+
expression
|
|
6376
6389
|
};
|
|
6377
6390
|
});
|
|
6391
|
+
var PinPattern$1 = $TV(ActualMemberExpression, function($skip, $loc, $0, $1) {
|
|
6392
|
+
var expression = $0;
|
|
6393
|
+
return {
|
|
6394
|
+
type: "PinPattern",
|
|
6395
|
+
children: [expression],
|
|
6396
|
+
expression
|
|
6397
|
+
};
|
|
6398
|
+
});
|
|
6399
|
+
var PinPattern$$ = [PinPattern$0, PinPattern$1];
|
|
6378
6400
|
function PinPattern(ctx, state) {
|
|
6379
|
-
return $
|
|
6401
|
+
return $EVENT_C(ctx, state, "PinPattern", PinPattern$$);
|
|
6380
6402
|
}
|
|
6381
6403
|
var BindingPattern$0 = ObjectBindingPattern;
|
|
6382
6404
|
var BindingPattern$1 = ArrayBindingPattern;
|
|
@@ -6526,7 +6548,7 @@ ${input.slice(result.pos)}
|
|
|
6526
6548
|
names: value.names
|
|
6527
6549
|
};
|
|
6528
6550
|
});
|
|
6529
|
-
var BindingProperty$2 = $TS($S($E(_), $E(
|
|
6551
|
+
var BindingProperty$2 = $TS($S($E(_), $E(Caret), BindingIdentifier, $E(Initializer)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6530
6552
|
var ws = $1;
|
|
6531
6553
|
var pin = $2;
|
|
6532
6554
|
var binding = $3;
|
|
@@ -6548,7 +6570,7 @@ ${input.slice(result.pos)}
|
|
|
6548
6570
|
name: binding,
|
|
6549
6571
|
value: {
|
|
6550
6572
|
type: "PinPattern",
|
|
6551
|
-
|
|
6573
|
+
expression: binding
|
|
6552
6574
|
}
|
|
6553
6575
|
};
|
|
6554
6576
|
}
|
|
@@ -9663,6 +9685,15 @@ ${input.slice(result.pos)}
|
|
|
9663
9685
|
function ExpressionWithIndentedApplicationForbidden(ctx, state) {
|
|
9664
9686
|
return $EVENT(ctx, state, "ExpressionWithIndentedApplicationForbidden", ExpressionWithIndentedApplicationForbidden$0);
|
|
9665
9687
|
}
|
|
9688
|
+
var SingleLineExpressionWithIndentedApplicationForbidden$0 = $TS($S(ForbidIndentedApplication, ForbidNewlineBinaryOp, $E(SingleLineAssignmentExpression), RestoreNewlineBinaryOp, RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9689
|
+
var exp = $3;
|
|
9690
|
+
if (exp)
|
|
9691
|
+
return exp;
|
|
9692
|
+
return $skip;
|
|
9693
|
+
});
|
|
9694
|
+
function SingleLineExpressionWithIndentedApplicationForbidden(ctx, state) {
|
|
9695
|
+
return $EVENT(ctx, state, "SingleLineExpressionWithIndentedApplicationForbidden", SingleLineExpressionWithIndentedApplicationForbidden$0);
|
|
9696
|
+
}
|
|
9666
9697
|
var ExpressionWithObjectApplicationForbidden$0 = $TS($S(ForbidBracedApplication, ForbidIndentedApplication, ForbidNewlineBinaryOp, $E(ExtendedExpression), RestoreNewlineBinaryOp, RestoreBracedApplication, RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
|
|
9667
9698
|
var exp = $4;
|
|
9668
9699
|
if (exp)
|
|
@@ -10816,6 +10847,12 @@ ${input.slice(result.pos)}
|
|
|
10816
10847
|
function By(ctx, state) {
|
|
10817
10848
|
return $EVENT(ctx, state, "By", By$0);
|
|
10818
10849
|
}
|
|
10850
|
+
var Caret$0 = $TV($EXPECT($L18, 'Caret "^"'), function($skip, $loc, $0, $1) {
|
|
10851
|
+
return { $loc, token: $1 };
|
|
10852
|
+
});
|
|
10853
|
+
function Caret(ctx, state) {
|
|
10854
|
+
return $EVENT(ctx, state, "Caret", Caret$0);
|
|
10855
|
+
}
|
|
10819
10856
|
var Case$0 = $TS($S($EXPECT($L121, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10820
10857
|
return { $loc, token: $1 };
|
|
10821
10858
|
});
|
|
@@ -13495,6 +13532,7 @@ ${input.slice(result.pos)}
|
|
|
13495
13532
|
exports.OptionalDot = OptionalDot;
|
|
13496
13533
|
exports.NonNullAssertion = NonNullAssertion;
|
|
13497
13534
|
exports.MemberExpression = MemberExpression;
|
|
13535
|
+
exports.ActualMemberExpression = ActualMemberExpression;
|
|
13498
13536
|
exports.MemberBase = MemberBase;
|
|
13499
13537
|
exports.MemberExpressionRest = MemberExpressionRest;
|
|
13500
13538
|
exports.MemberExpressionRestBody = MemberExpressionRestBody;
|
|
@@ -13707,6 +13745,7 @@ ${input.slice(result.pos)}
|
|
|
13707
13745
|
exports.Condition = Condition;
|
|
13708
13746
|
exports.DeclarationCondition = DeclarationCondition;
|
|
13709
13747
|
exports.ExpressionWithIndentedApplicationForbidden = ExpressionWithIndentedApplicationForbidden;
|
|
13748
|
+
exports.SingleLineExpressionWithIndentedApplicationForbidden = SingleLineExpressionWithIndentedApplicationForbidden;
|
|
13710
13749
|
exports.ExpressionWithObjectApplicationForbidden = ExpressionWithObjectApplicationForbidden;
|
|
13711
13750
|
exports.LeftHandSideExpressionWithObjectApplicationForbidden = LeftHandSideExpressionWithObjectApplicationForbidden;
|
|
13712
13751
|
exports.ForbidClassImplicitCall = ForbidClassImplicitCall;
|
|
@@ -13841,6 +13880,7 @@ ${input.slice(result.pos)}
|
|
|
13841
13880
|
exports.Await = Await;
|
|
13842
13881
|
exports.Backtick = Backtick;
|
|
13843
13882
|
exports.By = By;
|
|
13883
|
+
exports.Caret = Caret;
|
|
13844
13884
|
exports.Case = Case;
|
|
13845
13885
|
exports.Catch = Catch;
|
|
13846
13886
|
exports.Class = Class;
|
package/dist/main.js
CHANGED
|
@@ -2736,7 +2736,7 @@ var require_lib = __commonJS({
|
|
|
2736
2736
|
conditions.push([
|
|
2737
2737
|
ref,
|
|
2738
2738
|
" === ",
|
|
2739
|
-
pattern.
|
|
2739
|
+
pattern.expression
|
|
2740
2740
|
]);
|
|
2741
2741
|
break;
|
|
2742
2742
|
case "Literal":
|
|
@@ -3858,6 +3858,7 @@ var require_parser = __commonJS({
|
|
|
3858
3858
|
OptionalDot,
|
|
3859
3859
|
NonNullAssertion,
|
|
3860
3860
|
MemberExpression,
|
|
3861
|
+
ActualMemberExpression,
|
|
3861
3862
|
MemberBase,
|
|
3862
3863
|
MemberExpressionRest,
|
|
3863
3864
|
MemberExpressionRestBody,
|
|
@@ -4070,6 +4071,7 @@ var require_parser = __commonJS({
|
|
|
4070
4071
|
Condition,
|
|
4071
4072
|
DeclarationCondition,
|
|
4072
4073
|
ExpressionWithIndentedApplicationForbidden,
|
|
4074
|
+
SingleLineExpressionWithIndentedApplicationForbidden,
|
|
4073
4075
|
ExpressionWithObjectApplicationForbidden,
|
|
4074
4076
|
LeftHandSideExpressionWithObjectApplicationForbidden,
|
|
4075
4077
|
ForbidClassImplicitCall,
|
|
@@ -4204,6 +4206,7 @@ var require_parser = __commonJS({
|
|
|
4204
4206
|
Await,
|
|
4205
4207
|
Backtick,
|
|
4206
4208
|
By,
|
|
4209
|
+
Caret,
|
|
4207
4210
|
Case,
|
|
4208
4211
|
Catch,
|
|
4209
4212
|
Class,
|
|
@@ -5860,6 +5863,16 @@ var require_parser = __commonJS({
|
|
|
5860
5863
|
function MemberExpression(ctx, state) {
|
|
5861
5864
|
return $EVENT(ctx, state, "MemberExpression", MemberExpression$0);
|
|
5862
5865
|
}
|
|
5866
|
+
var ActualMemberExpression$0 = $TS($S(MemberBase, $P(MemberExpressionRest)), function($skip, $loc, $0, $1, $2) {
|
|
5867
|
+
var rest = $2;
|
|
5868
|
+
return processCallMemberExpression({
|
|
5869
|
+
type: "MemberExpression",
|
|
5870
|
+
children: [$1, ...rest].flat()
|
|
5871
|
+
});
|
|
5872
|
+
});
|
|
5873
|
+
function ActualMemberExpression(ctx, state) {
|
|
5874
|
+
return $EVENT(ctx, state, "ActualMemberExpression", ActualMemberExpression$0);
|
|
5875
|
+
}
|
|
5863
5876
|
var MemberBase$0 = PrimaryExpression;
|
|
5864
5877
|
var MemberBase$1 = SuperProperty;
|
|
5865
5878
|
var MemberBase$2 = MetaProperty;
|
|
@@ -6359,16 +6372,25 @@ var require_parser = __commonJS({
|
|
|
6359
6372
|
function AtIdentifierRef(ctx, state) {
|
|
6360
6373
|
return $EVENT_C(ctx, state, "AtIdentifierRef", AtIdentifierRef$$);
|
|
6361
6374
|
}
|
|
6362
|
-
var PinPattern$0 = $TS($S(
|
|
6363
|
-
var
|
|
6375
|
+
var PinPattern$0 = $TS($S(Caret, SingleLineExpressionWithIndentedApplicationForbidden), function($skip, $loc, $0, $1, $2) {
|
|
6376
|
+
var expression = $2;
|
|
6364
6377
|
return {
|
|
6365
6378
|
type: "PinPattern",
|
|
6366
6379
|
children: $0,
|
|
6367
|
-
|
|
6380
|
+
expression
|
|
6368
6381
|
};
|
|
6369
6382
|
});
|
|
6383
|
+
var PinPattern$1 = $TV(ActualMemberExpression, function($skip, $loc, $0, $1) {
|
|
6384
|
+
var expression = $0;
|
|
6385
|
+
return {
|
|
6386
|
+
type: "PinPattern",
|
|
6387
|
+
children: [expression],
|
|
6388
|
+
expression
|
|
6389
|
+
};
|
|
6390
|
+
});
|
|
6391
|
+
var PinPattern$$ = [PinPattern$0, PinPattern$1];
|
|
6370
6392
|
function PinPattern(ctx, state) {
|
|
6371
|
-
return $
|
|
6393
|
+
return $EVENT_C(ctx, state, "PinPattern", PinPattern$$);
|
|
6372
6394
|
}
|
|
6373
6395
|
var BindingPattern$0 = ObjectBindingPattern;
|
|
6374
6396
|
var BindingPattern$1 = ArrayBindingPattern;
|
|
@@ -6518,7 +6540,7 @@ var require_parser = __commonJS({
|
|
|
6518
6540
|
names: value.names
|
|
6519
6541
|
};
|
|
6520
6542
|
});
|
|
6521
|
-
var BindingProperty$2 = $TS($S($E(_), $E(
|
|
6543
|
+
var BindingProperty$2 = $TS($S($E(_), $E(Caret), BindingIdentifier, $E(Initializer)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6522
6544
|
var ws = $1;
|
|
6523
6545
|
var pin = $2;
|
|
6524
6546
|
var binding = $3;
|
|
@@ -6540,7 +6562,7 @@ var require_parser = __commonJS({
|
|
|
6540
6562
|
name: binding,
|
|
6541
6563
|
value: {
|
|
6542
6564
|
type: "PinPattern",
|
|
6543
|
-
|
|
6565
|
+
expression: binding
|
|
6544
6566
|
}
|
|
6545
6567
|
};
|
|
6546
6568
|
}
|
|
@@ -9655,6 +9677,15 @@ var require_parser = __commonJS({
|
|
|
9655
9677
|
function ExpressionWithIndentedApplicationForbidden(ctx, state) {
|
|
9656
9678
|
return $EVENT(ctx, state, "ExpressionWithIndentedApplicationForbidden", ExpressionWithIndentedApplicationForbidden$0);
|
|
9657
9679
|
}
|
|
9680
|
+
var SingleLineExpressionWithIndentedApplicationForbidden$0 = $TS($S(ForbidIndentedApplication, ForbidNewlineBinaryOp, $E(SingleLineAssignmentExpression), RestoreNewlineBinaryOp, RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9681
|
+
var exp = $3;
|
|
9682
|
+
if (exp)
|
|
9683
|
+
return exp;
|
|
9684
|
+
return $skip;
|
|
9685
|
+
});
|
|
9686
|
+
function SingleLineExpressionWithIndentedApplicationForbidden(ctx, state) {
|
|
9687
|
+
return $EVENT(ctx, state, "SingleLineExpressionWithIndentedApplicationForbidden", SingleLineExpressionWithIndentedApplicationForbidden$0);
|
|
9688
|
+
}
|
|
9658
9689
|
var ExpressionWithObjectApplicationForbidden$0 = $TS($S(ForbidBracedApplication, ForbidIndentedApplication, ForbidNewlineBinaryOp, $E(ExtendedExpression), RestoreNewlineBinaryOp, RestoreBracedApplication, RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
|
|
9659
9690
|
var exp = $4;
|
|
9660
9691
|
if (exp)
|
|
@@ -10808,6 +10839,12 @@ var require_parser = __commonJS({
|
|
|
10808
10839
|
function By(ctx, state) {
|
|
10809
10840
|
return $EVENT(ctx, state, "By", By$0);
|
|
10810
10841
|
}
|
|
10842
|
+
var Caret$0 = $TV($EXPECT($L18, 'Caret "^"'), function($skip, $loc, $0, $1) {
|
|
10843
|
+
return { $loc, token: $1 };
|
|
10844
|
+
});
|
|
10845
|
+
function Caret(ctx, state) {
|
|
10846
|
+
return $EVENT(ctx, state, "Caret", Caret$0);
|
|
10847
|
+
}
|
|
10811
10848
|
var Case$0 = $TS($S($EXPECT($L121, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10812
10849
|
return { $loc, token: $1 };
|
|
10813
10850
|
});
|
|
@@ -13487,6 +13524,7 @@ var require_parser = __commonJS({
|
|
|
13487
13524
|
exports.OptionalDot = OptionalDot;
|
|
13488
13525
|
exports.NonNullAssertion = NonNullAssertion;
|
|
13489
13526
|
exports.MemberExpression = MemberExpression;
|
|
13527
|
+
exports.ActualMemberExpression = ActualMemberExpression;
|
|
13490
13528
|
exports.MemberBase = MemberBase;
|
|
13491
13529
|
exports.MemberExpressionRest = MemberExpressionRest;
|
|
13492
13530
|
exports.MemberExpressionRestBody = MemberExpressionRestBody;
|
|
@@ -13699,6 +13737,7 @@ var require_parser = __commonJS({
|
|
|
13699
13737
|
exports.Condition = Condition;
|
|
13700
13738
|
exports.DeclarationCondition = DeclarationCondition;
|
|
13701
13739
|
exports.ExpressionWithIndentedApplicationForbidden = ExpressionWithIndentedApplicationForbidden;
|
|
13740
|
+
exports.SingleLineExpressionWithIndentedApplicationForbidden = SingleLineExpressionWithIndentedApplicationForbidden;
|
|
13702
13741
|
exports.ExpressionWithObjectApplicationForbidden = ExpressionWithObjectApplicationForbidden;
|
|
13703
13742
|
exports.LeftHandSideExpressionWithObjectApplicationForbidden = LeftHandSideExpressionWithObjectApplicationForbidden;
|
|
13704
13743
|
exports.ForbidClassImplicitCall = ForbidClassImplicitCall;
|
|
@@ -13833,6 +13872,7 @@ var require_parser = __commonJS({
|
|
|
13833
13872
|
exports.Await = Await;
|
|
13834
13873
|
exports.Backtick = Backtick;
|
|
13835
13874
|
exports.By = By;
|
|
13875
|
+
exports.Caret = Caret;
|
|
13836
13876
|
exports.Case = Case;
|
|
13837
13877
|
exports.Catch = Catch;
|
|
13838
13878
|
exports.Class = Class;
|
package/dist/main.mjs
CHANGED
|
@@ -2734,7 +2734,7 @@ var require_lib = __commonJS({
|
|
|
2734
2734
|
conditions.push([
|
|
2735
2735
|
ref,
|
|
2736
2736
|
" === ",
|
|
2737
|
-
pattern.
|
|
2737
|
+
pattern.expression
|
|
2738
2738
|
]);
|
|
2739
2739
|
break;
|
|
2740
2740
|
case "Literal":
|
|
@@ -3856,6 +3856,7 @@ var require_parser = __commonJS({
|
|
|
3856
3856
|
OptionalDot,
|
|
3857
3857
|
NonNullAssertion,
|
|
3858
3858
|
MemberExpression,
|
|
3859
|
+
ActualMemberExpression,
|
|
3859
3860
|
MemberBase,
|
|
3860
3861
|
MemberExpressionRest,
|
|
3861
3862
|
MemberExpressionRestBody,
|
|
@@ -4068,6 +4069,7 @@ var require_parser = __commonJS({
|
|
|
4068
4069
|
Condition,
|
|
4069
4070
|
DeclarationCondition,
|
|
4070
4071
|
ExpressionWithIndentedApplicationForbidden,
|
|
4072
|
+
SingleLineExpressionWithIndentedApplicationForbidden,
|
|
4071
4073
|
ExpressionWithObjectApplicationForbidden,
|
|
4072
4074
|
LeftHandSideExpressionWithObjectApplicationForbidden,
|
|
4073
4075
|
ForbidClassImplicitCall,
|
|
@@ -4202,6 +4204,7 @@ var require_parser = __commonJS({
|
|
|
4202
4204
|
Await,
|
|
4203
4205
|
Backtick,
|
|
4204
4206
|
By,
|
|
4207
|
+
Caret,
|
|
4205
4208
|
Case,
|
|
4206
4209
|
Catch,
|
|
4207
4210
|
Class,
|
|
@@ -5858,6 +5861,16 @@ var require_parser = __commonJS({
|
|
|
5858
5861
|
function MemberExpression(ctx, state) {
|
|
5859
5862
|
return $EVENT(ctx, state, "MemberExpression", MemberExpression$0);
|
|
5860
5863
|
}
|
|
5864
|
+
var ActualMemberExpression$0 = $TS($S(MemberBase, $P(MemberExpressionRest)), function($skip, $loc, $0, $1, $2) {
|
|
5865
|
+
var rest = $2;
|
|
5866
|
+
return processCallMemberExpression({
|
|
5867
|
+
type: "MemberExpression",
|
|
5868
|
+
children: [$1, ...rest].flat()
|
|
5869
|
+
});
|
|
5870
|
+
});
|
|
5871
|
+
function ActualMemberExpression(ctx, state) {
|
|
5872
|
+
return $EVENT(ctx, state, "ActualMemberExpression", ActualMemberExpression$0);
|
|
5873
|
+
}
|
|
5861
5874
|
var MemberBase$0 = PrimaryExpression;
|
|
5862
5875
|
var MemberBase$1 = SuperProperty;
|
|
5863
5876
|
var MemberBase$2 = MetaProperty;
|
|
@@ -6357,16 +6370,25 @@ var require_parser = __commonJS({
|
|
|
6357
6370
|
function AtIdentifierRef(ctx, state) {
|
|
6358
6371
|
return $EVENT_C(ctx, state, "AtIdentifierRef", AtIdentifierRef$$);
|
|
6359
6372
|
}
|
|
6360
|
-
var PinPattern$0 = $TS($S(
|
|
6361
|
-
var
|
|
6373
|
+
var PinPattern$0 = $TS($S(Caret, SingleLineExpressionWithIndentedApplicationForbidden), function($skip, $loc, $0, $1, $2) {
|
|
6374
|
+
var expression = $2;
|
|
6362
6375
|
return {
|
|
6363
6376
|
type: "PinPattern",
|
|
6364
6377
|
children: $0,
|
|
6365
|
-
|
|
6378
|
+
expression
|
|
6366
6379
|
};
|
|
6367
6380
|
});
|
|
6381
|
+
var PinPattern$1 = $TV(ActualMemberExpression, function($skip, $loc, $0, $1) {
|
|
6382
|
+
var expression = $0;
|
|
6383
|
+
return {
|
|
6384
|
+
type: "PinPattern",
|
|
6385
|
+
children: [expression],
|
|
6386
|
+
expression
|
|
6387
|
+
};
|
|
6388
|
+
});
|
|
6389
|
+
var PinPattern$$ = [PinPattern$0, PinPattern$1];
|
|
6368
6390
|
function PinPattern(ctx, state) {
|
|
6369
|
-
return $
|
|
6391
|
+
return $EVENT_C(ctx, state, "PinPattern", PinPattern$$);
|
|
6370
6392
|
}
|
|
6371
6393
|
var BindingPattern$0 = ObjectBindingPattern;
|
|
6372
6394
|
var BindingPattern$1 = ArrayBindingPattern;
|
|
@@ -6516,7 +6538,7 @@ var require_parser = __commonJS({
|
|
|
6516
6538
|
names: value.names
|
|
6517
6539
|
};
|
|
6518
6540
|
});
|
|
6519
|
-
var BindingProperty$2 = $TS($S($E(_), $E(
|
|
6541
|
+
var BindingProperty$2 = $TS($S($E(_), $E(Caret), BindingIdentifier, $E(Initializer)), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
6520
6542
|
var ws = $1;
|
|
6521
6543
|
var pin = $2;
|
|
6522
6544
|
var binding = $3;
|
|
@@ -6538,7 +6560,7 @@ var require_parser = __commonJS({
|
|
|
6538
6560
|
name: binding,
|
|
6539
6561
|
value: {
|
|
6540
6562
|
type: "PinPattern",
|
|
6541
|
-
|
|
6563
|
+
expression: binding
|
|
6542
6564
|
}
|
|
6543
6565
|
};
|
|
6544
6566
|
}
|
|
@@ -9653,6 +9675,15 @@ var require_parser = __commonJS({
|
|
|
9653
9675
|
function ExpressionWithIndentedApplicationForbidden(ctx, state) {
|
|
9654
9676
|
return $EVENT(ctx, state, "ExpressionWithIndentedApplicationForbidden", ExpressionWithIndentedApplicationForbidden$0);
|
|
9655
9677
|
}
|
|
9678
|
+
var SingleLineExpressionWithIndentedApplicationForbidden$0 = $TS($S(ForbidIndentedApplication, ForbidNewlineBinaryOp, $E(SingleLineAssignmentExpression), RestoreNewlineBinaryOp, RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9679
|
+
var exp = $3;
|
|
9680
|
+
if (exp)
|
|
9681
|
+
return exp;
|
|
9682
|
+
return $skip;
|
|
9683
|
+
});
|
|
9684
|
+
function SingleLineExpressionWithIndentedApplicationForbidden(ctx, state) {
|
|
9685
|
+
return $EVENT(ctx, state, "SingleLineExpressionWithIndentedApplicationForbidden", SingleLineExpressionWithIndentedApplicationForbidden$0);
|
|
9686
|
+
}
|
|
9656
9687
|
var ExpressionWithObjectApplicationForbidden$0 = $TS($S(ForbidBracedApplication, ForbidIndentedApplication, ForbidNewlineBinaryOp, $E(ExtendedExpression), RestoreNewlineBinaryOp, RestoreBracedApplication, RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
|
|
9657
9688
|
var exp = $4;
|
|
9658
9689
|
if (exp)
|
|
@@ -10806,6 +10837,12 @@ var require_parser = __commonJS({
|
|
|
10806
10837
|
function By(ctx, state) {
|
|
10807
10838
|
return $EVENT(ctx, state, "By", By$0);
|
|
10808
10839
|
}
|
|
10840
|
+
var Caret$0 = $TV($EXPECT($L18, 'Caret "^"'), function($skip, $loc, $0, $1) {
|
|
10841
|
+
return { $loc, token: $1 };
|
|
10842
|
+
});
|
|
10843
|
+
function Caret(ctx, state) {
|
|
10844
|
+
return $EVENT(ctx, state, "Caret", Caret$0);
|
|
10845
|
+
}
|
|
10809
10846
|
var Case$0 = $TS($S($EXPECT($L121, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10810
10847
|
return { $loc, token: $1 };
|
|
10811
10848
|
});
|
|
@@ -13485,6 +13522,7 @@ var require_parser = __commonJS({
|
|
|
13485
13522
|
exports.OptionalDot = OptionalDot;
|
|
13486
13523
|
exports.NonNullAssertion = NonNullAssertion;
|
|
13487
13524
|
exports.MemberExpression = MemberExpression;
|
|
13525
|
+
exports.ActualMemberExpression = ActualMemberExpression;
|
|
13488
13526
|
exports.MemberBase = MemberBase;
|
|
13489
13527
|
exports.MemberExpressionRest = MemberExpressionRest;
|
|
13490
13528
|
exports.MemberExpressionRestBody = MemberExpressionRestBody;
|
|
@@ -13697,6 +13735,7 @@ var require_parser = __commonJS({
|
|
|
13697
13735
|
exports.Condition = Condition;
|
|
13698
13736
|
exports.DeclarationCondition = DeclarationCondition;
|
|
13699
13737
|
exports.ExpressionWithIndentedApplicationForbidden = ExpressionWithIndentedApplicationForbidden;
|
|
13738
|
+
exports.SingleLineExpressionWithIndentedApplicationForbidden = SingleLineExpressionWithIndentedApplicationForbidden;
|
|
13700
13739
|
exports.ExpressionWithObjectApplicationForbidden = ExpressionWithObjectApplicationForbidden;
|
|
13701
13740
|
exports.LeftHandSideExpressionWithObjectApplicationForbidden = LeftHandSideExpressionWithObjectApplicationForbidden;
|
|
13702
13741
|
exports.ForbidClassImplicitCall = ForbidClassImplicitCall;
|
|
@@ -13831,6 +13870,7 @@ var require_parser = __commonJS({
|
|
|
13831
13870
|
exports.Await = Await;
|
|
13832
13871
|
exports.Backtick = Backtick;
|
|
13833
13872
|
exports.By = By;
|
|
13873
|
+
exports.Caret = Caret;
|
|
13834
13874
|
exports.Case = Case;
|
|
13835
13875
|
exports.Catch = Catch;
|
|
13836
13876
|
exports.Class = Class;
|