@danielx/civet 0.4.22 → 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 +284 -158
- package/dist/esbuild-plugin.js +1 -1
- package/dist/main.js +284 -158
- 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,
|
|
@@ -609,6 +611,7 @@ ${input.slice(result.pos)}
|
|
|
609
611
|
UnquotedSpecifier,
|
|
610
612
|
ImportedBinding,
|
|
611
613
|
ExportDeclaration,
|
|
614
|
+
ExportVarDec,
|
|
612
615
|
ExportFromClause,
|
|
613
616
|
NamedExports,
|
|
614
617
|
ExportSpecifier,
|
|
@@ -676,6 +679,7 @@ ${input.slice(result.pos)}
|
|
|
676
679
|
Ampersand,
|
|
677
680
|
As,
|
|
678
681
|
At,
|
|
682
|
+
AtAt,
|
|
679
683
|
Async,
|
|
680
684
|
Await,
|
|
681
685
|
Backtick,
|
|
@@ -816,6 +820,7 @@ ${input.slice(result.pos)}
|
|
|
816
820
|
InsertSpace,
|
|
817
821
|
InsertDot,
|
|
818
822
|
InsertBreak,
|
|
823
|
+
InsertVar,
|
|
819
824
|
CoffeeBinaryExistentialEnabled,
|
|
820
825
|
CoffeeBooleansEnabled,
|
|
821
826
|
CoffeeClassesEnabled,
|
|
@@ -928,73 +933,72 @@ ${input.slice(result.pos)}
|
|
|
928
933
|
var $L88 = $L("\\");
|
|
929
934
|
var $L89 = $L("as");
|
|
930
935
|
var $L90 = $L("@");
|
|
931
|
-
var $L91 = $L("
|
|
932
|
-
var $L92 = $L("
|
|
933
|
-
var $L93 = $L("
|
|
934
|
-
var $L94 = $L("
|
|
935
|
-
var $L95 = $L("
|
|
936
|
-
var $L96 = $L("
|
|
937
|
-
var $L97 = $L("
|
|
938
|
-
var $L98 = $L("
|
|
939
|
-
var $L99 = $L("
|
|
940
|
-
var $L100 = $L("
|
|
941
|
-
var $L101 = $L("
|
|
942
|
-
var $L102 = $L("
|
|
943
|
-
var $L103 = $L("
|
|
944
|
-
var $L104 = $L(
|
|
945
|
-
var $L105 = $L("
|
|
946
|
-
var $L106 = $L("
|
|
947
|
-
var $L107 = $L("
|
|
948
|
-
var $L108 = $L("
|
|
949
|
-
var $L109 = $L("
|
|
950
|
-
var $L110 = $L("
|
|
951
|
-
var $L111 = $L("
|
|
952
|
-
var $L112 = $L("
|
|
953
|
-
var $L113 = $L("
|
|
954
|
-
var $L114 = $L("
|
|
955
|
-
var $L115 = $L("
|
|
956
|
-
var $L116 = $L("
|
|
957
|
-
var $L117 = $L("
|
|
958
|
-
var $L118 = $L("
|
|
959
|
-
var $L119 = $L("
|
|
960
|
-
var $L120 = $L("
|
|
961
|
-
var $L121 = $L("
|
|
962
|
-
var $L122 = $L("
|
|
963
|
-
var $L123 = $L("
|
|
964
|
-
var $L124 = $L("
|
|
965
|
-
var $L125 = $L("
|
|
966
|
-
var $L126 = $L("
|
|
967
|
-
var $L127 = $L("
|
|
968
|
-
var $L128 = $L("
|
|
969
|
-
var $L129 = $L(
|
|
970
|
-
var $L130 = $L("'
|
|
971
|
-
var $L131 = $L("
|
|
972
|
-
var $L132 = $L("
|
|
973
|
-
var $L133 = $L("
|
|
974
|
-
var $L134 = $L("
|
|
975
|
-
var $L135 = $L("
|
|
976
|
-
var $L136 = $L("
|
|
977
|
-
var $L137 = $L("
|
|
978
|
-
var $L138 = $L("
|
|
979
|
-
var $L139 = $L("
|
|
980
|
-
var $L140 = $L("
|
|
981
|
-
var $L141 = $L("
|
|
982
|
-
var $L142 = $L("
|
|
983
|
-
var $L143 = $L("
|
|
984
|
-
var $L144 = $L("
|
|
985
|
-
var $L145 = $L("
|
|
986
|
-
var $L146 = $L("
|
|
987
|
-
var $L147 = $L("
|
|
988
|
-
var $L148 = $L("
|
|
989
|
-
var $L149 = $L("
|
|
990
|
-
var $L150 = $L("
|
|
991
|
-
var $L151 = $L("
|
|
992
|
-
var $L152 = $L("
|
|
993
|
-
var $L153 = $L("
|
|
994
|
-
var $L154 = $L("
|
|
995
|
-
var $L155 = $L("
|
|
996
|
-
var $L156 = $L("
|
|
997
|
-
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");
|
|
998
1002
|
var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
|
|
999
1003
|
var $R1 = $R(new RegExp("[&]", "suy"));
|
|
1000
1004
|
var $R2 = $R(new RegExp("[!~+-]+", "suy"));
|
|
@@ -1047,8 +1051,9 @@ ${input.slice(result.pos)}
|
|
|
1047
1051
|
var $R49 = $R(new RegExp("#![^\\r\\n]*", "suy"));
|
|
1048
1052
|
var $R50 = $R(new RegExp("[\\t ]*", "suy"));
|
|
1049
1053
|
var $R51 = $R(new RegExp("[\\s]*", "suy"));
|
|
1050
|
-
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"));
|
|
1051
1055
|
var $R53 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
1056
|
+
var $R54 = $R(new RegExp("[ \\t]*", "suy"));
|
|
1052
1057
|
var Program$0 = $TS($S(Reset, Init, __, $Q(TopLevelStatement), __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
1053
1058
|
var statements = $4;
|
|
1054
1059
|
module2.processProgram(statements);
|
|
@@ -1982,7 +1987,7 @@ ${input.slice(result.pos)}
|
|
|
1982
1987
|
return result;
|
|
1983
1988
|
}
|
|
1984
1989
|
}
|
|
1985
|
-
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);
|
|
1986
1991
|
function ClassExpression(state) {
|
|
1987
1992
|
if (state.events) {
|
|
1988
1993
|
const result = state.events.enter?.("ClassExpression", state);
|
|
@@ -2107,8 +2112,9 @@ ${input.slice(result.pos)}
|
|
|
2107
2112
|
return result;
|
|
2108
2113
|
}
|
|
2109
2114
|
}
|
|
2110
|
-
var ClassElement$0 =
|
|
2111
|
-
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);
|
|
2112
2118
|
function ClassElement(state) {
|
|
2113
2119
|
if (state.events) {
|
|
2114
2120
|
const result = state.events.enter?.("ClassElement", state);
|
|
@@ -2116,12 +2122,12 @@ ${input.slice(result.pos)}
|
|
|
2116
2122
|
return result.cache;
|
|
2117
2123
|
}
|
|
2118
2124
|
if (state.tokenize) {
|
|
2119
|
-
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));
|
|
2120
2126
|
if (state.events)
|
|
2121
2127
|
state.events.exit?.("ClassElement", state, result);
|
|
2122
2128
|
return result;
|
|
2123
2129
|
} else {
|
|
2124
|
-
const result = ClassElement$0(state) || ClassElement$1(state);
|
|
2130
|
+
const result = ClassElement$0(state) || ClassElement$1(state) || ClassElement$2(state);
|
|
2125
2131
|
if (state.events)
|
|
2126
2132
|
state.events.exit?.("ClassElement", state, result);
|
|
2127
2133
|
return result;
|
|
@@ -2306,6 +2312,7 @@ ${input.slice(result.pos)}
|
|
|
2306
2312
|
}
|
|
2307
2313
|
}
|
|
2308
2314
|
var AdditionalReservedWords$0 = $R$0($EXPECT($R0, fail, "AdditionalReservedWords /(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
2315
|
+
var AdditionalReservedWords$1 = AtAt;
|
|
2309
2316
|
function AdditionalReservedWords(state) {
|
|
2310
2317
|
if (state.events) {
|
|
2311
2318
|
const result = state.events.enter?.("AdditionalReservedWords", state);
|
|
@@ -2313,12 +2320,12 @@ ${input.slice(result.pos)}
|
|
|
2313
2320
|
return result.cache;
|
|
2314
2321
|
}
|
|
2315
2322
|
if (state.tokenize) {
|
|
2316
|
-
const result = $TOKEN("AdditionalReservedWords", state, AdditionalReservedWords$0(state));
|
|
2323
|
+
const result = $TOKEN("AdditionalReservedWords", state, AdditionalReservedWords$0(state) || AdditionalReservedWords$1(state));
|
|
2317
2324
|
if (state.events)
|
|
2318
2325
|
state.events.exit?.("AdditionalReservedWords", state, result);
|
|
2319
2326
|
return result;
|
|
2320
2327
|
} else {
|
|
2321
|
-
const result = AdditionalReservedWords$0(state);
|
|
2328
|
+
const result = AdditionalReservedWords$0(state) || AdditionalReservedWords$1(state);
|
|
2322
2329
|
if (state.events)
|
|
2323
2330
|
state.events.exit?.("AdditionalReservedWords", state, result);
|
|
2324
2331
|
return result;
|
|
@@ -4799,12 +4806,53 @@ ${input.slice(result.pos)}
|
|
|
4799
4806
|
return result;
|
|
4800
4807
|
}
|
|
4801
4808
|
}
|
|
4802
|
-
var
|
|
4803
|
-
|
|
4804
|
-
|
|
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;
|
|
4805
4850
|
return {
|
|
4806
4851
|
type: "MethodDefinition",
|
|
4807
|
-
children: $0
|
|
4852
|
+
children: $0,
|
|
4853
|
+
signature,
|
|
4854
|
+
block,
|
|
4855
|
+
parameters: signature.parameters
|
|
4808
4856
|
};
|
|
4809
4857
|
});
|
|
4810
4858
|
function MethodDefinition(state) {
|
|
@@ -4848,15 +4896,18 @@ ${input.slice(result.pos)}
|
|
|
4848
4896
|
}
|
|
4849
4897
|
}
|
|
4850
4898
|
var MethodSignature$0 = $TS($S(ConstructorShorthand, NonEmptyParameters), function($skip, $loc, $0, $1, $2) {
|
|
4899
|
+
var parameters = $2;
|
|
4851
4900
|
return {
|
|
4852
4901
|
type: "MethodSignature",
|
|
4853
4902
|
children: $0,
|
|
4854
4903
|
name: $1.token,
|
|
4855
|
-
returnType: void 0
|
|
4904
|
+
returnType: void 0,
|
|
4905
|
+
parameters
|
|
4856
4906
|
};
|
|
4857
4907
|
});
|
|
4858
4908
|
var MethodSignature$1 = $TS($S($E(MethodModifier), ClassElementName, $Q(_), NonEmptyParameters, $E(ReturnTypeSuffix)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
4859
4909
|
var name = $2;
|
|
4910
|
+
var parameters = $4;
|
|
4860
4911
|
var suffix = $5;
|
|
4861
4912
|
if (name.name) {
|
|
4862
4913
|
name = name.name;
|
|
@@ -4868,7 +4919,8 @@ ${input.slice(result.pos)}
|
|
|
4868
4919
|
children: $0,
|
|
4869
4920
|
name,
|
|
4870
4921
|
modifier: $1?.[0]?.token,
|
|
4871
|
-
returnType: void 0
|
|
4922
|
+
returnType: void 0,
|
|
4923
|
+
parameters
|
|
4872
4924
|
};
|
|
4873
4925
|
});
|
|
4874
4926
|
function MethodSignature(state) {
|
|
@@ -7203,7 +7255,7 @@ ${input.slice(result.pos)}
|
|
|
7203
7255
|
}
|
|
7204
7256
|
var ExportDeclaration$0 = $S(Export, __, $EXPECT($L84, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
|
|
7205
7257
|
var ExportDeclaration$1 = $S(Export, __, ExportFromClause, __, FromClause);
|
|
7206
|
-
var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement));
|
|
7258
|
+
var ExportDeclaration$2 = $S(Export, __, $C(Declaration, NamedExports, VariableStatement, ExportVarDec));
|
|
7207
7259
|
function ExportDeclaration(state) {
|
|
7208
7260
|
if (state.events) {
|
|
7209
7261
|
const result = state.events.enter?.("ExportDeclaration", state);
|
|
@@ -7222,6 +7274,25 @@ ${input.slice(result.pos)}
|
|
|
7222
7274
|
return result;
|
|
7223
7275
|
}
|
|
7224
7276
|
}
|
|
7277
|
+
var ExportVarDec$0 = $S(InsertVar, VariableDeclarationList);
|
|
7278
|
+
function ExportVarDec(state) {
|
|
7279
|
+
if (state.events) {
|
|
7280
|
+
const result = state.events.enter?.("ExportVarDec", state);
|
|
7281
|
+
if (result)
|
|
7282
|
+
return result.cache;
|
|
7283
|
+
}
|
|
7284
|
+
if (state.tokenize) {
|
|
7285
|
+
const result = $TOKEN("ExportVarDec", state, ExportVarDec$0(state));
|
|
7286
|
+
if (state.events)
|
|
7287
|
+
state.events.exit?.("ExportVarDec", state, result);
|
|
7288
|
+
return result;
|
|
7289
|
+
} else {
|
|
7290
|
+
const result = ExportVarDec$0(state);
|
|
7291
|
+
if (state.events)
|
|
7292
|
+
state.events.exit?.("ExportVarDec", state, result);
|
|
7293
|
+
return result;
|
|
7294
|
+
}
|
|
7295
|
+
}
|
|
7225
7296
|
var ExportFromClause$0 = $S(Star, $E($S(__, As, __, ModuleExportName)));
|
|
7226
7297
|
var ExportFromClause$1 = NamedExports;
|
|
7227
7298
|
function ExportFromClause(state) {
|
|
@@ -7285,7 +7356,7 @@ ${input.slice(result.pos)}
|
|
|
7285
7356
|
return result;
|
|
7286
7357
|
}
|
|
7287
7358
|
}
|
|
7288
|
-
var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), ImplicitInlineObjectPropertyDelimiter);
|
|
7359
|
+
var ImplicitExportSpecifier$0 = $S($N($EXPECT($L84, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
|
|
7289
7360
|
function ImplicitExportSpecifier(state) {
|
|
7290
7361
|
if (state.events) {
|
|
7291
7362
|
const result = state.events.enter?.("ImplicitExportSpecifier", state);
|
|
@@ -8795,7 +8866,28 @@ ${input.slice(result.pos)}
|
|
|
8795
8866
|
return result;
|
|
8796
8867
|
}
|
|
8797
8868
|
}
|
|
8798
|
-
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) {
|
|
8799
8891
|
return { $loc, token: $1 };
|
|
8800
8892
|
});
|
|
8801
8893
|
function Async(state) {
|
|
@@ -8816,7 +8908,7 @@ ${input.slice(result.pos)}
|
|
|
8816
8908
|
return result;
|
|
8817
8909
|
}
|
|
8818
8910
|
}
|
|
8819
|
-
var Await$0 = $TS($S($EXPECT($
|
|
8911
|
+
var Await$0 = $TS($S($EXPECT($L93, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8820
8912
|
return { $loc, token: $1 };
|
|
8821
8913
|
});
|
|
8822
8914
|
function Await(state) {
|
|
@@ -8837,7 +8929,7 @@ ${input.slice(result.pos)}
|
|
|
8837
8929
|
return result;
|
|
8838
8930
|
}
|
|
8839
8931
|
}
|
|
8840
|
-
var Backtick$0 = $TV($EXPECT($
|
|
8932
|
+
var Backtick$0 = $TV($EXPECT($L94, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
|
|
8841
8933
|
return { $loc, token: $1 };
|
|
8842
8934
|
});
|
|
8843
8935
|
function Backtick(state) {
|
|
@@ -8858,7 +8950,7 @@ ${input.slice(result.pos)}
|
|
|
8858
8950
|
return result;
|
|
8859
8951
|
}
|
|
8860
8952
|
}
|
|
8861
|
-
var By$0 = $TS($S($EXPECT($
|
|
8953
|
+
var By$0 = $TS($S($EXPECT($L95, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8862
8954
|
return { $loc, token: $1 };
|
|
8863
8955
|
});
|
|
8864
8956
|
function By(state) {
|
|
@@ -8879,7 +8971,7 @@ ${input.slice(result.pos)}
|
|
|
8879
8971
|
return result;
|
|
8880
8972
|
}
|
|
8881
8973
|
}
|
|
8882
|
-
var Case$0 = $TS($S($EXPECT($
|
|
8974
|
+
var Case$0 = $TS($S($EXPECT($L96, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
8883
8975
|
return { $loc, token: $1 };
|
|
8884
8976
|
});
|
|
8885
8977
|
function Case(state) {
|
|
@@ -8900,7 +8992,7 @@ ${input.slice(result.pos)}
|
|
|
8900
8992
|
return result;
|
|
8901
8993
|
}
|
|
8902
8994
|
}
|
|
8903
|
-
var Catch$0 = $TV($EXPECT($
|
|
8995
|
+
var Catch$0 = $TV($EXPECT($L97, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
|
|
8904
8996
|
return { $loc, token: $1 };
|
|
8905
8997
|
});
|
|
8906
8998
|
function Catch(state) {
|
|
@@ -8921,7 +9013,7 @@ ${input.slice(result.pos)}
|
|
|
8921
9013
|
return result;
|
|
8922
9014
|
}
|
|
8923
9015
|
}
|
|
8924
|
-
var Class$0 = $TV($EXPECT($
|
|
9016
|
+
var Class$0 = $TV($EXPECT($L98, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
|
|
8925
9017
|
return { $loc, token: $1 };
|
|
8926
9018
|
});
|
|
8927
9019
|
function Class(state) {
|
|
@@ -9005,7 +9097,7 @@ ${input.slice(result.pos)}
|
|
|
9005
9097
|
return result;
|
|
9006
9098
|
}
|
|
9007
9099
|
}
|
|
9008
|
-
var CoffeeSubstitutionStart$0 = $TV($EXPECT($
|
|
9100
|
+
var CoffeeSubstitutionStart$0 = $TV($EXPECT($L99, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
|
|
9009
9101
|
return { $loc, token: "${" };
|
|
9010
9102
|
});
|
|
9011
9103
|
function CoffeeSubstitutionStart(state) {
|
|
@@ -9089,7 +9181,7 @@ ${input.slice(result.pos)}
|
|
|
9089
9181
|
return result;
|
|
9090
9182
|
}
|
|
9091
9183
|
}
|
|
9092
|
-
var Delete$0 = $TS($S($EXPECT($
|
|
9184
|
+
var Delete$0 = $TS($S($EXPECT($L100, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9093
9185
|
return { $loc, token: $1 };
|
|
9094
9186
|
});
|
|
9095
9187
|
function Delete(state) {
|
|
@@ -9110,7 +9202,7 @@ ${input.slice(result.pos)}
|
|
|
9110
9202
|
return result;
|
|
9111
9203
|
}
|
|
9112
9204
|
}
|
|
9113
|
-
var Do$0 = $TS($S($EXPECT($
|
|
9205
|
+
var Do$0 = $TS($S($EXPECT($L101, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9114
9206
|
return { $loc, token: $1 };
|
|
9115
9207
|
});
|
|
9116
9208
|
function Do(state) {
|
|
@@ -9152,7 +9244,7 @@ ${input.slice(result.pos)}
|
|
|
9152
9244
|
return result;
|
|
9153
9245
|
}
|
|
9154
9246
|
}
|
|
9155
|
-
var DotDot$0 = $TV($EXPECT($
|
|
9247
|
+
var DotDot$0 = $TV($EXPECT($L102, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
|
|
9156
9248
|
return { $loc, token: $1 };
|
|
9157
9249
|
});
|
|
9158
9250
|
function DotDot(state) {
|
|
@@ -9173,7 +9265,7 @@ ${input.slice(result.pos)}
|
|
|
9173
9265
|
return result;
|
|
9174
9266
|
}
|
|
9175
9267
|
}
|
|
9176
|
-
var DotDotDot$0 = $TV($EXPECT($
|
|
9268
|
+
var DotDotDot$0 = $TV($EXPECT($L103, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
|
|
9177
9269
|
return { $loc, token: $1 };
|
|
9178
9270
|
});
|
|
9179
9271
|
function DotDotDot(state) {
|
|
@@ -9194,7 +9286,7 @@ ${input.slice(result.pos)}
|
|
|
9194
9286
|
return result;
|
|
9195
9287
|
}
|
|
9196
9288
|
}
|
|
9197
|
-
var DoubleColon$0 = $TV($EXPECT($
|
|
9289
|
+
var DoubleColon$0 = $TV($EXPECT($L104, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
|
|
9198
9290
|
return { $loc, token: $1 };
|
|
9199
9291
|
});
|
|
9200
9292
|
function DoubleColon(state) {
|
|
@@ -9215,7 +9307,7 @@ ${input.slice(result.pos)}
|
|
|
9215
9307
|
return result;
|
|
9216
9308
|
}
|
|
9217
9309
|
}
|
|
9218
|
-
var DoubleQuote$0 = $TV($EXPECT($
|
|
9310
|
+
var DoubleQuote$0 = $TV($EXPECT($L105, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
|
|
9219
9311
|
return { $loc, token: $1 };
|
|
9220
9312
|
});
|
|
9221
9313
|
function DoubleQuote(state) {
|
|
@@ -9236,7 +9328,7 @@ ${input.slice(result.pos)}
|
|
|
9236
9328
|
return result;
|
|
9237
9329
|
}
|
|
9238
9330
|
}
|
|
9239
|
-
var Else$0 = $TV($EXPECT($
|
|
9331
|
+
var Else$0 = $TV($EXPECT($L106, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
|
|
9240
9332
|
return { $loc, token: $1 };
|
|
9241
9333
|
});
|
|
9242
9334
|
function Else(state) {
|
|
@@ -9278,7 +9370,7 @@ ${input.slice(result.pos)}
|
|
|
9278
9370
|
return result;
|
|
9279
9371
|
}
|
|
9280
9372
|
}
|
|
9281
|
-
var Export$0 = $TS($S($EXPECT($
|
|
9373
|
+
var Export$0 = $TS($S($EXPECT($L107, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9282
9374
|
return { $loc, token: $1 };
|
|
9283
9375
|
});
|
|
9284
9376
|
function Export(state) {
|
|
@@ -9299,7 +9391,7 @@ ${input.slice(result.pos)}
|
|
|
9299
9391
|
return result;
|
|
9300
9392
|
}
|
|
9301
9393
|
}
|
|
9302
|
-
var For$0 = $TS($S($EXPECT($
|
|
9394
|
+
var For$0 = $TS($S($EXPECT($L108, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9303
9395
|
return { $loc, token: $1 };
|
|
9304
9396
|
});
|
|
9305
9397
|
function For(state) {
|
|
@@ -9320,7 +9412,7 @@ ${input.slice(result.pos)}
|
|
|
9320
9412
|
return result;
|
|
9321
9413
|
}
|
|
9322
9414
|
}
|
|
9323
|
-
var From$0 = $TS($S($EXPECT($
|
|
9415
|
+
var From$0 = $TS($S($EXPECT($L109, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9324
9416
|
return { $loc, token: $1 };
|
|
9325
9417
|
});
|
|
9326
9418
|
function From(state) {
|
|
@@ -9341,7 +9433,7 @@ ${input.slice(result.pos)}
|
|
|
9341
9433
|
return result;
|
|
9342
9434
|
}
|
|
9343
9435
|
}
|
|
9344
|
-
var Function$0 = $TV($EXPECT($
|
|
9436
|
+
var Function$0 = $TV($EXPECT($L110, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
|
|
9345
9437
|
return { $loc, token: $1 };
|
|
9346
9438
|
});
|
|
9347
9439
|
function Function(state) {
|
|
@@ -9362,7 +9454,7 @@ ${input.slice(result.pos)}
|
|
|
9362
9454
|
return result;
|
|
9363
9455
|
}
|
|
9364
9456
|
}
|
|
9365
|
-
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) {
|
|
9366
9458
|
return { $loc, token: $1 };
|
|
9367
9459
|
});
|
|
9368
9460
|
function GetOrSet(state) {
|
|
@@ -9383,7 +9475,7 @@ ${input.slice(result.pos)}
|
|
|
9383
9475
|
return result;
|
|
9384
9476
|
}
|
|
9385
9477
|
}
|
|
9386
|
-
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) {
|
|
9387
9479
|
return { $loc, token: $1 };
|
|
9388
9480
|
});
|
|
9389
9481
|
function If(state) {
|
|
@@ -9446,7 +9538,7 @@ ${input.slice(result.pos)}
|
|
|
9446
9538
|
return result;
|
|
9447
9539
|
}
|
|
9448
9540
|
}
|
|
9449
|
-
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) {
|
|
9450
9542
|
return { $loc, token: $1 };
|
|
9451
9543
|
});
|
|
9452
9544
|
function LetOrConst(state) {
|
|
@@ -9467,7 +9559,7 @@ ${input.slice(result.pos)}
|
|
|
9467
9559
|
return result;
|
|
9468
9560
|
}
|
|
9469
9561
|
}
|
|
9470
|
-
var Loop$0 = $TS($S($EXPECT($
|
|
9562
|
+
var Loop$0 = $TS($S($EXPECT($L116, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9471
9563
|
return { $loc, token: "while(true)" };
|
|
9472
9564
|
});
|
|
9473
9565
|
function Loop(state) {
|
|
@@ -9488,7 +9580,7 @@ ${input.slice(result.pos)}
|
|
|
9488
9580
|
return result;
|
|
9489
9581
|
}
|
|
9490
9582
|
}
|
|
9491
|
-
var New$0 = $TS($S($EXPECT($
|
|
9583
|
+
var New$0 = $TS($S($EXPECT($L117, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9492
9584
|
return { $loc, token: $1 };
|
|
9493
9585
|
});
|
|
9494
9586
|
function New(state) {
|
|
@@ -9551,7 +9643,7 @@ ${input.slice(result.pos)}
|
|
|
9551
9643
|
return result;
|
|
9552
9644
|
}
|
|
9553
9645
|
}
|
|
9554
|
-
var OpenBrace$0 = $TV($EXPECT($
|
|
9646
|
+
var OpenBrace$0 = $TV($EXPECT($L118, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
|
|
9555
9647
|
return { $loc, token: $1 };
|
|
9556
9648
|
});
|
|
9557
9649
|
function OpenBrace(state) {
|
|
@@ -9572,7 +9664,7 @@ ${input.slice(result.pos)}
|
|
|
9572
9664
|
return result;
|
|
9573
9665
|
}
|
|
9574
9666
|
}
|
|
9575
|
-
var OpenBracket$0 = $TV($EXPECT($
|
|
9667
|
+
var OpenBracket$0 = $TV($EXPECT($L119, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
|
|
9576
9668
|
return { $loc, token: $1 };
|
|
9577
9669
|
});
|
|
9578
9670
|
function OpenBracket(state) {
|
|
@@ -9593,7 +9685,7 @@ ${input.slice(result.pos)}
|
|
|
9593
9685
|
return result;
|
|
9594
9686
|
}
|
|
9595
9687
|
}
|
|
9596
|
-
var OpenParen$0 = $TV($EXPECT($
|
|
9688
|
+
var OpenParen$0 = $TV($EXPECT($L120, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
|
|
9597
9689
|
return { $loc, token: $1 };
|
|
9598
9690
|
});
|
|
9599
9691
|
function OpenParen(state) {
|
|
@@ -9635,7 +9727,7 @@ ${input.slice(result.pos)}
|
|
|
9635
9727
|
return result;
|
|
9636
9728
|
}
|
|
9637
9729
|
}
|
|
9638
|
-
var Return$0 = $TS($S($EXPECT($
|
|
9730
|
+
var Return$0 = $TS($S($EXPECT($L121, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9639
9731
|
return { $loc, token: $1 };
|
|
9640
9732
|
});
|
|
9641
9733
|
function Return(state) {
|
|
@@ -9677,7 +9769,7 @@ ${input.slice(result.pos)}
|
|
|
9677
9769
|
return result;
|
|
9678
9770
|
}
|
|
9679
9771
|
}
|
|
9680
|
-
var SingleQuote$0 = $TV($EXPECT($
|
|
9772
|
+
var SingleQuote$0 = $TV($EXPECT($L122, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
|
|
9681
9773
|
return { $loc, token: $1 };
|
|
9682
9774
|
});
|
|
9683
9775
|
function SingleQuote(state) {
|
|
@@ -9719,10 +9811,10 @@ ${input.slice(result.pos)}
|
|
|
9719
9811
|
return result;
|
|
9720
9812
|
}
|
|
9721
9813
|
}
|
|
9722
|
-
var Static$0 = $TV($EXPECT($
|
|
9814
|
+
var Static$0 = $TV($EXPECT($L123, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
|
|
9723
9815
|
return { $loc, token: $1 };
|
|
9724
9816
|
});
|
|
9725
|
-
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) {
|
|
9726
9818
|
return { $loc, token: "static " };
|
|
9727
9819
|
});
|
|
9728
9820
|
function Static(state) {
|
|
@@ -9743,7 +9835,7 @@ ${input.slice(result.pos)}
|
|
|
9743
9835
|
return result;
|
|
9744
9836
|
}
|
|
9745
9837
|
}
|
|
9746
|
-
var SubstitutionStart$0 = $TV($EXPECT($
|
|
9838
|
+
var SubstitutionStart$0 = $TV($EXPECT($L124, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
|
|
9747
9839
|
return { $loc, token: $1 };
|
|
9748
9840
|
});
|
|
9749
9841
|
function SubstitutionStart(state) {
|
|
@@ -9764,7 +9856,7 @@ ${input.slice(result.pos)}
|
|
|
9764
9856
|
return result;
|
|
9765
9857
|
}
|
|
9766
9858
|
}
|
|
9767
|
-
var Switch$0 = $TS($S($EXPECT($
|
|
9859
|
+
var Switch$0 = $TS($S($EXPECT($L125, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9768
9860
|
return { $loc, token: $1 };
|
|
9769
9861
|
});
|
|
9770
9862
|
function Switch(state) {
|
|
@@ -9785,7 +9877,7 @@ ${input.slice(result.pos)}
|
|
|
9785
9877
|
return result;
|
|
9786
9878
|
}
|
|
9787
9879
|
}
|
|
9788
|
-
var Target$0 = $TS($S($EXPECT($
|
|
9880
|
+
var Target$0 = $TS($S($EXPECT($L126, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9789
9881
|
return { $loc, token: $1 };
|
|
9790
9882
|
});
|
|
9791
9883
|
function Target(state) {
|
|
@@ -9806,7 +9898,7 @@ ${input.slice(result.pos)}
|
|
|
9806
9898
|
return result;
|
|
9807
9899
|
}
|
|
9808
9900
|
}
|
|
9809
|
-
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) {
|
|
9810
9902
|
return { $loc, token: "" };
|
|
9811
9903
|
});
|
|
9812
9904
|
function Then(state) {
|
|
@@ -9827,7 +9919,7 @@ ${input.slice(result.pos)}
|
|
|
9827
9919
|
return result;
|
|
9828
9920
|
}
|
|
9829
9921
|
}
|
|
9830
|
-
var This$0 = $TS($S($EXPECT($
|
|
9922
|
+
var This$0 = $TS($S($EXPECT($L128, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9831
9923
|
return { $loc, token: $1 };
|
|
9832
9924
|
});
|
|
9833
9925
|
function This(state) {
|
|
@@ -9848,7 +9940,7 @@ ${input.slice(result.pos)}
|
|
|
9848
9940
|
return result;
|
|
9849
9941
|
}
|
|
9850
9942
|
}
|
|
9851
|
-
var Throw$0 = $TS($S($EXPECT($
|
|
9943
|
+
var Throw$0 = $TS($S($EXPECT($L129, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9852
9944
|
return { $loc, token: $1 };
|
|
9853
9945
|
});
|
|
9854
9946
|
function Throw(state) {
|
|
@@ -9869,7 +9961,7 @@ ${input.slice(result.pos)}
|
|
|
9869
9961
|
return result;
|
|
9870
9962
|
}
|
|
9871
9963
|
}
|
|
9872
|
-
var TripleDoubleQuote$0 = $TV($EXPECT($
|
|
9964
|
+
var TripleDoubleQuote$0 = $TV($EXPECT($L130, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
|
|
9873
9965
|
return { $loc, token: "`" };
|
|
9874
9966
|
});
|
|
9875
9967
|
function TripleDoubleQuote(state) {
|
|
@@ -9890,7 +9982,7 @@ ${input.slice(result.pos)}
|
|
|
9890
9982
|
return result;
|
|
9891
9983
|
}
|
|
9892
9984
|
}
|
|
9893
|
-
var TripleSingleQuote$0 = $TV($EXPECT($
|
|
9985
|
+
var TripleSingleQuote$0 = $TV($EXPECT($L131, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
|
|
9894
9986
|
return { $loc, token: "`" };
|
|
9895
9987
|
});
|
|
9896
9988
|
function TripleSingleQuote(state) {
|
|
@@ -9911,7 +10003,7 @@ ${input.slice(result.pos)}
|
|
|
9911
10003
|
return result;
|
|
9912
10004
|
}
|
|
9913
10005
|
}
|
|
9914
|
-
var TripleSlash$0 = $TV($EXPECT($
|
|
10006
|
+
var TripleSlash$0 = $TV($EXPECT($L132, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
|
|
9915
10007
|
return { $loc, token: "/" };
|
|
9916
10008
|
});
|
|
9917
10009
|
function TripleSlash(state) {
|
|
@@ -9932,7 +10024,7 @@ ${input.slice(result.pos)}
|
|
|
9932
10024
|
return result;
|
|
9933
10025
|
}
|
|
9934
10026
|
}
|
|
9935
|
-
var TripleTick$0 = $TV($EXPECT($
|
|
10027
|
+
var TripleTick$0 = $TV($EXPECT($L133, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
|
|
9936
10028
|
return { $loc, token: "`" };
|
|
9937
10029
|
});
|
|
9938
10030
|
function TripleTick(state) {
|
|
@@ -9953,7 +10045,7 @@ ${input.slice(result.pos)}
|
|
|
9953
10045
|
return result;
|
|
9954
10046
|
}
|
|
9955
10047
|
}
|
|
9956
|
-
var Try$0 = $TS($S($EXPECT($
|
|
10048
|
+
var Try$0 = $TS($S($EXPECT($L134, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9957
10049
|
return { $loc, token: $1 };
|
|
9958
10050
|
});
|
|
9959
10051
|
function Try(state) {
|
|
@@ -9974,7 +10066,7 @@ ${input.slice(result.pos)}
|
|
|
9974
10066
|
return result;
|
|
9975
10067
|
}
|
|
9976
10068
|
}
|
|
9977
|
-
var Typeof$0 = $TS($S($EXPECT($
|
|
10069
|
+
var Typeof$0 = $TS($S($EXPECT($L135, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9978
10070
|
return { $loc, token: $1 };
|
|
9979
10071
|
});
|
|
9980
10072
|
function Typeof(state) {
|
|
@@ -9995,7 +10087,7 @@ ${input.slice(result.pos)}
|
|
|
9995
10087
|
return result;
|
|
9996
10088
|
}
|
|
9997
10089
|
}
|
|
9998
|
-
var Unless$0 = $TS($S($EXPECT($
|
|
10090
|
+
var Unless$0 = $TS($S($EXPECT($L136, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
9999
10091
|
return { $loc, token: $1 };
|
|
10000
10092
|
});
|
|
10001
10093
|
function Unless(state) {
|
|
@@ -10016,7 +10108,7 @@ ${input.slice(result.pos)}
|
|
|
10016
10108
|
return result;
|
|
10017
10109
|
}
|
|
10018
10110
|
}
|
|
10019
|
-
var Until$0 = $TS($S($EXPECT($
|
|
10111
|
+
var Until$0 = $TS($S($EXPECT($L137, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10020
10112
|
return { $loc, token: $1 };
|
|
10021
10113
|
});
|
|
10022
10114
|
function Until(state) {
|
|
@@ -10037,7 +10129,7 @@ ${input.slice(result.pos)}
|
|
|
10037
10129
|
return result;
|
|
10038
10130
|
}
|
|
10039
10131
|
}
|
|
10040
|
-
var Var$0 = $TS($S($EXPECT($
|
|
10132
|
+
var Var$0 = $TS($S($EXPECT($L138, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10041
10133
|
return { $loc, token: $1 };
|
|
10042
10134
|
});
|
|
10043
10135
|
function Var(state) {
|
|
@@ -10058,7 +10150,7 @@ ${input.slice(result.pos)}
|
|
|
10058
10150
|
return result;
|
|
10059
10151
|
}
|
|
10060
10152
|
}
|
|
10061
|
-
var Void$0 = $TS($S($EXPECT($
|
|
10153
|
+
var Void$0 = $TS($S($EXPECT($L139, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10062
10154
|
return { $loc, token: $1 };
|
|
10063
10155
|
});
|
|
10064
10156
|
function Void(state) {
|
|
@@ -10079,7 +10171,7 @@ ${input.slice(result.pos)}
|
|
|
10079
10171
|
return result;
|
|
10080
10172
|
}
|
|
10081
10173
|
}
|
|
10082
|
-
var When$0 = $TS($S($EXPECT($
|
|
10174
|
+
var When$0 = $TS($S($EXPECT($L140, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10083
10175
|
return { $loc, token: "case" };
|
|
10084
10176
|
});
|
|
10085
10177
|
function When(state) {
|
|
@@ -10100,7 +10192,7 @@ ${input.slice(result.pos)}
|
|
|
10100
10192
|
return result;
|
|
10101
10193
|
}
|
|
10102
10194
|
}
|
|
10103
|
-
var While$0 = $TS($S($EXPECT($
|
|
10195
|
+
var While$0 = $TS($S($EXPECT($L141, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10104
10196
|
return { $loc, token: $1 };
|
|
10105
10197
|
});
|
|
10106
10198
|
function While(state) {
|
|
@@ -10121,7 +10213,7 @@ ${input.slice(result.pos)}
|
|
|
10121
10213
|
return result;
|
|
10122
10214
|
}
|
|
10123
10215
|
}
|
|
10124
|
-
var Yield$0 = $TS($S($EXPECT($
|
|
10216
|
+
var Yield$0 = $TS($S($EXPECT($L142, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
|
|
10125
10217
|
return { $loc, token: $1 };
|
|
10126
10218
|
});
|
|
10127
10219
|
function Yield(state) {
|
|
@@ -10167,7 +10259,7 @@ ${input.slice(result.pos)}
|
|
|
10167
10259
|
return result;
|
|
10168
10260
|
}
|
|
10169
10261
|
}
|
|
10170
|
-
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 "/>"'));
|
|
10171
10263
|
function JSXSelfClosingElement(state) {
|
|
10172
10264
|
if (state.events) {
|
|
10173
10265
|
const result = state.events.enter?.("JSXSelfClosingElement", state);
|
|
@@ -10205,7 +10297,7 @@ ${input.slice(result.pos)}
|
|
|
10205
10297
|
return result;
|
|
10206
10298
|
}
|
|
10207
10299
|
}
|
|
10208
|
-
var JSXClosingElement$0 = $S($EXPECT($
|
|
10300
|
+
var JSXClosingElement$0 = $S($EXPECT($L144, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L25, fail, 'JSXClosingElement ">"'));
|
|
10209
10301
|
function JSXClosingElement(state) {
|
|
10210
10302
|
if (state.events) {
|
|
10211
10303
|
const result = state.events.enter?.("JSXClosingElement", state);
|
|
@@ -10224,7 +10316,7 @@ ${input.slice(result.pos)}
|
|
|
10224
10316
|
return result;
|
|
10225
10317
|
}
|
|
10226
10318
|
}
|
|
10227
|
-
var JSXFragment$0 = $S($EXPECT($
|
|
10319
|
+
var JSXFragment$0 = $S($EXPECT($L145, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L146, fail, 'JSXFragment "</>"'));
|
|
10228
10320
|
function JSXFragment(state) {
|
|
10229
10321
|
if (state.events) {
|
|
10230
10322
|
const result = state.events.enter?.("JSXFragment", state);
|
|
@@ -10481,7 +10573,7 @@ ${input.slice(result.pos)}
|
|
|
10481
10573
|
return result;
|
|
10482
10574
|
}
|
|
10483
10575
|
}
|
|
10484
|
-
var TypeDeclarationModifier$0 = $S($EXPECT($
|
|
10576
|
+
var TypeDeclarationModifier$0 = $S($EXPECT($L147, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
|
|
10485
10577
|
var TypeDeclarationModifier$1 = Export;
|
|
10486
10578
|
function TypeDeclarationModifier(state) {
|
|
10487
10579
|
if (state.events) {
|
|
@@ -10523,7 +10615,7 @@ ${input.slice(result.pos)}
|
|
|
10523
10615
|
return result;
|
|
10524
10616
|
}
|
|
10525
10617
|
}
|
|
10526
|
-
var TypeKeyword$0 = $S($EXPECT($
|
|
10618
|
+
var TypeKeyword$0 = $S($EXPECT($L148, fail, 'TypeKeyword "type"'), NonIdContinue);
|
|
10527
10619
|
function TypeKeyword(state) {
|
|
10528
10620
|
if (state.events) {
|
|
10529
10621
|
const result = state.events.enter?.("TypeKeyword", state);
|
|
@@ -10542,7 +10634,7 @@ ${input.slice(result.pos)}
|
|
|
10542
10634
|
return result;
|
|
10543
10635
|
}
|
|
10544
10636
|
}
|
|
10545
|
-
var Interface$0 = $S($EXPECT($
|
|
10637
|
+
var Interface$0 = $S($EXPECT($L149, fail, 'Interface "interface"'), NonIdContinue);
|
|
10546
10638
|
function Interface(state) {
|
|
10547
10639
|
if (state.events) {
|
|
10548
10640
|
const result = state.events.enter?.("Interface", state);
|
|
@@ -10561,7 +10653,7 @@ ${input.slice(result.pos)}
|
|
|
10561
10653
|
return result;
|
|
10562
10654
|
}
|
|
10563
10655
|
}
|
|
10564
|
-
var Namespace$0 = $S($EXPECT($
|
|
10656
|
+
var Namespace$0 = $S($EXPECT($L150, fail, 'Namespace "namespace"'), NonIdContinue);
|
|
10565
10657
|
function Namespace(state) {
|
|
10566
10658
|
if (state.events) {
|
|
10567
10659
|
const result = state.events.enter?.("Namespace", state);
|
|
@@ -10750,7 +10842,7 @@ ${input.slice(result.pos)}
|
|
|
10750
10842
|
return result;
|
|
10751
10843
|
}
|
|
10752
10844
|
}
|
|
10753
|
-
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)));
|
|
10754
10846
|
function TypeIndexSignature(state) {
|
|
10755
10847
|
if (state.events) {
|
|
10756
10848
|
const result = state.events.enter?.("TypeIndexSignature", state);
|
|
@@ -10810,7 +10902,7 @@ ${input.slice(result.pos)}
|
|
|
10810
10902
|
return result;
|
|
10811
10903
|
}
|
|
10812
10904
|
}
|
|
10813
|
-
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) {
|
|
10814
10906
|
const children = [...$1, $2];
|
|
10815
10907
|
if ($3)
|
|
10816
10908
|
children.push($3);
|
|
@@ -10945,9 +11037,9 @@ ${input.slice(result.pos)}
|
|
|
10945
11037
|
return result;
|
|
10946
11038
|
}
|
|
10947
11039
|
}
|
|
10948
|
-
var TypeUnaryOp$0 = $EXPECT($
|
|
10949
|
-
var TypeUnaryOp$1 = $EXPECT($
|
|
10950
|
-
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"');
|
|
10951
11043
|
function TypeUnaryOp(state) {
|
|
10952
11044
|
if (state.events) {
|
|
10953
11045
|
const result = state.events.enter?.("TypeUnaryOp", state);
|
|
@@ -11115,10 +11207,10 @@ ${input.slice(result.pos)}
|
|
|
11115
11207
|
}
|
|
11116
11208
|
}
|
|
11117
11209
|
var TypeLiteral$0 = Literal;
|
|
11118
|
-
var TypeLiteral$1 = $TV($EXPECT($
|
|
11210
|
+
var TypeLiteral$1 = $TV($EXPECT($L139, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
|
|
11119
11211
|
return { $loc, token: "void" };
|
|
11120
11212
|
});
|
|
11121
|
-
var TypeLiteral$2 = $TV($EXPECT($
|
|
11213
|
+
var TypeLiteral$2 = $TV($EXPECT($L155, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
|
|
11122
11214
|
return { $loc, token: "[]" };
|
|
11123
11215
|
});
|
|
11124
11216
|
function TypeLiteral(state) {
|
|
@@ -11331,7 +11423,7 @@ ${input.slice(result.pos)}
|
|
|
11331
11423
|
return result;
|
|
11332
11424
|
}
|
|
11333
11425
|
}
|
|
11334
|
-
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) {
|
|
11335
11427
|
var options = $2;
|
|
11336
11428
|
return {
|
|
11337
11429
|
type: "CivetPrologue",
|
|
@@ -11357,13 +11449,18 @@ ${input.slice(result.pos)}
|
|
|
11357
11449
|
return result;
|
|
11358
11450
|
}
|
|
11359
11451
|
}
|
|
11360
|
-
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) {
|
|
11361
11453
|
const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
|
|
11362
11454
|
if (l)
|
|
11363
11455
|
return l.toUpperCase();
|
|
11364
11456
|
return "";
|
|
11365
11457
|
});
|
|
11366
|
-
|
|
11458
|
+
let value = $3 ? $4 : $1 === "-" ? false : true;
|
|
11459
|
+
if (optionName === "tab") {
|
|
11460
|
+
value = parseFloat(value);
|
|
11461
|
+
if (isNaN(value))
|
|
11462
|
+
value = 0;
|
|
11463
|
+
}
|
|
11367
11464
|
return [optionName, value];
|
|
11368
11465
|
});
|
|
11369
11466
|
function CivetOption(state) {
|
|
@@ -11736,6 +11833,27 @@ ${input.slice(result.pos)}
|
|
|
11736
11833
|
return result;
|
|
11737
11834
|
}
|
|
11738
11835
|
}
|
|
11836
|
+
var InsertVar$0 = $TV($EXPECT($L0, fail, 'InsertVar ""'), function($skip, $loc, $0, $1) {
|
|
11837
|
+
return { $loc, token: "var " };
|
|
11838
|
+
});
|
|
11839
|
+
function InsertVar(state) {
|
|
11840
|
+
if (state.events) {
|
|
11841
|
+
const result = state.events.enter?.("InsertVar", state);
|
|
11842
|
+
if (result)
|
|
11843
|
+
return result.cache;
|
|
11844
|
+
}
|
|
11845
|
+
if (state.tokenize) {
|
|
11846
|
+
const result = $TOKEN("InsertVar", state, InsertVar$0(state));
|
|
11847
|
+
if (state.events)
|
|
11848
|
+
state.events.exit?.("InsertVar", state, result);
|
|
11849
|
+
return result;
|
|
11850
|
+
} else {
|
|
11851
|
+
const result = InsertVar$0(state);
|
|
11852
|
+
if (state.events)
|
|
11853
|
+
state.events.exit?.("InsertVar", state, result);
|
|
11854
|
+
return result;
|
|
11855
|
+
}
|
|
11856
|
+
}
|
|
11739
11857
|
var CoffeeBinaryExistentialEnabled$0 = $TV($EXPECT($L0, fail, 'CoffeeBinaryExistentialEnabled ""'), function($skip, $loc, $0, $1) {
|
|
11740
11858
|
if (module2.config.coffeeBinaryExistential)
|
|
11741
11859
|
return;
|
|
@@ -12019,7 +12137,8 @@ ${input.slice(result.pos)}
|
|
|
12019
12137
|
coffeeLineContinuation: false,
|
|
12020
12138
|
coffeeNot: false,
|
|
12021
12139
|
coffeeOf: false,
|
|
12022
|
-
implicitReturns: true
|
|
12140
|
+
implicitReturns: true,
|
|
12141
|
+
tab: void 0
|
|
12023
12142
|
};
|
|
12024
12143
|
let indexOfRef, hasPropRef, spliceRef;
|
|
12025
12144
|
const asAny = {
|
|
@@ -12631,11 +12750,11 @@ ${input.slice(result.pos)}
|
|
|
12631
12750
|
});
|
|
12632
12751
|
gatherRecursiveAll(statements, (n) => n.type === "MethodDefinition").forEach((f) => {
|
|
12633
12752
|
processParams(f);
|
|
12634
|
-
const {
|
|
12753
|
+
const { signature, block } = f;
|
|
12635
12754
|
if (module2.config.implicitReturns) {
|
|
12636
|
-
const isConstructor =
|
|
12637
|
-
const isVoid =
|
|
12638
|
-
const isSet =
|
|
12755
|
+
const isConstructor = signature.name === "constructor";
|
|
12756
|
+
const isVoid = signature.returnType === "void";
|
|
12757
|
+
const isSet = signature.modifier === "set";
|
|
12639
12758
|
if (!isConstructor && !isSet && !isVoid) {
|
|
12640
12759
|
insertReturn(block);
|
|
12641
12760
|
}
|
|
@@ -12892,11 +13011,18 @@ ${input.slice(result.pos)}
|
|
|
12892
13011
|
return result;
|
|
12893
13012
|
}
|
|
12894
13013
|
}
|
|
12895
|
-
var Indent$0 = $
|
|
12896
|
-
|
|
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
|
+
}
|
|
12897
13023
|
return {
|
|
12898
13024
|
$loc,
|
|
12899
|
-
token: $
|
|
13025
|
+
token: $0,
|
|
12900
13026
|
level
|
|
12901
13027
|
};
|
|
12902
13028
|
});
|