@danielx/civet 0.5.49 → 0.5.50
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 +152 -21
- package/dist/main.js +152 -21
- package/dist/main.mjs +152 -21
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -878,6 +878,7 @@ ${input.slice(result.pos)}
|
|
|
878
878
|
NestedInterfaceProperties,
|
|
879
879
|
NestedInterfaceProperty,
|
|
880
880
|
InterfaceProperty,
|
|
881
|
+
BasicInterfaceProperty,
|
|
881
882
|
InterfacePropertyDelimiter,
|
|
882
883
|
NamespaceBlock,
|
|
883
884
|
NestedTypeDeclarations,
|
|
@@ -901,6 +902,9 @@ ${input.slice(result.pos)}
|
|
|
901
902
|
NestedType,
|
|
902
903
|
TypeConditional,
|
|
903
904
|
TypeLiteral,
|
|
905
|
+
InlineInterfaceLiteral,
|
|
906
|
+
InlineBasicInterfaceProperty,
|
|
907
|
+
InlineInterfacePropertyDelimiter,
|
|
904
908
|
TypeBinaryOp,
|
|
905
909
|
FunctionType,
|
|
906
910
|
TypeArguments,
|
|
@@ -6591,17 +6595,27 @@ ${input.slice(result.pos)}
|
|
|
6591
6595
|
return {
|
|
6592
6596
|
$loc,
|
|
6593
6597
|
token: "instanceof",
|
|
6594
|
-
special: true
|
|
6598
|
+
special: true,
|
|
6599
|
+
negated: true
|
|
6595
6600
|
};
|
|
6596
6601
|
});
|
|
6597
6602
|
var BinaryOpSymbol$29 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L68, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
6598
6603
|
return {
|
|
6599
6604
|
$loc,
|
|
6600
6605
|
token: "in",
|
|
6606
|
+
special: true,
|
|
6607
|
+
negated: true
|
|
6608
|
+
};
|
|
6609
|
+
});
|
|
6610
|
+
var BinaryOpSymbol$30 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
6611
|
+
return {
|
|
6612
|
+
method: "includes",
|
|
6613
|
+
relational: true,
|
|
6614
|
+
reversed: true,
|
|
6601
6615
|
special: true
|
|
6602
6616
|
};
|
|
6603
6617
|
});
|
|
6604
|
-
var BinaryOpSymbol$
|
|
6618
|
+
var BinaryOpSymbol$31 = $TS($S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
6605
6619
|
return {
|
|
6606
6620
|
call: [module.getRef("indexOf"), ".call"],
|
|
6607
6621
|
relational: true,
|
|
@@ -6610,7 +6624,16 @@ ${input.slice(result.pos)}
|
|
|
6610
6624
|
special: true
|
|
6611
6625
|
};
|
|
6612
6626
|
});
|
|
6613
|
-
var BinaryOpSymbol$
|
|
6627
|
+
var BinaryOpSymbol$32 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
6628
|
+
return {
|
|
6629
|
+
method: "includes",
|
|
6630
|
+
relational: true,
|
|
6631
|
+
reversed: true,
|
|
6632
|
+
special: true,
|
|
6633
|
+
negated: true
|
|
6634
|
+
};
|
|
6635
|
+
});
|
|
6636
|
+
var BinaryOpSymbol$33 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
6614
6637
|
return {
|
|
6615
6638
|
call: [module.getRef("indexOf"), ".call"],
|
|
6616
6639
|
relational: true,
|
|
@@ -6619,18 +6642,18 @@ ${input.slice(result.pos)}
|
|
|
6619
6642
|
special: true
|
|
6620
6643
|
};
|
|
6621
6644
|
});
|
|
6622
|
-
var BinaryOpSymbol$
|
|
6645
|
+
var BinaryOpSymbol$34 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
|
|
6623
6646
|
return "!==";
|
|
6624
6647
|
});
|
|
6625
|
-
var BinaryOpSymbol$
|
|
6648
|
+
var BinaryOpSymbol$35 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
|
|
6626
6649
|
return "===";
|
|
6627
6650
|
});
|
|
6628
|
-
var BinaryOpSymbol$
|
|
6651
|
+
var BinaryOpSymbol$36 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
6629
6652
|
return $1;
|
|
6630
6653
|
});
|
|
6631
|
-
var BinaryOpSymbol$
|
|
6632
|
-
var BinaryOpSymbol$
|
|
6633
|
-
var BinaryOpSymbol$
|
|
6654
|
+
var BinaryOpSymbol$37 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
|
|
6655
|
+
var BinaryOpSymbol$38 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
|
|
6656
|
+
var BinaryOpSymbol$39 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
|
|
6634
6657
|
function BinaryOpSymbol(state) {
|
|
6635
6658
|
let eventData;
|
|
6636
6659
|
if (state.events) {
|
|
@@ -6642,12 +6665,12 @@ ${input.slice(result.pos)}
|
|
|
6642
6665
|
}
|
|
6643
6666
|
}
|
|
6644
6667
|
if (state.tokenize) {
|
|
6645
|
-
const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state));
|
|
6668
|
+
const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state));
|
|
6646
6669
|
if (state.events)
|
|
6647
6670
|
state.events.exit?.("BinaryOpSymbol", state, result, eventData);
|
|
6648
6671
|
return result;
|
|
6649
6672
|
} else {
|
|
6650
|
-
const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state);
|
|
6673
|
+
const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state);
|
|
6651
6674
|
if (state.events)
|
|
6652
6675
|
state.events.exit?.("BinaryOpSymbol", state, result, eventData);
|
|
6653
6676
|
return result;
|
|
@@ -14509,7 +14532,7 @@ ${input.slice(result.pos)}
|
|
|
14509
14532
|
return result;
|
|
14510
14533
|
}
|
|
14511
14534
|
}
|
|
14512
|
-
var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, __, Type);
|
|
14535
|
+
var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, $C($S($E(_), Type), $S(__, Type)));
|
|
14513
14536
|
var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
|
|
14514
14537
|
var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
|
|
14515
14538
|
var TypeDeclarationRest$3 = FunctionSignature;
|
|
@@ -14772,7 +14795,7 @@ ${input.slice(result.pos)}
|
|
|
14772
14795
|
return result;
|
|
14773
14796
|
}
|
|
14774
14797
|
}
|
|
14775
|
-
var InterfaceProperty$0 =
|
|
14798
|
+
var InterfaceProperty$0 = BasicInterfaceProperty;
|
|
14776
14799
|
var InterfaceProperty$1 = $S(NonEmptyParameters, TypeSuffix, InterfacePropertyDelimiter);
|
|
14777
14800
|
var InterfaceProperty$2 = $S(MethodSignature, InterfacePropertyDelimiter);
|
|
14778
14801
|
function InterfaceProperty(state) {
|
|
@@ -14797,6 +14820,29 @@ ${input.slice(result.pos)}
|
|
|
14797
14820
|
return result;
|
|
14798
14821
|
}
|
|
14799
14822
|
}
|
|
14823
|
+
var BasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
|
|
14824
|
+
function BasicInterfaceProperty(state) {
|
|
14825
|
+
let eventData;
|
|
14826
|
+
if (state.events) {
|
|
14827
|
+
const result = state.events.enter?.("BasicInterfaceProperty", state);
|
|
14828
|
+
if (result) {
|
|
14829
|
+
if (result.cache)
|
|
14830
|
+
return result.cache;
|
|
14831
|
+
eventData = result.data;
|
|
14832
|
+
}
|
|
14833
|
+
}
|
|
14834
|
+
if (state.tokenize) {
|
|
14835
|
+
const result = $TOKEN("BasicInterfaceProperty", state, BasicInterfaceProperty$0(state));
|
|
14836
|
+
if (state.events)
|
|
14837
|
+
state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
|
|
14838
|
+
return result;
|
|
14839
|
+
} else {
|
|
14840
|
+
const result = BasicInterfaceProperty$0(state);
|
|
14841
|
+
if (state.events)
|
|
14842
|
+
state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
|
|
14843
|
+
return result;
|
|
14844
|
+
}
|
|
14845
|
+
}
|
|
14800
14846
|
var InterfacePropertyDelimiter$0 = $S($Q(_), $C(Semicolon, Comma));
|
|
14801
14847
|
var InterfacePropertyDelimiter$1 = $Y($S(__, CloseBrace));
|
|
14802
14848
|
var InterfacePropertyDelimiter$2 = $Y(EOS);
|
|
@@ -15179,12 +15225,13 @@ ${input.slice(result.pos)}
|
|
|
15179
15225
|
}
|
|
15180
15226
|
}
|
|
15181
15227
|
var TypePrimary$0 = InterfaceBlock;
|
|
15182
|
-
var TypePrimary$1 = $S(
|
|
15183
|
-
var TypePrimary$2 = $S($E(_),
|
|
15184
|
-
var TypePrimary$3 = $S($E(_),
|
|
15185
|
-
var TypePrimary$4 = $S($E(_),
|
|
15228
|
+
var TypePrimary$1 = $S($E(_), FunctionType);
|
|
15229
|
+
var TypePrimary$2 = $S($E(_), InlineInterfaceLiteral);
|
|
15230
|
+
var TypePrimary$3 = $S($E(_), TypeTuple);
|
|
15231
|
+
var TypePrimary$4 = $S($E(_), ImportType);
|
|
15186
15232
|
var TypePrimary$5 = $S($E(_), TypeLiteral);
|
|
15187
15233
|
var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
|
|
15234
|
+
var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
|
|
15188
15235
|
function TypePrimary(state) {
|
|
15189
15236
|
let eventData;
|
|
15190
15237
|
if (state.events) {
|
|
@@ -15196,12 +15243,12 @@ ${input.slice(result.pos)}
|
|
|
15196
15243
|
}
|
|
15197
15244
|
}
|
|
15198
15245
|
if (state.tokenize) {
|
|
15199
|
-
const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state));
|
|
15246
|
+
const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state));
|
|
15200
15247
|
if (state.events)
|
|
15201
15248
|
state.events.exit?.("TypePrimary", state, result, eventData);
|
|
15202
15249
|
return result;
|
|
15203
15250
|
} else {
|
|
15204
|
-
const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state);
|
|
15251
|
+
const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state);
|
|
15205
15252
|
if (state.events)
|
|
15206
15253
|
state.events.exit?.("TypePrimary", state, result, eventData);
|
|
15207
15254
|
return result;
|
|
@@ -15386,6 +15433,80 @@ ${input.slice(result.pos)}
|
|
|
15386
15433
|
return result;
|
|
15387
15434
|
}
|
|
15388
15435
|
}
|
|
15436
|
+
var InlineInterfaceLiteral$0 = $S(InsertInlineOpenBrace, InlineBasicInterfaceProperty, $Q($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertCloseBrace);
|
|
15437
|
+
function InlineInterfaceLiteral(state) {
|
|
15438
|
+
let eventData;
|
|
15439
|
+
if (state.events) {
|
|
15440
|
+
const result = state.events.enter?.("InlineInterfaceLiteral", state);
|
|
15441
|
+
if (result) {
|
|
15442
|
+
if (result.cache)
|
|
15443
|
+
return result.cache;
|
|
15444
|
+
eventData = result.data;
|
|
15445
|
+
}
|
|
15446
|
+
}
|
|
15447
|
+
if (state.tokenize) {
|
|
15448
|
+
const result = $TOKEN("InlineInterfaceLiteral", state, InlineInterfaceLiteral$0(state));
|
|
15449
|
+
if (state.events)
|
|
15450
|
+
state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
|
|
15451
|
+
return result;
|
|
15452
|
+
} else {
|
|
15453
|
+
const result = InlineInterfaceLiteral$0(state);
|
|
15454
|
+
if (state.events)
|
|
15455
|
+
state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
|
|
15456
|
+
return result;
|
|
15457
|
+
}
|
|
15458
|
+
}
|
|
15459
|
+
var InlineBasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), $E(QuestionMark), Colon, Type, InlineInterfacePropertyDelimiter);
|
|
15460
|
+
function InlineBasicInterfaceProperty(state) {
|
|
15461
|
+
let eventData;
|
|
15462
|
+
if (state.events) {
|
|
15463
|
+
const result = state.events.enter?.("InlineBasicInterfaceProperty", state);
|
|
15464
|
+
if (result) {
|
|
15465
|
+
if (result.cache)
|
|
15466
|
+
return result.cache;
|
|
15467
|
+
eventData = result.data;
|
|
15468
|
+
}
|
|
15469
|
+
}
|
|
15470
|
+
if (state.tokenize) {
|
|
15471
|
+
const result = $TOKEN("InlineBasicInterfaceProperty", state, InlineBasicInterfaceProperty$0(state));
|
|
15472
|
+
if (state.events)
|
|
15473
|
+
state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
|
|
15474
|
+
return result;
|
|
15475
|
+
} else {
|
|
15476
|
+
const result = InlineBasicInterfaceProperty$0(state);
|
|
15477
|
+
if (state.events)
|
|
15478
|
+
state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
|
|
15479
|
+
return result;
|
|
15480
|
+
}
|
|
15481
|
+
}
|
|
15482
|
+
var InlineInterfacePropertyDelimiter$0 = $C($S($E(_), Semicolon), CommaDelimiter);
|
|
15483
|
+
var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
|
|
15484
|
+
return value[1];
|
|
15485
|
+
});
|
|
15486
|
+
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L29, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L15, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L28, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L17, fail, 'InlineInterfacePropertyDelimiter "}"'))));
|
|
15487
|
+
var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
|
|
15488
|
+
function InlineInterfacePropertyDelimiter(state) {
|
|
15489
|
+
let eventData;
|
|
15490
|
+
if (state.events) {
|
|
15491
|
+
const result = state.events.enter?.("InlineInterfacePropertyDelimiter", state);
|
|
15492
|
+
if (result) {
|
|
15493
|
+
if (result.cache)
|
|
15494
|
+
return result.cache;
|
|
15495
|
+
eventData = result.data;
|
|
15496
|
+
}
|
|
15497
|
+
}
|
|
15498
|
+
if (state.tokenize) {
|
|
15499
|
+
const result = $TOKEN("InlineInterfacePropertyDelimiter", state, InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state));
|
|
15500
|
+
if (state.events)
|
|
15501
|
+
state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
|
|
15502
|
+
return result;
|
|
15503
|
+
} else {
|
|
15504
|
+
const result = InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state);
|
|
15505
|
+
if (state.events)
|
|
15506
|
+
state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
|
|
15507
|
+
return result;
|
|
15508
|
+
}
|
|
15509
|
+
}
|
|
15389
15510
|
var TypeBinaryOp$0 = $TV($EXPECT($L78, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
|
|
15390
15511
|
return { $loc, token: "|" };
|
|
15391
15512
|
});
|
|
@@ -17196,11 +17317,21 @@ ${input.slice(result.pos)}
|
|
|
17196
17317
|
} else {
|
|
17197
17318
|
children = [wsOp, op2.call, "(", a, ",", wsB, b, ")", op2.suffix];
|
|
17198
17319
|
}
|
|
17199
|
-
} else if (op2.
|
|
17200
|
-
|
|
17320
|
+
} else if (op2.method) {
|
|
17321
|
+
wsOp = module.insertTrimmingSpace(wsOp, "");
|
|
17322
|
+
wsB = module.insertTrimmingSpace(wsB, "");
|
|
17323
|
+
if (op2.reversed) {
|
|
17324
|
+
children = [wsB, b, wsOp, ".", op2.method, "(", a, ")"];
|
|
17325
|
+
} else {
|
|
17326
|
+
children = [a, wsOp, ".", op2.method, "(", wsB, b, ")"];
|
|
17327
|
+
}
|
|
17328
|
+
} else if (op2.token) {
|
|
17329
|
+
children = ["(", a, wsOp, op2, wsB, b, ")"];
|
|
17201
17330
|
} else {
|
|
17202
17331
|
throw new Error("Unknown operator: " + JSON.stringify(op2));
|
|
17203
17332
|
}
|
|
17333
|
+
if (op2.negated)
|
|
17334
|
+
children.unshift("!");
|
|
17204
17335
|
expandedOps.splice(i - 2, 5, {
|
|
17205
17336
|
children
|
|
17206
17337
|
});
|
package/dist/main.js
CHANGED
|
@@ -877,6 +877,7 @@ ${input.slice(result.pos)}
|
|
|
877
877
|
NestedInterfaceProperties,
|
|
878
878
|
NestedInterfaceProperty,
|
|
879
879
|
InterfaceProperty,
|
|
880
|
+
BasicInterfaceProperty,
|
|
880
881
|
InterfacePropertyDelimiter,
|
|
881
882
|
NamespaceBlock,
|
|
882
883
|
NestedTypeDeclarations,
|
|
@@ -900,6 +901,9 @@ ${input.slice(result.pos)}
|
|
|
900
901
|
NestedType,
|
|
901
902
|
TypeConditional,
|
|
902
903
|
TypeLiteral,
|
|
904
|
+
InlineInterfaceLiteral,
|
|
905
|
+
InlineBasicInterfaceProperty,
|
|
906
|
+
InlineInterfacePropertyDelimiter,
|
|
903
907
|
TypeBinaryOp,
|
|
904
908
|
FunctionType,
|
|
905
909
|
TypeArguments,
|
|
@@ -6590,17 +6594,27 @@ ${input.slice(result.pos)}
|
|
|
6590
6594
|
return {
|
|
6591
6595
|
$loc,
|
|
6592
6596
|
token: "instanceof",
|
|
6593
|
-
special: true
|
|
6597
|
+
special: true,
|
|
6598
|
+
negated: true
|
|
6594
6599
|
};
|
|
6595
6600
|
});
|
|
6596
6601
|
var BinaryOpSymbol$29 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L68, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
6597
6602
|
return {
|
|
6598
6603
|
$loc,
|
|
6599
6604
|
token: "in",
|
|
6605
|
+
special: true,
|
|
6606
|
+
negated: true
|
|
6607
|
+
};
|
|
6608
|
+
});
|
|
6609
|
+
var BinaryOpSymbol$30 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
6610
|
+
return {
|
|
6611
|
+
method: "includes",
|
|
6612
|
+
relational: true,
|
|
6613
|
+
reversed: true,
|
|
6600
6614
|
special: true
|
|
6601
6615
|
};
|
|
6602
6616
|
});
|
|
6603
|
-
var BinaryOpSymbol$
|
|
6617
|
+
var BinaryOpSymbol$31 = $TS($S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
6604
6618
|
return {
|
|
6605
6619
|
call: [module2.getRef("indexOf"), ".call"],
|
|
6606
6620
|
relational: true,
|
|
@@ -6609,7 +6623,16 @@ ${input.slice(result.pos)}
|
|
|
6609
6623
|
special: true
|
|
6610
6624
|
};
|
|
6611
6625
|
});
|
|
6612
|
-
var BinaryOpSymbol$
|
|
6626
|
+
var BinaryOpSymbol$32 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
6627
|
+
return {
|
|
6628
|
+
method: "includes",
|
|
6629
|
+
relational: true,
|
|
6630
|
+
reversed: true,
|
|
6631
|
+
special: true,
|
|
6632
|
+
negated: true
|
|
6633
|
+
};
|
|
6634
|
+
});
|
|
6635
|
+
var BinaryOpSymbol$33 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
6613
6636
|
return {
|
|
6614
6637
|
call: [module2.getRef("indexOf"), ".call"],
|
|
6615
6638
|
relational: true,
|
|
@@ -6618,18 +6641,18 @@ ${input.slice(result.pos)}
|
|
|
6618
6641
|
special: true
|
|
6619
6642
|
};
|
|
6620
6643
|
});
|
|
6621
|
-
var BinaryOpSymbol$
|
|
6644
|
+
var BinaryOpSymbol$34 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
|
|
6622
6645
|
return "!==";
|
|
6623
6646
|
});
|
|
6624
|
-
var BinaryOpSymbol$
|
|
6647
|
+
var BinaryOpSymbol$35 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
|
|
6625
6648
|
return "===";
|
|
6626
6649
|
});
|
|
6627
|
-
var BinaryOpSymbol$
|
|
6650
|
+
var BinaryOpSymbol$36 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
6628
6651
|
return $1;
|
|
6629
6652
|
});
|
|
6630
|
-
var BinaryOpSymbol$
|
|
6631
|
-
var BinaryOpSymbol$
|
|
6632
|
-
var BinaryOpSymbol$
|
|
6653
|
+
var BinaryOpSymbol$37 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
|
|
6654
|
+
var BinaryOpSymbol$38 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
|
|
6655
|
+
var BinaryOpSymbol$39 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
|
|
6633
6656
|
function BinaryOpSymbol(state) {
|
|
6634
6657
|
let eventData;
|
|
6635
6658
|
if (state.events) {
|
|
@@ -6641,12 +6664,12 @@ ${input.slice(result.pos)}
|
|
|
6641
6664
|
}
|
|
6642
6665
|
}
|
|
6643
6666
|
if (state.tokenize) {
|
|
6644
|
-
const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state));
|
|
6667
|
+
const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state));
|
|
6645
6668
|
if (state.events)
|
|
6646
6669
|
state.events.exit?.("BinaryOpSymbol", state, result, eventData);
|
|
6647
6670
|
return result;
|
|
6648
6671
|
} else {
|
|
6649
|
-
const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state);
|
|
6672
|
+
const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state);
|
|
6650
6673
|
if (state.events)
|
|
6651
6674
|
state.events.exit?.("BinaryOpSymbol", state, result, eventData);
|
|
6652
6675
|
return result;
|
|
@@ -14508,7 +14531,7 @@ ${input.slice(result.pos)}
|
|
|
14508
14531
|
return result;
|
|
14509
14532
|
}
|
|
14510
14533
|
}
|
|
14511
|
-
var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, __, Type);
|
|
14534
|
+
var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, $C($S($E(_), Type), $S(__, Type)));
|
|
14512
14535
|
var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
|
|
14513
14536
|
var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
|
|
14514
14537
|
var TypeDeclarationRest$3 = FunctionSignature;
|
|
@@ -14771,7 +14794,7 @@ ${input.slice(result.pos)}
|
|
|
14771
14794
|
return result;
|
|
14772
14795
|
}
|
|
14773
14796
|
}
|
|
14774
|
-
var InterfaceProperty$0 =
|
|
14797
|
+
var InterfaceProperty$0 = BasicInterfaceProperty;
|
|
14775
14798
|
var InterfaceProperty$1 = $S(NonEmptyParameters, TypeSuffix, InterfacePropertyDelimiter);
|
|
14776
14799
|
var InterfaceProperty$2 = $S(MethodSignature, InterfacePropertyDelimiter);
|
|
14777
14800
|
function InterfaceProperty(state) {
|
|
@@ -14796,6 +14819,29 @@ ${input.slice(result.pos)}
|
|
|
14796
14819
|
return result;
|
|
14797
14820
|
}
|
|
14798
14821
|
}
|
|
14822
|
+
var BasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
|
|
14823
|
+
function BasicInterfaceProperty(state) {
|
|
14824
|
+
let eventData;
|
|
14825
|
+
if (state.events) {
|
|
14826
|
+
const result = state.events.enter?.("BasicInterfaceProperty", state);
|
|
14827
|
+
if (result) {
|
|
14828
|
+
if (result.cache)
|
|
14829
|
+
return result.cache;
|
|
14830
|
+
eventData = result.data;
|
|
14831
|
+
}
|
|
14832
|
+
}
|
|
14833
|
+
if (state.tokenize) {
|
|
14834
|
+
const result = $TOKEN("BasicInterfaceProperty", state, BasicInterfaceProperty$0(state));
|
|
14835
|
+
if (state.events)
|
|
14836
|
+
state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
|
|
14837
|
+
return result;
|
|
14838
|
+
} else {
|
|
14839
|
+
const result = BasicInterfaceProperty$0(state);
|
|
14840
|
+
if (state.events)
|
|
14841
|
+
state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
|
|
14842
|
+
return result;
|
|
14843
|
+
}
|
|
14844
|
+
}
|
|
14799
14845
|
var InterfacePropertyDelimiter$0 = $S($Q(_), $C(Semicolon, Comma));
|
|
14800
14846
|
var InterfacePropertyDelimiter$1 = $Y($S(__, CloseBrace));
|
|
14801
14847
|
var InterfacePropertyDelimiter$2 = $Y(EOS);
|
|
@@ -15178,12 +15224,13 @@ ${input.slice(result.pos)}
|
|
|
15178
15224
|
}
|
|
15179
15225
|
}
|
|
15180
15226
|
var TypePrimary$0 = InterfaceBlock;
|
|
15181
|
-
var TypePrimary$1 = $S(
|
|
15182
|
-
var TypePrimary$2 = $S($E(_),
|
|
15183
|
-
var TypePrimary$3 = $S($E(_),
|
|
15184
|
-
var TypePrimary$4 = $S($E(_),
|
|
15227
|
+
var TypePrimary$1 = $S($E(_), FunctionType);
|
|
15228
|
+
var TypePrimary$2 = $S($E(_), InlineInterfaceLiteral);
|
|
15229
|
+
var TypePrimary$3 = $S($E(_), TypeTuple);
|
|
15230
|
+
var TypePrimary$4 = $S($E(_), ImportType);
|
|
15185
15231
|
var TypePrimary$5 = $S($E(_), TypeLiteral);
|
|
15186
15232
|
var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
|
|
15233
|
+
var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
|
|
15187
15234
|
function TypePrimary(state) {
|
|
15188
15235
|
let eventData;
|
|
15189
15236
|
if (state.events) {
|
|
@@ -15195,12 +15242,12 @@ ${input.slice(result.pos)}
|
|
|
15195
15242
|
}
|
|
15196
15243
|
}
|
|
15197
15244
|
if (state.tokenize) {
|
|
15198
|
-
const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state));
|
|
15245
|
+
const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state));
|
|
15199
15246
|
if (state.events)
|
|
15200
15247
|
state.events.exit?.("TypePrimary", state, result, eventData);
|
|
15201
15248
|
return result;
|
|
15202
15249
|
} else {
|
|
15203
|
-
const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state);
|
|
15250
|
+
const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state);
|
|
15204
15251
|
if (state.events)
|
|
15205
15252
|
state.events.exit?.("TypePrimary", state, result, eventData);
|
|
15206
15253
|
return result;
|
|
@@ -15385,6 +15432,80 @@ ${input.slice(result.pos)}
|
|
|
15385
15432
|
return result;
|
|
15386
15433
|
}
|
|
15387
15434
|
}
|
|
15435
|
+
var InlineInterfaceLiteral$0 = $S(InsertInlineOpenBrace, InlineBasicInterfaceProperty, $Q($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertCloseBrace);
|
|
15436
|
+
function InlineInterfaceLiteral(state) {
|
|
15437
|
+
let eventData;
|
|
15438
|
+
if (state.events) {
|
|
15439
|
+
const result = state.events.enter?.("InlineInterfaceLiteral", state);
|
|
15440
|
+
if (result) {
|
|
15441
|
+
if (result.cache)
|
|
15442
|
+
return result.cache;
|
|
15443
|
+
eventData = result.data;
|
|
15444
|
+
}
|
|
15445
|
+
}
|
|
15446
|
+
if (state.tokenize) {
|
|
15447
|
+
const result = $TOKEN("InlineInterfaceLiteral", state, InlineInterfaceLiteral$0(state));
|
|
15448
|
+
if (state.events)
|
|
15449
|
+
state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
|
|
15450
|
+
return result;
|
|
15451
|
+
} else {
|
|
15452
|
+
const result = InlineInterfaceLiteral$0(state);
|
|
15453
|
+
if (state.events)
|
|
15454
|
+
state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
|
|
15455
|
+
return result;
|
|
15456
|
+
}
|
|
15457
|
+
}
|
|
15458
|
+
var InlineBasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), $E(QuestionMark), Colon, Type, InlineInterfacePropertyDelimiter);
|
|
15459
|
+
function InlineBasicInterfaceProperty(state) {
|
|
15460
|
+
let eventData;
|
|
15461
|
+
if (state.events) {
|
|
15462
|
+
const result = state.events.enter?.("InlineBasicInterfaceProperty", state);
|
|
15463
|
+
if (result) {
|
|
15464
|
+
if (result.cache)
|
|
15465
|
+
return result.cache;
|
|
15466
|
+
eventData = result.data;
|
|
15467
|
+
}
|
|
15468
|
+
}
|
|
15469
|
+
if (state.tokenize) {
|
|
15470
|
+
const result = $TOKEN("InlineBasicInterfaceProperty", state, InlineBasicInterfaceProperty$0(state));
|
|
15471
|
+
if (state.events)
|
|
15472
|
+
state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
|
|
15473
|
+
return result;
|
|
15474
|
+
} else {
|
|
15475
|
+
const result = InlineBasicInterfaceProperty$0(state);
|
|
15476
|
+
if (state.events)
|
|
15477
|
+
state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
|
|
15478
|
+
return result;
|
|
15479
|
+
}
|
|
15480
|
+
}
|
|
15481
|
+
var InlineInterfacePropertyDelimiter$0 = $C($S($E(_), Semicolon), CommaDelimiter);
|
|
15482
|
+
var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
|
|
15483
|
+
return value[1];
|
|
15484
|
+
});
|
|
15485
|
+
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L29, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L15, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L28, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L17, fail, 'InlineInterfacePropertyDelimiter "}"'))));
|
|
15486
|
+
var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
|
|
15487
|
+
function InlineInterfacePropertyDelimiter(state) {
|
|
15488
|
+
let eventData;
|
|
15489
|
+
if (state.events) {
|
|
15490
|
+
const result = state.events.enter?.("InlineInterfacePropertyDelimiter", state);
|
|
15491
|
+
if (result) {
|
|
15492
|
+
if (result.cache)
|
|
15493
|
+
return result.cache;
|
|
15494
|
+
eventData = result.data;
|
|
15495
|
+
}
|
|
15496
|
+
}
|
|
15497
|
+
if (state.tokenize) {
|
|
15498
|
+
const result = $TOKEN("InlineInterfacePropertyDelimiter", state, InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state));
|
|
15499
|
+
if (state.events)
|
|
15500
|
+
state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
|
|
15501
|
+
return result;
|
|
15502
|
+
} else {
|
|
15503
|
+
const result = InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state);
|
|
15504
|
+
if (state.events)
|
|
15505
|
+
state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
|
|
15506
|
+
return result;
|
|
15507
|
+
}
|
|
15508
|
+
}
|
|
15388
15509
|
var TypeBinaryOp$0 = $TV($EXPECT($L78, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
|
|
15389
15510
|
return { $loc, token: "|" };
|
|
15390
15511
|
});
|
|
@@ -17195,11 +17316,21 @@ ${input.slice(result.pos)}
|
|
|
17195
17316
|
} else {
|
|
17196
17317
|
children = [wsOp, op2.call, "(", a, ",", wsB, b, ")", op2.suffix];
|
|
17197
17318
|
}
|
|
17198
|
-
} else if (op2.
|
|
17199
|
-
|
|
17319
|
+
} else if (op2.method) {
|
|
17320
|
+
wsOp = module2.insertTrimmingSpace(wsOp, "");
|
|
17321
|
+
wsB = module2.insertTrimmingSpace(wsB, "");
|
|
17322
|
+
if (op2.reversed) {
|
|
17323
|
+
children = [wsB, b, wsOp, ".", op2.method, "(", a, ")"];
|
|
17324
|
+
} else {
|
|
17325
|
+
children = [a, wsOp, ".", op2.method, "(", wsB, b, ")"];
|
|
17326
|
+
}
|
|
17327
|
+
} else if (op2.token) {
|
|
17328
|
+
children = ["(", a, wsOp, op2, wsB, b, ")"];
|
|
17200
17329
|
} else {
|
|
17201
17330
|
throw new Error("Unknown operator: " + JSON.stringify(op2));
|
|
17202
17331
|
}
|
|
17332
|
+
if (op2.negated)
|
|
17333
|
+
children.unshift("!");
|
|
17203
17334
|
expandedOps.splice(i - 2, 5, {
|
|
17204
17335
|
children
|
|
17205
17336
|
});
|
package/dist/main.mjs
CHANGED
|
@@ -875,6 +875,7 @@ ${input.slice(result.pos)}
|
|
|
875
875
|
NestedInterfaceProperties,
|
|
876
876
|
NestedInterfaceProperty,
|
|
877
877
|
InterfaceProperty,
|
|
878
|
+
BasicInterfaceProperty,
|
|
878
879
|
InterfacePropertyDelimiter,
|
|
879
880
|
NamespaceBlock,
|
|
880
881
|
NestedTypeDeclarations,
|
|
@@ -898,6 +899,9 @@ ${input.slice(result.pos)}
|
|
|
898
899
|
NestedType,
|
|
899
900
|
TypeConditional,
|
|
900
901
|
TypeLiteral,
|
|
902
|
+
InlineInterfaceLiteral,
|
|
903
|
+
InlineBasicInterfaceProperty,
|
|
904
|
+
InlineInterfacePropertyDelimiter,
|
|
901
905
|
TypeBinaryOp,
|
|
902
906
|
FunctionType,
|
|
903
907
|
TypeArguments,
|
|
@@ -6588,17 +6592,27 @@ ${input.slice(result.pos)}
|
|
|
6588
6592
|
return {
|
|
6589
6593
|
$loc,
|
|
6590
6594
|
token: "instanceof",
|
|
6591
|
-
special: true
|
|
6595
|
+
special: true,
|
|
6596
|
+
negated: true
|
|
6592
6597
|
};
|
|
6593
6598
|
});
|
|
6594
6599
|
var BinaryOpSymbol$29 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L68, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
|
|
6595
6600
|
return {
|
|
6596
6601
|
$loc,
|
|
6597
6602
|
token: "in",
|
|
6603
|
+
special: true,
|
|
6604
|
+
negated: true
|
|
6605
|
+
};
|
|
6606
|
+
});
|
|
6607
|
+
var BinaryOpSymbol$30 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
6608
|
+
return {
|
|
6609
|
+
method: "includes",
|
|
6610
|
+
relational: true,
|
|
6611
|
+
reversed: true,
|
|
6598
6612
|
special: true
|
|
6599
6613
|
};
|
|
6600
6614
|
});
|
|
6601
|
-
var BinaryOpSymbol$
|
|
6615
|
+
var BinaryOpSymbol$31 = $TS($S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
6602
6616
|
return {
|
|
6603
6617
|
call: [module.getRef("indexOf"), ".call"],
|
|
6604
6618
|
relational: true,
|
|
@@ -6607,7 +6621,16 @@ ${input.slice(result.pos)}
|
|
|
6607
6621
|
special: true
|
|
6608
6622
|
};
|
|
6609
6623
|
});
|
|
6610
|
-
var BinaryOpSymbol$
|
|
6624
|
+
var BinaryOpSymbol$32 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
6625
|
+
return {
|
|
6626
|
+
method: "includes",
|
|
6627
|
+
relational: true,
|
|
6628
|
+
reversed: true,
|
|
6629
|
+
special: true,
|
|
6630
|
+
negated: true
|
|
6631
|
+
};
|
|
6632
|
+
});
|
|
6633
|
+
var BinaryOpSymbol$33 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
|
|
6611
6634
|
return {
|
|
6612
6635
|
call: [module.getRef("indexOf"), ".call"],
|
|
6613
6636
|
relational: true,
|
|
@@ -6616,18 +6639,18 @@ ${input.slice(result.pos)}
|
|
|
6616
6639
|
special: true
|
|
6617
6640
|
};
|
|
6618
6641
|
});
|
|
6619
|
-
var BinaryOpSymbol$
|
|
6642
|
+
var BinaryOpSymbol$34 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
|
|
6620
6643
|
return "!==";
|
|
6621
6644
|
});
|
|
6622
|
-
var BinaryOpSymbol$
|
|
6645
|
+
var BinaryOpSymbol$35 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
|
|
6623
6646
|
return "===";
|
|
6624
6647
|
});
|
|
6625
|
-
var BinaryOpSymbol$
|
|
6648
|
+
var BinaryOpSymbol$36 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
6626
6649
|
return $1;
|
|
6627
6650
|
});
|
|
6628
|
-
var BinaryOpSymbol$
|
|
6629
|
-
var BinaryOpSymbol$
|
|
6630
|
-
var BinaryOpSymbol$
|
|
6651
|
+
var BinaryOpSymbol$37 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
|
|
6652
|
+
var BinaryOpSymbol$38 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
|
|
6653
|
+
var BinaryOpSymbol$39 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
|
|
6631
6654
|
function BinaryOpSymbol(state) {
|
|
6632
6655
|
let eventData;
|
|
6633
6656
|
if (state.events) {
|
|
@@ -6639,12 +6662,12 @@ ${input.slice(result.pos)}
|
|
|
6639
6662
|
}
|
|
6640
6663
|
}
|
|
6641
6664
|
if (state.tokenize) {
|
|
6642
|
-
const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state));
|
|
6665
|
+
const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state));
|
|
6643
6666
|
if (state.events)
|
|
6644
6667
|
state.events.exit?.("BinaryOpSymbol", state, result, eventData);
|
|
6645
6668
|
return result;
|
|
6646
6669
|
} else {
|
|
6647
|
-
const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state);
|
|
6670
|
+
const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state);
|
|
6648
6671
|
if (state.events)
|
|
6649
6672
|
state.events.exit?.("BinaryOpSymbol", state, result, eventData);
|
|
6650
6673
|
return result;
|
|
@@ -14506,7 +14529,7 @@ ${input.slice(result.pos)}
|
|
|
14506
14529
|
return result;
|
|
14507
14530
|
}
|
|
14508
14531
|
}
|
|
14509
|
-
var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, __, Type);
|
|
14532
|
+
var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, $C($S($E(_), Type), $S(__, Type)));
|
|
14510
14533
|
var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
|
|
14511
14534
|
var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
|
|
14512
14535
|
var TypeDeclarationRest$3 = FunctionSignature;
|
|
@@ -14769,7 +14792,7 @@ ${input.slice(result.pos)}
|
|
|
14769
14792
|
return result;
|
|
14770
14793
|
}
|
|
14771
14794
|
}
|
|
14772
|
-
var InterfaceProperty$0 =
|
|
14795
|
+
var InterfaceProperty$0 = BasicInterfaceProperty;
|
|
14773
14796
|
var InterfaceProperty$1 = $S(NonEmptyParameters, TypeSuffix, InterfacePropertyDelimiter);
|
|
14774
14797
|
var InterfaceProperty$2 = $S(MethodSignature, InterfacePropertyDelimiter);
|
|
14775
14798
|
function InterfaceProperty(state) {
|
|
@@ -14794,6 +14817,29 @@ ${input.slice(result.pos)}
|
|
|
14794
14817
|
return result;
|
|
14795
14818
|
}
|
|
14796
14819
|
}
|
|
14820
|
+
var BasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
|
|
14821
|
+
function BasicInterfaceProperty(state) {
|
|
14822
|
+
let eventData;
|
|
14823
|
+
if (state.events) {
|
|
14824
|
+
const result = state.events.enter?.("BasicInterfaceProperty", state);
|
|
14825
|
+
if (result) {
|
|
14826
|
+
if (result.cache)
|
|
14827
|
+
return result.cache;
|
|
14828
|
+
eventData = result.data;
|
|
14829
|
+
}
|
|
14830
|
+
}
|
|
14831
|
+
if (state.tokenize) {
|
|
14832
|
+
const result = $TOKEN("BasicInterfaceProperty", state, BasicInterfaceProperty$0(state));
|
|
14833
|
+
if (state.events)
|
|
14834
|
+
state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
|
|
14835
|
+
return result;
|
|
14836
|
+
} else {
|
|
14837
|
+
const result = BasicInterfaceProperty$0(state);
|
|
14838
|
+
if (state.events)
|
|
14839
|
+
state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
|
|
14840
|
+
return result;
|
|
14841
|
+
}
|
|
14842
|
+
}
|
|
14797
14843
|
var InterfacePropertyDelimiter$0 = $S($Q(_), $C(Semicolon, Comma));
|
|
14798
14844
|
var InterfacePropertyDelimiter$1 = $Y($S(__, CloseBrace));
|
|
14799
14845
|
var InterfacePropertyDelimiter$2 = $Y(EOS);
|
|
@@ -15176,12 +15222,13 @@ ${input.slice(result.pos)}
|
|
|
15176
15222
|
}
|
|
15177
15223
|
}
|
|
15178
15224
|
var TypePrimary$0 = InterfaceBlock;
|
|
15179
|
-
var TypePrimary$1 = $S(
|
|
15180
|
-
var TypePrimary$2 = $S($E(_),
|
|
15181
|
-
var TypePrimary$3 = $S($E(_),
|
|
15182
|
-
var TypePrimary$4 = $S($E(_),
|
|
15225
|
+
var TypePrimary$1 = $S($E(_), FunctionType);
|
|
15226
|
+
var TypePrimary$2 = $S($E(_), InlineInterfaceLiteral);
|
|
15227
|
+
var TypePrimary$3 = $S($E(_), TypeTuple);
|
|
15228
|
+
var TypePrimary$4 = $S($E(_), ImportType);
|
|
15183
15229
|
var TypePrimary$5 = $S($E(_), TypeLiteral);
|
|
15184
15230
|
var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
|
|
15231
|
+
var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
|
|
15185
15232
|
function TypePrimary(state) {
|
|
15186
15233
|
let eventData;
|
|
15187
15234
|
if (state.events) {
|
|
@@ -15193,12 +15240,12 @@ ${input.slice(result.pos)}
|
|
|
15193
15240
|
}
|
|
15194
15241
|
}
|
|
15195
15242
|
if (state.tokenize) {
|
|
15196
|
-
const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state));
|
|
15243
|
+
const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state));
|
|
15197
15244
|
if (state.events)
|
|
15198
15245
|
state.events.exit?.("TypePrimary", state, result, eventData);
|
|
15199
15246
|
return result;
|
|
15200
15247
|
} else {
|
|
15201
|
-
const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state);
|
|
15248
|
+
const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state);
|
|
15202
15249
|
if (state.events)
|
|
15203
15250
|
state.events.exit?.("TypePrimary", state, result, eventData);
|
|
15204
15251
|
return result;
|
|
@@ -15383,6 +15430,80 @@ ${input.slice(result.pos)}
|
|
|
15383
15430
|
return result;
|
|
15384
15431
|
}
|
|
15385
15432
|
}
|
|
15433
|
+
var InlineInterfaceLiteral$0 = $S(InsertInlineOpenBrace, InlineBasicInterfaceProperty, $Q($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertCloseBrace);
|
|
15434
|
+
function InlineInterfaceLiteral(state) {
|
|
15435
|
+
let eventData;
|
|
15436
|
+
if (state.events) {
|
|
15437
|
+
const result = state.events.enter?.("InlineInterfaceLiteral", state);
|
|
15438
|
+
if (result) {
|
|
15439
|
+
if (result.cache)
|
|
15440
|
+
return result.cache;
|
|
15441
|
+
eventData = result.data;
|
|
15442
|
+
}
|
|
15443
|
+
}
|
|
15444
|
+
if (state.tokenize) {
|
|
15445
|
+
const result = $TOKEN("InlineInterfaceLiteral", state, InlineInterfaceLiteral$0(state));
|
|
15446
|
+
if (state.events)
|
|
15447
|
+
state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
|
|
15448
|
+
return result;
|
|
15449
|
+
} else {
|
|
15450
|
+
const result = InlineInterfaceLiteral$0(state);
|
|
15451
|
+
if (state.events)
|
|
15452
|
+
state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
|
|
15453
|
+
return result;
|
|
15454
|
+
}
|
|
15455
|
+
}
|
|
15456
|
+
var InlineBasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), $E(QuestionMark), Colon, Type, InlineInterfacePropertyDelimiter);
|
|
15457
|
+
function InlineBasicInterfaceProperty(state) {
|
|
15458
|
+
let eventData;
|
|
15459
|
+
if (state.events) {
|
|
15460
|
+
const result = state.events.enter?.("InlineBasicInterfaceProperty", state);
|
|
15461
|
+
if (result) {
|
|
15462
|
+
if (result.cache)
|
|
15463
|
+
return result.cache;
|
|
15464
|
+
eventData = result.data;
|
|
15465
|
+
}
|
|
15466
|
+
}
|
|
15467
|
+
if (state.tokenize) {
|
|
15468
|
+
const result = $TOKEN("InlineBasicInterfaceProperty", state, InlineBasicInterfaceProperty$0(state));
|
|
15469
|
+
if (state.events)
|
|
15470
|
+
state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
|
|
15471
|
+
return result;
|
|
15472
|
+
} else {
|
|
15473
|
+
const result = InlineBasicInterfaceProperty$0(state);
|
|
15474
|
+
if (state.events)
|
|
15475
|
+
state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
|
|
15476
|
+
return result;
|
|
15477
|
+
}
|
|
15478
|
+
}
|
|
15479
|
+
var InlineInterfacePropertyDelimiter$0 = $C($S($E(_), Semicolon), CommaDelimiter);
|
|
15480
|
+
var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
|
|
15481
|
+
return value[1];
|
|
15482
|
+
});
|
|
15483
|
+
var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L29, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L15, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L28, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L17, fail, 'InlineInterfacePropertyDelimiter "}"'))));
|
|
15484
|
+
var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
|
|
15485
|
+
function InlineInterfacePropertyDelimiter(state) {
|
|
15486
|
+
let eventData;
|
|
15487
|
+
if (state.events) {
|
|
15488
|
+
const result = state.events.enter?.("InlineInterfacePropertyDelimiter", state);
|
|
15489
|
+
if (result) {
|
|
15490
|
+
if (result.cache)
|
|
15491
|
+
return result.cache;
|
|
15492
|
+
eventData = result.data;
|
|
15493
|
+
}
|
|
15494
|
+
}
|
|
15495
|
+
if (state.tokenize) {
|
|
15496
|
+
const result = $TOKEN("InlineInterfacePropertyDelimiter", state, InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state));
|
|
15497
|
+
if (state.events)
|
|
15498
|
+
state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
|
|
15499
|
+
return result;
|
|
15500
|
+
} else {
|
|
15501
|
+
const result = InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state);
|
|
15502
|
+
if (state.events)
|
|
15503
|
+
state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
|
|
15504
|
+
return result;
|
|
15505
|
+
}
|
|
15506
|
+
}
|
|
15386
15507
|
var TypeBinaryOp$0 = $TV($EXPECT($L78, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
|
|
15387
15508
|
return { $loc, token: "|" };
|
|
15388
15509
|
});
|
|
@@ -17193,11 +17314,21 @@ ${input.slice(result.pos)}
|
|
|
17193
17314
|
} else {
|
|
17194
17315
|
children = [wsOp, op2.call, "(", a, ",", wsB, b, ")", op2.suffix];
|
|
17195
17316
|
}
|
|
17196
|
-
} else if (op2.
|
|
17197
|
-
|
|
17317
|
+
} else if (op2.method) {
|
|
17318
|
+
wsOp = module.insertTrimmingSpace(wsOp, "");
|
|
17319
|
+
wsB = module.insertTrimmingSpace(wsB, "");
|
|
17320
|
+
if (op2.reversed) {
|
|
17321
|
+
children = [wsB, b, wsOp, ".", op2.method, "(", a, ")"];
|
|
17322
|
+
} else {
|
|
17323
|
+
children = [a, wsOp, ".", op2.method, "(", wsB, b, ")"];
|
|
17324
|
+
}
|
|
17325
|
+
} else if (op2.token) {
|
|
17326
|
+
children = ["(", a, wsOp, op2, wsB, b, ")"];
|
|
17198
17327
|
} else {
|
|
17199
17328
|
throw new Error("Unknown operator: " + JSON.stringify(op2));
|
|
17200
17329
|
}
|
|
17330
|
+
if (op2.negated)
|
|
17331
|
+
children.unshift("!");
|
|
17201
17332
|
expandedOps.splice(i - 2, 5, {
|
|
17202
17333
|
children
|
|
17203
17334
|
});
|