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