@danielx/civet 0.4.23 → 0.4.24
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/README.md +22 -2
- package/dist/browser.js +240 -156
- package/dist/esbuild-plugin.js +1 -1
- package/dist/main.js +240 -156
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -527,6 +527,8 @@ ${input.slice(result.pos)}
|
|
|
527
527
|
NamedProperty,
|
|
528
528
|
SnugNamedProperty,
|
|
529
529
|
PropertyName,
|
|
530
|
+
Decorator,
|
|
531
|
+
Decorators,
|
|
530
532
|
MethodDefinition,
|
|
531
533
|
MethodModifier,
|
|
532
534
|
MethodSignature,
|
|
@@ -677,6 +679,7 @@ ${input.slice(result.pos)}
|
|
|
677
679
|
Ampersand,
|
|
678
680
|
As,
|
|
679
681
|
At,
|
|
682
|
+
AtAt,
|
|
680
683
|
Async,
|
|
681
684
|
Await,
|
|
682
685
|
Backtick,
|
|
@@ -930,73 +933,72 @@ ${input.slice(result.pos)}
|
|
|
930
933
|
var $L88 = $L("\\");
|
|
931
934
|
var $L89 = $L("as");
|
|
932
935
|
var $L90 = $L("@");
|
|
933
|
-
var $L91 = $L("
|
|
934
|
-
var $L92 = $L("
|
|
935
|
-
var $L93 = $L("
|
|
936
|
-
var $L94 = $L("
|
|
937
|
-
var $L95 = $L("
|
|
938
|
-
var $L96 = $L("
|
|
939
|
-
var $L97 = $L("
|
|
940
|
-
var $L98 = $L("
|
|
941
|
-
var $L99 = $L("
|
|
942
|
-
var $L100 = $L("
|
|
943
|
-
var $L101 = $L("
|
|
944
|
-
var $L102 = $L("
|
|
945
|
-
var $L103 = $L("
|
|
946
|
-
var $L104 = $L(
|
|
947
|
-
var $L105 = $L("
|
|
948
|
-
var $L106 = $L("
|
|
949
|
-
var $L107 = $L("
|
|
950
|
-
var $L108 = $L("
|
|
951
|
-
var $L109 = $L("
|
|
952
|
-
var $L110 = $L("
|
|
953
|
-
var $L111 = $L("
|
|
954
|
-
var $L112 = $L("
|
|
955
|
-
var $L113 = $L("
|
|
956
|
-
var $L114 = $L("
|
|
957
|
-
var $L115 = $L("
|
|
958
|
-
var $L116 = $L("
|
|
959
|
-
var $L117 = $L("
|
|
960
|
-
var $L118 = $L("
|
|
961
|
-
var $L119 = $L("
|
|
962
|
-
var $L120 = $L("
|
|
963
|
-
var $L121 = $L("
|
|
964
|
-
var $L122 = $L("
|
|
965
|
-
var $L123 = $L("
|
|
966
|
-
var $L124 = $L("
|
|
967
|
-
var $L125 = $L("
|
|
968
|
-
var $L126 = $L("
|
|
969
|
-
var $L127 = $L("
|
|
970
|
-
var $L128 = $L("
|
|
971
|
-
var $L129 = $L(
|
|
972
|
-
var $L130 = $L("'
|
|
973
|
-
var $L131 = $L("
|
|
974
|
-
var $L132 = $L("
|
|
975
|
-
var $L133 = $L("
|
|
976
|
-
var $L134 = $L("
|
|
977
|
-
var $L135 = $L("
|
|
978
|
-
var $L136 = $L("
|
|
979
|
-
var $L137 = $L("
|
|
980
|
-
var $L138 = $L("
|
|
981
|
-
var $L139 = $L("
|
|
982
|
-
var $L140 = $L("
|
|
983
|
-
var $L141 = $L("
|
|
984
|
-
var $L142 = $L("
|
|
985
|
-
var $L143 = $L("
|
|
986
|
-
var $L144 = $L("
|
|
987
|
-
var $L145 = $L("
|
|
988
|
-
var $L146 = $L("
|
|
989
|
-
var $L147 = $L("
|
|
990
|
-
var $L148 = $L("
|
|
991
|
-
var $L149 = $L("
|
|
992
|
-
var $L150 = $L("
|
|
993
|
-
var $L151 = $L("
|
|
994
|
-
var $L152 = $L("
|
|
995
|
-
var $L153 = $L("
|
|
996
|
-
var $L154 = $L("
|
|
997
|
-
var $L155 = $L("
|
|
998
|
-
var $L156 = $L("
|
|
999
|
-
var $L157 = $L(" ");
|
|
936
|
+
var $L91 = $L("@@");
|
|
937
|
+
var $L92 = $L("async");
|
|
938
|
+
var $L93 = $L("await");
|
|
939
|
+
var $L94 = $L("`");
|
|
940
|
+
var $L95 = $L("by");
|
|
941
|
+
var $L96 = $L("case");
|
|
942
|
+
var $L97 = $L("catch");
|
|
943
|
+
var $L98 = $L("class");
|
|
944
|
+
var $L99 = $L("#{");
|
|
945
|
+
var $L100 = $L("delete");
|
|
946
|
+
var $L101 = $L("do");
|
|
947
|
+
var $L102 = $L("..");
|
|
948
|
+
var $L103 = $L("...");
|
|
949
|
+
var $L104 = $L("::");
|
|
950
|
+
var $L105 = $L('"');
|
|
951
|
+
var $L106 = $L("else");
|
|
952
|
+
var $L107 = $L("export");
|
|
953
|
+
var $L108 = $L("for");
|
|
954
|
+
var $L109 = $L("from");
|
|
955
|
+
var $L110 = $L("function");
|
|
956
|
+
var $L111 = $L("get");
|
|
957
|
+
var $L112 = $L("set");
|
|
958
|
+
var $L113 = $L("if");
|
|
959
|
+
var $L114 = $L("let");
|
|
960
|
+
var $L115 = $L("const");
|
|
961
|
+
var $L116 = $L("loop");
|
|
962
|
+
var $L117 = $L("new");
|
|
963
|
+
var $L118 = $L("{");
|
|
964
|
+
var $L119 = $L("[");
|
|
965
|
+
var $L120 = $L("(");
|
|
966
|
+
var $L121 = $L("return");
|
|
967
|
+
var $L122 = $L("'");
|
|
968
|
+
var $L123 = $L("static");
|
|
969
|
+
var $L124 = $L("${");
|
|
970
|
+
var $L125 = $L("switch");
|
|
971
|
+
var $L126 = $L("target");
|
|
972
|
+
var $L127 = $L("then");
|
|
973
|
+
var $L128 = $L("this");
|
|
974
|
+
var $L129 = $L("throw");
|
|
975
|
+
var $L130 = $L('"""');
|
|
976
|
+
var $L131 = $L("'''");
|
|
977
|
+
var $L132 = $L("///");
|
|
978
|
+
var $L133 = $L("```");
|
|
979
|
+
var $L134 = $L("try");
|
|
980
|
+
var $L135 = $L("typeof");
|
|
981
|
+
var $L136 = $L("unless");
|
|
982
|
+
var $L137 = $L("until");
|
|
983
|
+
var $L138 = $L("var");
|
|
984
|
+
var $L139 = $L("void");
|
|
985
|
+
var $L140 = $L("when");
|
|
986
|
+
var $L141 = $L("while");
|
|
987
|
+
var $L142 = $L("yield");
|
|
988
|
+
var $L143 = $L("/>");
|
|
989
|
+
var $L144 = $L("</");
|
|
990
|
+
var $L145 = $L("<>");
|
|
991
|
+
var $L146 = $L("</>");
|
|
992
|
+
var $L147 = $L("declare");
|
|
993
|
+
var $L148 = $L("type");
|
|
994
|
+
var $L149 = $L("interface");
|
|
995
|
+
var $L150 = $L("namespace");
|
|
996
|
+
var $L151 = $L("readonly");
|
|
997
|
+
var $L152 = $L("asserts");
|
|
998
|
+
var $L153 = $L("keyof");
|
|
999
|
+
var $L154 = $L("infer");
|
|
1000
|
+
var $L155 = $L("[]");
|
|
1001
|
+
var $L156 = $L("civet");
|
|
1000
1002
|
var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
|
|
1001
1003
|
var $R1 = $R(new RegExp("[&]", "suy"));
|
|
1002
1004
|
var $R2 = $R(new RegExp("[!~+-]+", "suy"));
|
|
@@ -1049,8 +1051,9 @@ ${input.slice(result.pos)}
|
|
|
1049
1051
|
var $R49 = $R(new RegExp("#![^\\r\\n]*", "suy"));
|
|
1050
1052
|
var $R50 = $R(new RegExp("[\\t ]*", "suy"));
|
|
1051
1053
|
var $R51 = $R(new RegExp("[\\s]*", "suy"));
|
|
1052
|
-
var $R52 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)", "suy"));
|
|
1054
|
+
var $R52 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
|
|
1053
1055
|
var $R53 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
1056
|
+
var $R54 = $R(new RegExp("[ \\t]*", "suy"));
|
|
1054
1057
|
var Program$0 = $TS($S(Reset, Init, __, $Q(TopLevelStatement), __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
1055
1058
|
var statements = $4;
|
|
1056
1059
|
module2.processProgram(statements);
|
|
@@ -1984,7 +1987,7 @@ ${input.slice(result.pos)}
|
|
|
1984
1987
|
return result;
|
|
1985
1988
|
}
|
|
1986
1989
|
}
|
|
1987
|
-
var ClassExpression$0 = $S(Class, $E(BindingIdentifier), $E($S(__, ClassHeritage)), ClassBody);
|
|
1990
|
+
var ClassExpression$0 = $S($E(Decorators), Class, $E(BindingIdentifier), $E($S(__, ClassHeritage)), ClassBody);
|
|
1988
1991
|
function ClassExpression(state) {
|
|
1989
1992
|
if (state.events) {
|
|
1990
1993
|
const result = state.events.enter?.("ClassExpression", state);
|
|
@@ -2109,8 +2112,9 @@ ${input.slice(result.pos)}
|
|
|
2109
2112
|
return result;
|
|
2110
2113
|
}
|
|
2111
2114
|
}
|
|
2112
|
-
var ClassElement$0 =
|
|
2113
|
-
var ClassElement$1 = $S(Static,
|
|
2115
|
+
var ClassElement$0 = MethodDefinition;
|
|
2116
|
+
var ClassElement$1 = $S($E($S(Static, $Q(TrailingComment))), $C(MethodDefinition, FieldDefinition));
|
|
2117
|
+
var ClassElement$2 = $S(Static, BracedBlock);
|
|
2114
2118
|
function ClassElement(state) {
|
|
2115
2119
|
if (state.events) {
|
|
2116
2120
|
const result = state.events.enter?.("ClassElement", state);
|
|
@@ -2118,12 +2122,12 @@ ${input.slice(result.pos)}
|
|
|
2118
2122
|
return result.cache;
|
|
2119
2123
|
}
|
|
2120
2124
|
if (state.tokenize) {
|
|
2121
|
-
const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state));
|
|
2125
|
+
const result = $TOKEN("ClassElement", state, ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state));
|
|
2122
2126
|
if (state.events)
|
|
2123
2127
|
state.events.exit?.("ClassElement", state, result);
|
|
2124
2128
|
return result;
|
|
2125
2129
|
} else {
|
|
2126
|
-
const result = ClassElement$0(state) || ClassElement$1(state);
|
|
2130
|
+
const result = ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state);
|
|
2127
2131
|
if (state.events)
|
|
2128
2132
|
state.events.exit?.("ClassElement", state, result);
|
|
2129
2133
|
return result;
|
|
@@ -2308,6 +2312,7 @@ ${input.slice(result.pos)}
|
|
|
2308
2312
|
}
|
|
2309
2313
|
}
|
|
2310
2314
|
var AdditionalReservedWords$0 = $R$0($EXPECT($R0, fail, "AdditionalReservedWords /(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
2315
|
+
var AdditionalReservedWords$1 = AtAt;
|
|
2311
2316
|
function AdditionalReservedWords(state) {
|
|
2312
2317
|
if (state.events) {
|
|
2313
2318
|
const result = state.events.enter?.("AdditionalReservedWords", state);
|
|
@@ -2315,12 +2320,12 @@ ${input.slice(result.pos)}
|
|
|
2315
2320
|
return result.cache;
|
|
2316
2321
|
}
|
|
2317
2322
|
if (state.tokenize) {
|
|
2318
|
-
const result = $TOKEN("AdditionalReservedWords", state, AdditionalReservedWords$0(state));
|
|
2323
|
+
const result = $TOKEN("AdditionalReservedWords", state, AdditionalReservedWords$0(state) || AdditionalReservedWords$1(state));
|
|
2319
2324
|
if (state.events)
|
|
2320
2325
|
state.events.exit?.("AdditionalReservedWords", state, result);
|
|
2321
2326
|
return result;
|
|
2322
2327
|
} else {
|
|
2323
|
-
const result = AdditionalReservedWords$0(state);
|
|
2328
|
+
const result = AdditionalReservedWords$0(state) || AdditionalReservedWords$1(state);
|
|
2324
2329
|
if (state.events)
|
|
2325
2330
|
state.events.exit?.("AdditionalReservedWords", state, result);
|
|
2326
2331
|
return result;
|
|
@@ -4801,12 +4806,53 @@ ${input.slice(result.pos)}
|
|
|
4801
4806
|
return result;
|
|
4802
4807
|
}
|
|
4803
4808
|
}
|
|
4804
|
-
var
|
|
4805
|
-
|
|
4806
|
-
|
|
4809
|
+
var Decorator$0 = $S(AtAt, IdentifierReference, $E(Arguments));
|
|
4810
|
+
function Decorator(state) {
|
|
4811
|
+
if (state.events) {
|
|
4812
|
+
const result = state.events.enter?.("Decorator", state);
|
|
4813
|
+
if (result)
|
|
4814
|
+
return result.cache;
|
|
4815
|
+
}
|
|
4816
|
+
if (state.tokenize) {
|
|
4817
|
+
const result = $TOKEN("Decorator", state, Decorator$0(state));
|
|
4818
|
+
if (state.events)
|
|
4819
|
+
state.events.exit?.("Decorator", state, result);
|
|
4820
|
+
return result;
|
|
4821
|
+
} else {
|
|
4822
|
+
const result = Decorator$0(state);
|
|
4823
|
+
if (state.events)
|
|
4824
|
+
state.events.exit?.("Decorator", state, result);
|
|
4825
|
+
return result;
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4828
|
+
var Decorators$0 = $S($P($S(__, Decorator)), __);
|
|
4829
|
+
function Decorators(state) {
|
|
4830
|
+
if (state.events) {
|
|
4831
|
+
const result = state.events.enter?.("Decorators", state);
|
|
4832
|
+
if (result)
|
|
4833
|
+
return result.cache;
|
|
4834
|
+
}
|
|
4835
|
+
if (state.tokenize) {
|
|
4836
|
+
const result = $TOKEN("Decorators", state, Decorators$0(state));
|
|
4837
|
+
if (state.events)
|
|
4838
|
+
state.events.exit?.("Decorators", state, result);
|
|
4839
|
+
return result;
|
|
4840
|
+
} else {
|
|
4841
|
+
const result = Decorators$0(state);
|
|
4842
|
+
if (state.events)
|
|
4843
|
+
state.events.exit?.("Decorators", state, result);
|
|
4844
|
+
return result;
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
var MethodDefinition$0 = $TS($S($E(Decorators), MethodSignature, BracedBlock), function($skip, $loc, $0, $1, $2, $3) {
|
|
4848
|
+
var signature = $2;
|
|
4849
|
+
var block = $3;
|
|
4807
4850
|
return {
|
|
4808
4851
|
type: "MethodDefinition",
|
|
4809
|
-
children: $0
|
|
4852
|
+
children: $0,
|
|
4853
|
+
signature,
|
|
4854
|
+
block,
|
|
4855
|
+
parameters: signature.parameters
|
|
4810
4856
|
};
|
|
4811
4857
|
});
|
|
4812
4858
|
function MethodDefinition(state) {
|
|
@@ -4850,15 +4896,18 @@ ${input.slice(result.pos)}
|
|
|
4850
4896
|
}
|
|
4851
4897
|
}
|
|
4852
4898
|
var MethodSignature$0 = $TS($S(ConstructorShorthand, NonEmptyParameters), function($skip, $loc, $0, $1, $2) {
|
|
4899
|
+
var parameters = $2;
|
|
4853
4900
|
return {
|
|
4854
4901
|
type: "MethodSignature",
|
|
4855
4902
|
children: $0,
|
|
4856
4903
|
name: $1.token,
|
|
4857
|
-
returnType: void 0
|
|
4904
|
+
returnType: void 0,
|
|
4905
|
+
parameters
|
|
4858
4906
|
};
|
|
4859
4907
|
});
|
|
4860
4908
|
var MethodSignature$1 = $TS($S($E(MethodModifier), ClassElementName, $Q(_), NonEmptyParameters, $E(ReturnTypeSuffix)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4861
4909
|
var name = $2;
|
|
4910
|
+
var parameters = $4;
|
|
4862
4911
|
var suffix = $5;
|
|
4863
4912
|
if (name.name) {
|
|
4864
4913
|
name = name.name;
|
|
@@ -4870,7 +4919,8 @@ ${input.slice(result.pos)}
|
|
|
4870
4919
|
children: $0,
|
|
4871
4920
|
name,
|
|
4872
4921
|
modifier: $1?.[0]?.token,
|
|
4873
|
-
returnType: void 0
|
|
4922
|
+
returnType: void 0,
|
|
4923
|
+
parameters
|
|
4874
4924
|
};
|
|
4875
4925
|
});
|
|
4876
4926
|
function MethodSignature(state) {
|
|
@@ -8816,7 +8866,28 @@ ${input.slice(result.pos)}
|
|
|
8816
8866
|
return result;
|
|
8817
8867
|
}
|
|
8818
8868
|
}
|
|
8819
|
-
var
|
|
8869
|
+
var AtAt$0 = $TV($EXPECT($L91, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
|
|
8870
|
+
return { $loc, token: "@" };
|
|
8871
|
+
});
|
|
8872
|
+
function AtAt(state) {
|
|
8873
|
+
if (state.events) {
|
|
8874
|
+
const result = state.events.enter?.("AtAt", state);
|
|
8875
|
+
if (result)
|
|
8876
|
+
return result.cache;
|
|
8877
|
+
}
|
|
8878
|
+
if (state.tokenize) {
|
|
8879
|
+
const result = $TOKEN("AtAt", state, AtAt$0(state));
|
|
8880
|
+
if (state.events)
|
|
8881
|
+
state.events.exit?.("AtAt", state, result);
|
|
8882
|
+
return result;
|
|
8883
|
+
} else {
|
|
8884
|
+
const result = AtAt$0(state);
|
|
8885
|
+
if (state.events)
|
|
8886
|
+
state.events.exit?.("AtAt", state, result);
|
|
8887
|
+
return result;
|
|
8888
|
+
}
|
|
8889
|
+
}
|
|
8890
|
+
var Async$0 = $TV($EXPECT($L92, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
|
|
8820
8891
|
return { $loc, token: $1 };
|
|
8821
8892
|
});
|
|
8822
8893
|
function Async(state) {
|
|
@@ -8837,7 +8908,7 @@ ${input.slice(result.pos)}
|
|
|
8837
8908
|
return result;
|
|
8838
8909
|
}
|
|
8839
8910
|
}
|
|
8840
|
-
var Await$0 = $TS($S($EXPECT($
|
|
8911
|
+
var Await$0 = $TS($S($EXPECT($L93, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8841
8912
|
return { $loc, token: $1 };
|
|
8842
8913
|
});
|
|
8843
8914
|
function Await(state) {
|
|
@@ -8858,7 +8929,7 @@ ${input.slice(result.pos)}
|
|
|
8858
8929
|
return result;
|
|
8859
8930
|
}
|
|
8860
8931
|
}
|
|
8861
|
-
var Backtick$0 = $TV($EXPECT($
|
|
8932
|
+
var Backtick$0 = $TV($EXPECT($L94, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
|
|
8862
8933
|
return { $loc, token: $1 };
|
|
8863
8934
|
});
|
|
8864
8935
|
function Backtick(state) {
|
|
@@ -8879,7 +8950,7 @@ ${input.slice(result.pos)}
|
|
|
8879
8950
|
return result;
|
|
8880
8951
|
}
|
|
8881
8952
|
}
|
|
8882
|
-
var By$0 = $TS($S($EXPECT($
|
|
8953
|
+
var By$0 = $TS($S($EXPECT($L95, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8883
8954
|
return { $loc, token: $1 };
|
|
8884
8955
|
});
|
|
8885
8956
|
function By(state) {
|
|
@@ -8900,7 +8971,7 @@ ${input.slice(result.pos)}
|
|
|
8900
8971
|
return result;
|
|
8901
8972
|
}
|
|
8902
8973
|
}
|
|
8903
|
-
var Case$0 = $TS($S($EXPECT($
|
|
8974
|
+
var Case$0 = $TS($S($EXPECT($L96, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8904
8975
|
return { $loc, token: $1 };
|
|
8905
8976
|
});
|
|
8906
8977
|
function Case(state) {
|
|
@@ -8921,7 +8992,7 @@ ${input.slice(result.pos)}
|
|
|
8921
8992
|
return result;
|
|
8922
8993
|
}
|
|
8923
8994
|
}
|
|
8924
|
-
var Catch$0 = $TV($EXPECT($
|
|
8995
|
+
var Catch$0 = $TV($EXPECT($L97, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
|
|
8925
8996
|
return { $loc, token: $1 };
|
|
8926
8997
|
});
|
|
8927
8998
|
function Catch(state) {
|
|
@@ -8942,7 +9013,7 @@ ${input.slice(result.pos)}
|
|
|
8942
9013
|
return result;
|
|
8943
9014
|
}
|
|
8944
9015
|
}
|
|
8945
|
-
var Class$0 = $TV($EXPECT($
|
|
9016
|
+
var Class$0 = $TV($EXPECT($L98, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
|
|
8946
9017
|
return { $loc, token: $1 };
|
|
8947
9018
|
});
|
|
8948
9019
|
function Class(state) {
|
|
@@ -9026,7 +9097,7 @@ ${input.slice(result.pos)}
|
|
|
9026
9097
|
return result;
|
|
9027
9098
|
}
|
|
9028
9099
|
}
|
|
9029
|
-
var CoffeeSubstitutionStart$0 = $TV($EXPECT($
|
|
9100
|
+
var CoffeeSubstitutionStart$0 = $TV($EXPECT($L99, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
|
|
9030
9101
|
return { $loc, token: "${" };
|
|
9031
9102
|
});
|
|
9032
9103
|
function CoffeeSubstitutionStart(state) {
|
|
@@ -9110,7 +9181,7 @@ ${input.slice(result.pos)}
|
|
|
9110
9181
|
return result;
|
|
9111
9182
|
}
|
|
9112
9183
|
}
|
|
9113
|
-
var Delete$0 = $TS($S($EXPECT($
|
|
9184
|
+
var Delete$0 = $TS($S($EXPECT($L100, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9114
9185
|
return { $loc, token: $1 };
|
|
9115
9186
|
});
|
|
9116
9187
|
function Delete(state) {
|
|
@@ -9131,7 +9202,7 @@ ${input.slice(result.pos)}
|
|
|
9131
9202
|
return result;
|
|
9132
9203
|
}
|
|
9133
9204
|
}
|
|
9134
|
-
var Do$0 = $TS($S($EXPECT($
|
|
9205
|
+
var Do$0 = $TS($S($EXPECT($L101, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9135
9206
|
return { $loc, token: $1 };
|
|
9136
9207
|
});
|
|
9137
9208
|
function Do(state) {
|
|
@@ -9173,7 +9244,7 @@ ${input.slice(result.pos)}
|
|
|
9173
9244
|
return result;
|
|
9174
9245
|
}
|
|
9175
9246
|
}
|
|
9176
|
-
var DotDot$0 = $TV($EXPECT($
|
|
9247
|
+
var DotDot$0 = $TV($EXPECT($L102, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
|
|
9177
9248
|
return { $loc, token: $1 };
|
|
9178
9249
|
});
|
|
9179
9250
|
function DotDot(state) {
|
|
@@ -9194,7 +9265,7 @@ ${input.slice(result.pos)}
|
|
|
9194
9265
|
return result;
|
|
9195
9266
|
}
|
|
9196
9267
|
}
|
|
9197
|
-
var DotDotDot$0 = $TV($EXPECT($
|
|
9268
|
+
var DotDotDot$0 = $TV($EXPECT($L103, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
|
|
9198
9269
|
return { $loc, token: $1 };
|
|
9199
9270
|
});
|
|
9200
9271
|
function DotDotDot(state) {
|
|
@@ -9215,7 +9286,7 @@ ${input.slice(result.pos)}
|
|
|
9215
9286
|
return result;
|
|
9216
9287
|
}
|
|
9217
9288
|
}
|
|
9218
|
-
var DoubleColon$0 = $TV($EXPECT($
|
|
9289
|
+
var DoubleColon$0 = $TV($EXPECT($L104, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
|
|
9219
9290
|
return { $loc, token: $1 };
|
|
9220
9291
|
});
|
|
9221
9292
|
function DoubleColon(state) {
|
|
@@ -9236,7 +9307,7 @@ ${input.slice(result.pos)}
|
|
|
9236
9307
|
return result;
|
|
9237
9308
|
}
|
|
9238
9309
|
}
|
|
9239
|
-
var DoubleQuote$0 = $TV($EXPECT($
|
|
9310
|
+
var DoubleQuote$0 = $TV($EXPECT($L105, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
|
|
9240
9311
|
return { $loc, token: $1 };
|
|
9241
9312
|
});
|
|
9242
9313
|
function DoubleQuote(state) {
|
|
@@ -9257,7 +9328,7 @@ ${input.slice(result.pos)}
|
|
|
9257
9328
|
return result;
|
|
9258
9329
|
}
|
|
9259
9330
|
}
|
|
9260
|
-
var Else$0 = $TV($EXPECT($
|
|
9331
|
+
var Else$0 = $TV($EXPECT($L106, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
|
|
9261
9332
|
return { $loc, token: $1 };
|
|
9262
9333
|
});
|
|
9263
9334
|
function Else(state) {
|
|
@@ -9299,7 +9370,7 @@ ${input.slice(result.pos)}
|
|
|
9299
9370
|
return result;
|
|
9300
9371
|
}
|
|
9301
9372
|
}
|
|
9302
|
-
var Export$0 = $TS($S($EXPECT($
|
|
9373
|
+
var Export$0 = $TS($S($EXPECT($L107, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9303
9374
|
return { $loc, token: $1 };
|
|
9304
9375
|
});
|
|
9305
9376
|
function Export(state) {
|
|
@@ -9320,7 +9391,7 @@ ${input.slice(result.pos)}
|
|
|
9320
9391
|
return result;
|
|
9321
9392
|
}
|
|
9322
9393
|
}
|
|
9323
|
-
var For$0 = $TS($S($EXPECT($
|
|
9394
|
+
var For$0 = $TS($S($EXPECT($L108, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9324
9395
|
return { $loc, token: $1 };
|
|
9325
9396
|
});
|
|
9326
9397
|
function For(state) {
|
|
@@ -9341,7 +9412,7 @@ ${input.slice(result.pos)}
|
|
|
9341
9412
|
return result;
|
|
9342
9413
|
}
|
|
9343
9414
|
}
|
|
9344
|
-
var From$0 = $TS($S($EXPECT($
|
|
9415
|
+
var From$0 = $TS($S($EXPECT($L109, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9345
9416
|
return { $loc, token: $1 };
|
|
9346
9417
|
});
|
|
9347
9418
|
function From(state) {
|
|
@@ -9362,7 +9433,7 @@ ${input.slice(result.pos)}
|
|
|
9362
9433
|
return result;
|
|
9363
9434
|
}
|
|
9364
9435
|
}
|
|
9365
|
-
var Function$0 = $TV($EXPECT($
|
|
9436
|
+
var Function$0 = $TV($EXPECT($L110, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
|
|
9366
9437
|
return { $loc, token: $1 };
|
|
9367
9438
|
});
|
|
9368
9439
|
function Function(state) {
|
|
@@ -9383,7 +9454,7 @@ ${input.slice(result.pos)}
|
|
|
9383
9454
|
return result;
|
|
9384
9455
|
}
|
|
9385
9456
|
}
|
|
9386
|
-
var GetOrSet$0 = $TS($S($C($EXPECT($
|
|
9457
|
+
var GetOrSet$0 = $TS($S($C($EXPECT($L111, fail, 'GetOrSet "get"'), $EXPECT($L112, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9387
9458
|
return { $loc, token: $1 };
|
|
9388
9459
|
});
|
|
9389
9460
|
function GetOrSet(state) {
|
|
@@ -9404,7 +9475,7 @@ ${input.slice(result.pos)}
|
|
|
9404
9475
|
return result;
|
|
9405
9476
|
}
|
|
9406
9477
|
}
|
|
9407
|
-
var If$0 = $TV($TEXT($S($EXPECT($
|
|
9478
|
+
var If$0 = $TV($TEXT($S($EXPECT($L113, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
|
|
9408
9479
|
return { $loc, token: $1 };
|
|
9409
9480
|
});
|
|
9410
9481
|
function If(state) {
|
|
@@ -9467,7 +9538,7 @@ ${input.slice(result.pos)}
|
|
|
9467
9538
|
return result;
|
|
9468
9539
|
}
|
|
9469
9540
|
}
|
|
9470
|
-
var LetOrConst$0 = $TS($S($C($EXPECT($
|
|
9541
|
+
var LetOrConst$0 = $TS($S($C($EXPECT($L114, fail, 'LetOrConst "let"'), $EXPECT($L115, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9471
9542
|
return { $loc, token: $1 };
|
|
9472
9543
|
});
|
|
9473
9544
|
function LetOrConst(state) {
|
|
@@ -9488,7 +9559,7 @@ ${input.slice(result.pos)}
|
|
|
9488
9559
|
return result;
|
|
9489
9560
|
}
|
|
9490
9561
|
}
|
|
9491
|
-
var Loop$0 = $TS($S($EXPECT($
|
|
9562
|
+
var Loop$0 = $TS($S($EXPECT($L116, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9492
9563
|
return { $loc, token: "while(true)" };
|
|
9493
9564
|
});
|
|
9494
9565
|
function Loop(state) {
|
|
@@ -9509,7 +9580,7 @@ ${input.slice(result.pos)}
|
|
|
9509
9580
|
return result;
|
|
9510
9581
|
}
|
|
9511
9582
|
}
|
|
9512
|
-
var New$0 = $TS($S($EXPECT($
|
|
9583
|
+
var New$0 = $TS($S($EXPECT($L117, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9513
9584
|
return { $loc, token: $1 };
|
|
9514
9585
|
});
|
|
9515
9586
|
function New(state) {
|
|
@@ -9572,7 +9643,7 @@ ${input.slice(result.pos)}
|
|
|
9572
9643
|
return result;
|
|
9573
9644
|
}
|
|
9574
9645
|
}
|
|
9575
|
-
var OpenBrace$0 = $TV($EXPECT($
|
|
9646
|
+
var OpenBrace$0 = $TV($EXPECT($L118, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
|
|
9576
9647
|
return { $loc, token: $1 };
|
|
9577
9648
|
});
|
|
9578
9649
|
function OpenBrace(state) {
|
|
@@ -9593,7 +9664,7 @@ ${input.slice(result.pos)}
|
|
|
9593
9664
|
return result;
|
|
9594
9665
|
}
|
|
9595
9666
|
}
|
|
9596
|
-
var OpenBracket$0 = $TV($EXPECT($
|
|
9667
|
+
var OpenBracket$0 = $TV($EXPECT($L119, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
|
|
9597
9668
|
return { $loc, token: $1 };
|
|
9598
9669
|
});
|
|
9599
9670
|
function OpenBracket(state) {
|
|
@@ -9614,7 +9685,7 @@ ${input.slice(result.pos)}
|
|
|
9614
9685
|
return result;
|
|
9615
9686
|
}
|
|
9616
9687
|
}
|
|
9617
|
-
var OpenParen$0 = $TV($EXPECT($
|
|
9688
|
+
var OpenParen$0 = $TV($EXPECT($L120, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
|
|
9618
9689
|
return { $loc, token: $1 };
|
|
9619
9690
|
});
|
|
9620
9691
|
function OpenParen(state) {
|
|
@@ -9656,7 +9727,7 @@ ${input.slice(result.pos)}
|
|
|
9656
9727
|
return result;
|
|
9657
9728
|
}
|
|
9658
9729
|
}
|
|
9659
|
-
var Return$0 = $TS($S($EXPECT($
|
|
9730
|
+
var Return$0 = $TS($S($EXPECT($L121, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9660
9731
|
return { $loc, token: $1 };
|
|
9661
9732
|
});
|
|
9662
9733
|
function Return(state) {
|
|
@@ -9698,7 +9769,7 @@ ${input.slice(result.pos)}
|
|
|
9698
9769
|
return result;
|
|
9699
9770
|
}
|
|
9700
9771
|
}
|
|
9701
|
-
var SingleQuote$0 = $TV($EXPECT($
|
|
9772
|
+
var SingleQuote$0 = $TV($EXPECT($L122, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
|
|
9702
9773
|
return { $loc, token: $1 };
|
|
9703
9774
|
});
|
|
9704
9775
|
function SingleQuote(state) {
|
|
@@ -9740,10 +9811,10 @@ ${input.slice(result.pos)}
|
|
|
9740
9811
|
return result;
|
|
9741
9812
|
}
|
|
9742
9813
|
}
|
|
9743
|
-
var Static$0 = $TV($EXPECT($
|
|
9814
|
+
var Static$0 = $TV($EXPECT($L123, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
|
|
9744
9815
|
return { $loc, token: $1 };
|
|
9745
9816
|
});
|
|
9746
|
-
var Static$1 = $TS($S($EXPECT($L90, fail, 'Static "@"'), $N($EXPECT($
|
|
9817
|
+
var Static$1 = $TS($S($EXPECT($L90, fail, 'Static "@"'), $N($C($EXPECT($L120, fail, 'Static "("'), $EXPECT($L90, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
|
|
9747
9818
|
return { $loc, token: "static " };
|
|
9748
9819
|
});
|
|
9749
9820
|
function Static(state) {
|
|
@@ -9764,7 +9835,7 @@ ${input.slice(result.pos)}
|
|
|
9764
9835
|
return result;
|
|
9765
9836
|
}
|
|
9766
9837
|
}
|
|
9767
|
-
var SubstitutionStart$0 = $TV($EXPECT($
|
|
9838
|
+
var SubstitutionStart$0 = $TV($EXPECT($L124, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
|
|
9768
9839
|
return { $loc, token: $1 };
|
|
9769
9840
|
});
|
|
9770
9841
|
function SubstitutionStart(state) {
|
|
@@ -9785,7 +9856,7 @@ ${input.slice(result.pos)}
|
|
|
9785
9856
|
return result;
|
|
9786
9857
|
}
|
|
9787
9858
|
}
|
|
9788
|
-
var Switch$0 = $TS($S($EXPECT($
|
|
9859
|
+
var Switch$0 = $TS($S($EXPECT($L125, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9789
9860
|
return { $loc, token: $1 };
|
|
9790
9861
|
});
|
|
9791
9862
|
function Switch(state) {
|
|
@@ -9806,7 +9877,7 @@ ${input.slice(result.pos)}
|
|
|
9806
9877
|
return result;
|
|
9807
9878
|
}
|
|
9808
9879
|
}
|
|
9809
|
-
var Target$0 = $TS($S($EXPECT($
|
|
9880
|
+
var Target$0 = $TS($S($EXPECT($L126, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9810
9881
|
return { $loc, token: $1 };
|
|
9811
9882
|
});
|
|
9812
9883
|
function Target(state) {
|
|
@@ -9827,7 +9898,7 @@ ${input.slice(result.pos)}
|
|
|
9827
9898
|
return result;
|
|
9828
9899
|
}
|
|
9829
9900
|
}
|
|
9830
|
-
var Then$0 = $TS($S(__, $EXPECT($
|
|
9901
|
+
var Then$0 = $TS($S(__, $EXPECT($L127, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
|
|
9831
9902
|
return { $loc, token: "" };
|
|
9832
9903
|
});
|
|
9833
9904
|
function Then(state) {
|
|
@@ -9848,7 +9919,7 @@ ${input.slice(result.pos)}
|
|
|
9848
9919
|
return result;
|
|
9849
9920
|
}
|
|
9850
9921
|
}
|
|
9851
|
-
var This$0 = $TS($S($EXPECT($
|
|
9922
|
+
var This$0 = $TS($S($EXPECT($L128, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9852
9923
|
return { $loc, token: $1 };
|
|
9853
9924
|
});
|
|
9854
9925
|
function This(state) {
|
|
@@ -9869,7 +9940,7 @@ ${input.slice(result.pos)}
|
|
|
9869
9940
|
return result;
|
|
9870
9941
|
}
|
|
9871
9942
|
}
|
|
9872
|
-
var Throw$0 = $TS($S($EXPECT($
|
|
9943
|
+
var Throw$0 = $TS($S($EXPECT($L129, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9873
9944
|
return { $loc, token: $1 };
|
|
9874
9945
|
});
|
|
9875
9946
|
function Throw(state) {
|
|
@@ -9890,7 +9961,7 @@ ${input.slice(result.pos)}
|
|
|
9890
9961
|
return result;
|
|
9891
9962
|
}
|
|
9892
9963
|
}
|
|
9893
|
-
var TripleDoubleQuote$0 = $TV($EXPECT($
|
|
9964
|
+
var TripleDoubleQuote$0 = $TV($EXPECT($L130, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
|
|
9894
9965
|
return { $loc, token: "`" };
|
|
9895
9966
|
});
|
|
9896
9967
|
function TripleDoubleQuote(state) {
|
|
@@ -9911,7 +9982,7 @@ ${input.slice(result.pos)}
|
|
|
9911
9982
|
return result;
|
|
9912
9983
|
}
|
|
9913
9984
|
}
|
|
9914
|
-
var TripleSingleQuote$0 = $TV($EXPECT($
|
|
9985
|
+
var TripleSingleQuote$0 = $TV($EXPECT($L131, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
|
|
9915
9986
|
return { $loc, token: "`" };
|
|
9916
9987
|
});
|
|
9917
9988
|
function TripleSingleQuote(state) {
|
|
@@ -9932,7 +10003,7 @@ ${input.slice(result.pos)}
|
|
|
9932
10003
|
return result;
|
|
9933
10004
|
}
|
|
9934
10005
|
}
|
|
9935
|
-
var TripleSlash$0 = $TV($EXPECT($
|
|
10006
|
+
var TripleSlash$0 = $TV($EXPECT($L132, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
|
|
9936
10007
|
return { $loc, token: "/" };
|
|
9937
10008
|
});
|
|
9938
10009
|
function TripleSlash(state) {
|
|
@@ -9953,7 +10024,7 @@ ${input.slice(result.pos)}
|
|
|
9953
10024
|
return result;
|
|
9954
10025
|
}
|
|
9955
10026
|
}
|
|
9956
|
-
var TripleTick$0 = $TV($EXPECT($
|
|
10027
|
+
var TripleTick$0 = $TV($EXPECT($L133, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
|
|
9957
10028
|
return { $loc, token: "`" };
|
|
9958
10029
|
});
|
|
9959
10030
|
function TripleTick(state) {
|
|
@@ -9974,7 +10045,7 @@ ${input.slice(result.pos)}
|
|
|
9974
10045
|
return result;
|
|
9975
10046
|
}
|
|
9976
10047
|
}
|
|
9977
|
-
var Try$0 = $TS($S($EXPECT($
|
|
10048
|
+
var Try$0 = $TS($S($EXPECT($L134, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9978
10049
|
return { $loc, token: $1 };
|
|
9979
10050
|
});
|
|
9980
10051
|
function Try(state) {
|
|
@@ -9995,7 +10066,7 @@ ${input.slice(result.pos)}
|
|
|
9995
10066
|
return result;
|
|
9996
10067
|
}
|
|
9997
10068
|
}
|
|
9998
|
-
var Typeof$0 = $TS($S($EXPECT($
|
|
10069
|
+
var Typeof$0 = $TS($S($EXPECT($L135, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9999
10070
|
return { $loc, token: $1 };
|
|
10000
10071
|
});
|
|
10001
10072
|
function Typeof(state) {
|
|
@@ -10016,7 +10087,7 @@ ${input.slice(result.pos)}
|
|
|
10016
10087
|
return result;
|
|
10017
10088
|
}
|
|
10018
10089
|
}
|
|
10019
|
-
var Unless$0 = $TS($S($EXPECT($
|
|
10090
|
+
var Unless$0 = $TS($S($EXPECT($L136, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10020
10091
|
return { $loc, token: $1 };
|
|
10021
10092
|
});
|
|
10022
10093
|
function Unless(state) {
|
|
@@ -10037,7 +10108,7 @@ ${input.slice(result.pos)}
|
|
|
10037
10108
|
return result;
|
|
10038
10109
|
}
|
|
10039
10110
|
}
|
|
10040
|
-
var Until$0 = $TS($S($EXPECT($
|
|
10111
|
+
var Until$0 = $TS($S($EXPECT($L137, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10041
10112
|
return { $loc, token: $1 };
|
|
10042
10113
|
});
|
|
10043
10114
|
function Until(state) {
|
|
@@ -10058,7 +10129,7 @@ ${input.slice(result.pos)}
|
|
|
10058
10129
|
return result;
|
|
10059
10130
|
}
|
|
10060
10131
|
}
|
|
10061
|
-
var Var$0 = $TS($S($EXPECT($
|
|
10132
|
+
var Var$0 = $TS($S($EXPECT($L138, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10062
10133
|
return { $loc, token: $1 };
|
|
10063
10134
|
});
|
|
10064
10135
|
function Var(state) {
|
|
@@ -10079,7 +10150,7 @@ ${input.slice(result.pos)}
|
|
|
10079
10150
|
return result;
|
|
10080
10151
|
}
|
|
10081
10152
|
}
|
|
10082
|
-
var Void$0 = $TS($S($EXPECT($
|
|
10153
|
+
var Void$0 = $TS($S($EXPECT($L139, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10083
10154
|
return { $loc, token: $1 };
|
|
10084
10155
|
});
|
|
10085
10156
|
function Void(state) {
|
|
@@ -10100,7 +10171,7 @@ ${input.slice(result.pos)}
|
|
|
10100
10171
|
return result;
|
|
10101
10172
|
}
|
|
10102
10173
|
}
|
|
10103
|
-
var When$0 = $TS($S($EXPECT($
|
|
10174
|
+
var When$0 = $TS($S($EXPECT($L140, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10104
10175
|
return { $loc, token: "case" };
|
|
10105
10176
|
});
|
|
10106
10177
|
function When(state) {
|
|
@@ -10121,7 +10192,7 @@ ${input.slice(result.pos)}
|
|
|
10121
10192
|
return result;
|
|
10122
10193
|
}
|
|
10123
10194
|
}
|
|
10124
|
-
var While$0 = $TS($S($EXPECT($
|
|
10195
|
+
var While$0 = $TS($S($EXPECT($L141, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10125
10196
|
return { $loc, token: $1 };
|
|
10126
10197
|
});
|
|
10127
10198
|
function While(state) {
|
|
@@ -10142,7 +10213,7 @@ ${input.slice(result.pos)}
|
|
|
10142
10213
|
return result;
|
|
10143
10214
|
}
|
|
10144
10215
|
}
|
|
10145
|
-
var Yield$0 = $TS($S($EXPECT($
|
|
10216
|
+
var Yield$0 = $TS($S($EXPECT($L142, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10146
10217
|
return { $loc, token: $1 };
|
|
10147
10218
|
});
|
|
10148
10219
|
function Yield(state) {
|
|
@@ -10188,7 +10259,7 @@ ${input.slice(result.pos)}
|
|
|
10188
10259
|
return result;
|
|
10189
10260
|
}
|
|
10190
10261
|
}
|
|
10191
|
-
var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($
|
|
10262
|
+
var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L143, fail, 'JSXSelfClosingElement "/>"'));
|
|
10192
10263
|
function JSXSelfClosingElement(state) {
|
|
10193
10264
|
if (state.events) {
|
|
10194
10265
|
const result = state.events.enter?.("JSXSelfClosingElement", state);
|
|
@@ -10226,7 +10297,7 @@ ${input.slice(result.pos)}
|
|
|
10226
10297
|
return result;
|
|
10227
10298
|
}
|
|
10228
10299
|
}
|
|
10229
|
-
var JSXClosingElement$0 = $S($EXPECT($
|
|
10300
|
+
var JSXClosingElement$0 = $S($EXPECT($L144, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L25, fail, 'JSXClosingElement ">"'));
|
|
10230
10301
|
function JSXClosingElement(state) {
|
|
10231
10302
|
if (state.events) {
|
|
10232
10303
|
const result = state.events.enter?.("JSXClosingElement", state);
|
|
@@ -10245,7 +10316,7 @@ ${input.slice(result.pos)}
|
|
|
10245
10316
|
return result;
|
|
10246
10317
|
}
|
|
10247
10318
|
}
|
|
10248
|
-
var JSXFragment$0 = $S($EXPECT($
|
|
10319
|
+
var JSXFragment$0 = $S($EXPECT($L145, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L146, fail, 'JSXFragment "</>"'));
|
|
10249
10320
|
function JSXFragment(state) {
|
|
10250
10321
|
if (state.events) {
|
|
10251
10322
|
const result = state.events.enter?.("JSXFragment", state);
|
|
@@ -10502,7 +10573,7 @@ ${input.slice(result.pos)}
|
|
|
10502
10573
|
return result;
|
|
10503
10574
|
}
|
|
10504
10575
|
}
|
|
10505
|
-
var TypeDeclarationModifier$0 = $S($EXPECT($
|
|
10576
|
+
var TypeDeclarationModifier$0 = $S($EXPECT($L147, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
|
|
10506
10577
|
var TypeDeclarationModifier$1 = Export;
|
|
10507
10578
|
function TypeDeclarationModifier(state) {
|
|
10508
10579
|
if (state.events) {
|
|
@@ -10544,7 +10615,7 @@ ${input.slice(result.pos)}
|
|
|
10544
10615
|
return result;
|
|
10545
10616
|
}
|
|
10546
10617
|
}
|
|
10547
|
-
var TypeKeyword$0 = $S($EXPECT($
|
|
10618
|
+
var TypeKeyword$0 = $S($EXPECT($L148, fail, 'TypeKeyword "type"'), NonIdContinue);
|
|
10548
10619
|
function TypeKeyword(state) {
|
|
10549
10620
|
if (state.events) {
|
|
10550
10621
|
const result = state.events.enter?.("TypeKeyword", state);
|
|
@@ -10563,7 +10634,7 @@ ${input.slice(result.pos)}
|
|
|
10563
10634
|
return result;
|
|
10564
10635
|
}
|
|
10565
10636
|
}
|
|
10566
|
-
var Interface$0 = $S($EXPECT($
|
|
10637
|
+
var Interface$0 = $S($EXPECT($L149, fail, 'Interface "interface"'), NonIdContinue);
|
|
10567
10638
|
function Interface(state) {
|
|
10568
10639
|
if (state.events) {
|
|
10569
10640
|
const result = state.events.enter?.("Interface", state);
|
|
@@ -10582,7 +10653,7 @@ ${input.slice(result.pos)}
|
|
|
10582
10653
|
return result;
|
|
10583
10654
|
}
|
|
10584
10655
|
}
|
|
10585
|
-
var Namespace$0 = $S($EXPECT($
|
|
10656
|
+
var Namespace$0 = $S($EXPECT($L150, fail, 'Namespace "namespace"'), NonIdContinue);
|
|
10586
10657
|
function Namespace(state) {
|
|
10587
10658
|
if (state.events) {
|
|
10588
10659
|
const result = state.events.enter?.("Namespace", state);
|
|
@@ -10771,7 +10842,7 @@ ${input.slice(result.pos)}
|
|
|
10771
10842
|
return result;
|
|
10772
10843
|
}
|
|
10773
10844
|
}
|
|
10774
|
-
var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R47, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($
|
|
10845
|
+
var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R47, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L151, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R48, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
|
|
10775
10846
|
function TypeIndexSignature(state) {
|
|
10776
10847
|
if (state.events) {
|
|
10777
10848
|
const result = state.events.enter?.("TypeIndexSignature", state);
|
|
@@ -10831,7 +10902,7 @@ ${input.slice(result.pos)}
|
|
|
10831
10902
|
return result;
|
|
10832
10903
|
}
|
|
10833
10904
|
}
|
|
10834
|
-
var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($
|
|
10905
|
+
var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L152, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
10835
10906
|
const children = [...$1, $2];
|
|
10836
10907
|
if ($3)
|
|
10837
10908
|
children.push($3);
|
|
@@ -10966,9 +11037,9 @@ ${input.slice(result.pos)}
|
|
|
10966
11037
|
return result;
|
|
10967
11038
|
}
|
|
10968
11039
|
}
|
|
10969
|
-
var TypeUnaryOp$0 = $EXPECT($
|
|
10970
|
-
var TypeUnaryOp$1 = $EXPECT($
|
|
10971
|
-
var TypeUnaryOp$2 = $EXPECT($
|
|
11040
|
+
var TypeUnaryOp$0 = $EXPECT($L153, fail, 'TypeUnaryOp "keyof"');
|
|
11041
|
+
var TypeUnaryOp$1 = $EXPECT($L135, fail, 'TypeUnaryOp "typeof"');
|
|
11042
|
+
var TypeUnaryOp$2 = $EXPECT($L154, fail, 'TypeUnaryOp "infer"');
|
|
10972
11043
|
function TypeUnaryOp(state) {
|
|
10973
11044
|
if (state.events) {
|
|
10974
11045
|
const result = state.events.enter?.("TypeUnaryOp", state);
|
|
@@ -11136,10 +11207,10 @@ ${input.slice(result.pos)}
|
|
|
11136
11207
|
}
|
|
11137
11208
|
}
|
|
11138
11209
|
var TypeLiteral$0 = Literal;
|
|
11139
|
-
var TypeLiteral$1 = $TV($EXPECT($
|
|
11210
|
+
var TypeLiteral$1 = $TV($EXPECT($L139, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
|
|
11140
11211
|
return { $loc, token: "void" };
|
|
11141
11212
|
});
|
|
11142
|
-
var TypeLiteral$2 = $TV($EXPECT($
|
|
11213
|
+
var TypeLiteral$2 = $TV($EXPECT($L155, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
|
|
11143
11214
|
return { $loc, token: "[]" };
|
|
11144
11215
|
});
|
|
11145
11216
|
function TypeLiteral(state) {
|
|
@@ -11352,7 +11423,7 @@ ${input.slice(result.pos)}
|
|
|
11352
11423
|
return result;
|
|
11353
11424
|
}
|
|
11354
11425
|
}
|
|
11355
|
-
var CivetPrologueContent$0 = $TS($S($EXPECT($
|
|
11426
|
+
var CivetPrologueContent$0 = $TS($S($EXPECT($L156, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R51, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
|
|
11356
11427
|
var options = $2;
|
|
11357
11428
|
return {
|
|
11358
11429
|
type: "CivetPrologue",
|
|
@@ -11378,13 +11449,18 @@ ${input.slice(result.pos)}
|
|
|
11378
11449
|
return result;
|
|
11379
11450
|
}
|
|
11380
11451
|
}
|
|
11381
|
-
var CivetOption$0 = $TR($EXPECT($R52, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)
|
|
11452
|
+
var CivetOption$0 = $TR($EXPECT($R52, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
11382
11453
|
const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
|
|
11383
11454
|
if (l)
|
|
11384
11455
|
return l.toUpperCase();
|
|
11385
11456
|
return "";
|
|
11386
11457
|
});
|
|
11387
|
-
|
|
11458
|
+
let value = $3 ? $4 : $1 === "-" ? false : true;
|
|
11459
|
+
if (optionName === "tab") {
|
|
11460
|
+
value = parseFloat(value);
|
|
11461
|
+
if (isNaN(value))
|
|
11462
|
+
value = 0;
|
|
11463
|
+
}
|
|
11388
11464
|
return [optionName, value];
|
|
11389
11465
|
});
|
|
11390
11466
|
function CivetOption(state) {
|
|
@@ -12061,7 +12137,8 @@ ${input.slice(result.pos)}
|
|
|
12061
12137
|
coffeeLineContinuation: false,
|
|
12062
12138
|
coffeeNot: false,
|
|
12063
12139
|
coffeeOf: false,
|
|
12064
|
-
implicitReturns: true
|
|
12140
|
+
implicitReturns: true,
|
|
12141
|
+
tab: void 0
|
|
12065
12142
|
};
|
|
12066
12143
|
let indexOfRef, hasPropRef, spliceRef;
|
|
12067
12144
|
const asAny = {
|
|
@@ -12673,11 +12750,11 @@ ${input.slice(result.pos)}
|
|
|
12673
12750
|
});
|
|
12674
12751
|
gatherRecursiveAll(statements, (n) => n.type === "MethodDefinition").forEach((f) => {
|
|
12675
12752
|
processParams(f);
|
|
12676
|
-
const {
|
|
12753
|
+
const { signature, block } = f;
|
|
12677
12754
|
if (module2.config.implicitReturns) {
|
|
12678
|
-
const isConstructor =
|
|
12679
|
-
const isVoid =
|
|
12680
|
-
const isSet =
|
|
12755
|
+
const isConstructor = signature.name === "constructor";
|
|
12756
|
+
const isVoid = signature.returnType === "void";
|
|
12757
|
+
const isSet = signature.modifier === "set";
|
|
12681
12758
|
if (!isConstructor && !isSet && !isVoid) {
|
|
12682
12759
|
insertReturn(block);
|
|
12683
12760
|
}
|
|
@@ -12934,11 +13011,18 @@ ${input.slice(result.pos)}
|
|
|
12934
13011
|
return result;
|
|
12935
13012
|
}
|
|
12936
13013
|
}
|
|
12937
|
-
var Indent$0 = $
|
|
12938
|
-
|
|
13014
|
+
var Indent$0 = $TR($EXPECT($R54, fail, "Indent /[ \\t]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
13015
|
+
let level;
|
|
13016
|
+
if (module2.config.tab) {
|
|
13017
|
+
const tabs = $0.match(/\t/g);
|
|
13018
|
+
const numTabs = tabs ? tabs.length : 0;
|
|
13019
|
+
level = numTabs * module2.config.tab + ($0.length - numTabs);
|
|
13020
|
+
} else {
|
|
13021
|
+
level = $0.length;
|
|
13022
|
+
}
|
|
12939
13023
|
return {
|
|
12940
13024
|
$loc,
|
|
12941
|
-
token: $
|
|
13025
|
+
token: $0,
|
|
12942
13026
|
level
|
|
12943
13027
|
};
|
|
12944
13028
|
});
|