varlock 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audit.command-LLD5UIAW.js +16 -0
- package/dist/{audit.command-6TUJY57M.js.map → audit.command-LLD5UIAW.js.map} +1 -1
- package/dist/auto-load.js +5 -5
- package/dist/{chunk-QSYH5IDD.js → chunk-5DRCCFKV.js} +3 -3
- package/dist/{chunk-QSYH5IDD.js.map → chunk-5DRCCFKV.js.map} +1 -1
- package/dist/{chunk-H2JVYUHZ.js → chunk-C5LW5EET.js} +6 -6
- package/dist/{chunk-H2JVYUHZ.js.map → chunk-C5LW5EET.js.map} +1 -1
- package/dist/{chunk-35LTPRXV.js → chunk-CESFJIM4.js} +6 -6
- package/dist/{chunk-35LTPRXV.js.map → chunk-CESFJIM4.js.map} +1 -1
- package/dist/{chunk-5DUWGI2N.js → chunk-DIPEXEIL.js} +3 -3
- package/dist/{chunk-5DUWGI2N.js.map → chunk-DIPEXEIL.js.map} +1 -1
- package/dist/{chunk-26E4E2MY.js → chunk-F6ZYIWAR.js} +5 -5
- package/dist/{chunk-26E4E2MY.js.map → chunk-F6ZYIWAR.js.map} +1 -1
- package/dist/{chunk-6CCHLM3U.js → chunk-FA5SNEKN.js} +30 -12
- package/dist/chunk-FA5SNEKN.js.map +1 -0
- package/dist/{chunk-6CRDPEUT.js → chunk-GKN3UJNE.js} +583 -729
- package/dist/chunk-GKN3UJNE.js.map +1 -0
- package/dist/{chunk-YHN6GZHR.js → chunk-HH647LSU.js} +5 -5
- package/dist/{chunk-YHN6GZHR.js.map → chunk-HH647LSU.js.map} +1 -1
- package/dist/{chunk-CWC3IAQM.js → chunk-HMWAOBZR.js} +29 -14
- package/dist/chunk-HMWAOBZR.js.map +1 -0
- package/dist/{chunk-6PZXN47A.js → chunk-INGOLNLE.js} +4 -4
- package/dist/{chunk-6PZXN47A.js.map → chunk-INGOLNLE.js.map} +1 -1
- package/dist/{chunk-2PBFWISH.js → chunk-IO2OGZQU.js} +8 -8
- package/dist/chunk-IO2OGZQU.js.map +1 -0
- package/dist/{chunk-LGEHJHB2.js → chunk-JOGGSYT2.js} +6 -5
- package/dist/{chunk-LGEHJHB2.js.map → chunk-JOGGSYT2.js.map} +1 -1
- package/dist/{chunk-F6RTQ5QX.js → chunk-KFALDUEO.js} +3 -3
- package/dist/{chunk-F6RTQ5QX.js.map → chunk-KFALDUEO.js.map} +1 -1
- package/dist/{chunk-A2JUQ2GK.js → chunk-KI5QLKPU.js} +6 -6
- package/dist/{chunk-A2JUQ2GK.js.map → chunk-KI5QLKPU.js.map} +1 -1
- package/dist/{chunk-OA6PRICO.js → chunk-M6QE3D2O.js} +6 -6
- package/dist/{chunk-OA6PRICO.js.map → chunk-M6QE3D2O.js.map} +1 -1
- package/dist/{chunk-BR3DT5Z5.js → chunk-MPHVA4WC.js} +3 -3
- package/dist/{chunk-BR3DT5Z5.js.map → chunk-MPHVA4WC.js.map} +1 -1
- package/dist/{chunk-VIUMRSUR.js → chunk-NW4KR67N.js} +8 -8
- package/dist/{chunk-VIUMRSUR.js.map → chunk-NW4KR67N.js.map} +1 -1
- package/dist/{chunk-EE4UNY25.js → chunk-OGGTDFVX.js} +8 -8
- package/dist/{chunk-EE4UNY25.js.map → chunk-OGGTDFVX.js.map} +1 -1
- package/dist/{chunk-R73FENLU.js → chunk-QDEAHBCB.js} +3 -3
- package/dist/{chunk-R73FENLU.js.map → chunk-QDEAHBCB.js.map} +1 -1
- package/dist/{chunk-KCUEK4TX.js → chunk-RQZZDYWL.js} +7 -7
- package/dist/{chunk-KCUEK4TX.js.map → chunk-RQZZDYWL.js.map} +1 -1
- package/dist/{chunk-MGWUDHT5.js → chunk-UUJK65RS.js} +11 -3
- package/dist/chunk-UUJK65RS.js.map +1 -0
- package/dist/{chunk-FCSQRLIC.js → chunk-WJLMLKSG.js} +5 -5
- package/dist/{chunk-FCSQRLIC.js.map → chunk-WJLMLKSG.js.map} +1 -1
- package/dist/{chunk-2NQLWXPX.js → chunk-WTBUNHUJ.js} +5 -5
- package/dist/{chunk-2NQLWXPX.js.map → chunk-WTBUNHUJ.js.map} +1 -1
- package/dist/chunk-XUY3HAO2.js +171 -0
- package/dist/chunk-XUY3HAO2.js.map +1 -0
- package/dist/{chunk-2OIOYMYO.js → chunk-XXSPHSF7.js} +6 -6
- package/dist/{chunk-2OIOYMYO.js.map → chunk-XXSPHSF7.js.map} +1 -1
- package/dist/{chunk-GURKQO4J.js → chunk-YWTIKDGU.js} +7 -2
- package/dist/chunk-YWTIKDGU.js.map +1 -0
- package/dist/cli/cli-executable.js +37 -37
- package/dist/cli/cli-executable.js.map +1 -1
- package/dist/config-item-SQFJ2BJ2.js +7 -0
- package/dist/{config-item-7X6PUXJF.js.map → config-item-SQFJ2BJ2.js.map} +1 -1
- package/dist/dotenv-compat.js +5 -5
- package/dist/encrypt.command-WISNYCTG.js +14 -0
- package/dist/{encrypt.command-4E5SM5M6.js.map → encrypt.command-WISNYCTG.js.map} +1 -1
- package/dist/{env-graph-iNQyTcya.d.ts → env-graph-DImkUkjl.d.ts} +30 -19
- package/dist/explain.command-THO6CRHD.js +15 -0
- package/dist/{explain.command-7FRFYSJJ.js.map → explain.command-THO6CRHD.js.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -14
- package/dist/index.js.map +1 -1
- package/dist/init.command-3EDACW36.js +14 -0
- package/dist/{init.command-EMPZK5D3.js.map → init.command-3EDACW36.js.map} +1 -1
- package/dist/install-plugin.command-MXBZTBTE.js +13 -0
- package/dist/{install-plugin.command-SYQAPBII.js.map → install-plugin.command-MXBZTBTE.js.map} +1 -1
- package/dist/load.command-XRABTXAE.js +15 -0
- package/dist/{load.command-R7UTXX2X.js.map → load.command-XRABTXAE.js.map} +1 -1
- package/dist/lock.command-O5MPBQ2I.js +7 -0
- package/dist/{lock.command-4LTGMJA3.js.map → lock.command-O5MPBQ2I.js.map} +1 -1
- package/dist/plugin-lib.d.ts +2 -2
- package/dist/plugin-lib.js +2 -2
- package/dist/printenv.command-DLCI4IPZ.js +15 -0
- package/dist/{printenv.command-EVYMVYEZ.js.map → printenv.command-DLCI4IPZ.js.map} +1 -1
- package/dist/reveal.command-6BTK3FJZ.js +15 -0
- package/dist/{reveal.command-6IH7XDVT.js.map → reveal.command-6BTK3FJZ.js.map} +1 -1
- package/dist/run.command-5CIHZECD.js +16 -0
- package/dist/{run.command-WW2YKPUP.js.map → run.command-5CIHZECD.js.map} +1 -1
- package/dist/runtime/env.d.ts +1 -1
- package/dist/runtime/env.js +1 -1
- package/dist/runtime/init-edge.cjs +9 -1
- package/dist/runtime/init-server.cjs +9 -1
- package/dist/runtime/patch-console.js +2 -2
- package/dist/runtime/patch-response.js +2 -2
- package/dist/runtime/patch-server-response.js +2 -2
- package/dist/{scan.command-6PSWFMI5.js → scan.command-PW3OOLQY.js} +10 -10
- package/dist/{scan.command-6PSWFMI5.js.map → scan.command-PW3OOLQY.js.map} +1 -1
- package/dist/telemetry.command-TZDNG2WR.js +13 -0
- package/dist/{telemetry.command-ZD6XCRBZ.js.map → telemetry.command-TZDNG2WR.js.map} +1 -1
- package/dist/typegen.command-QD26Q3MP.js +14 -0
- package/dist/{typegen.command-IKXM7OSU.js.map → typegen.command-QD26Q3MP.js.map} +1 -1
- package/native-bins/darwin/VarlockEnclave.app/Contents/CodeResources +0 -0
- package/native-bins/darwin/VarlockEnclave.app/Contents/MacOS/varlock-local-encrypt +0 -0
- package/native-bins/win32-x64/varlock-local-encrypt.exe +0 -0
- package/package.json +2 -2
- package/dist/audit.command-6TUJY57M.js +0 -16
- package/dist/chunk-2PBFWISH.js.map +0 -1
- package/dist/chunk-45N5EFNL.js +0 -136
- package/dist/chunk-45N5EFNL.js.map +0 -1
- package/dist/chunk-6CCHLM3U.js.map +0 -1
- package/dist/chunk-6CRDPEUT.js.map +0 -1
- package/dist/chunk-CWC3IAQM.js.map +0 -1
- package/dist/chunk-GURKQO4J.js.map +0 -1
- package/dist/chunk-MGWUDHT5.js.map +0 -1
- package/dist/config-item-7X6PUXJF.js +0 -7
- package/dist/encrypt.command-4E5SM5M6.js +0 -14
- package/dist/explain.command-7FRFYSJJ.js +0 -15
- package/dist/init.command-EMPZK5D3.js +0 -14
- package/dist/install-plugin.command-SYQAPBII.js +0 -13
- package/dist/load.command-R7UTXX2X.js +0 -15
- package/dist/lock.command-4LTGMJA3.js +0 -7
- package/dist/printenv.command-EVYMVYEZ.js +0 -15
- package/dist/reveal.command-6IH7XDVT.js +0 -15
- package/dist/run.command-WW2YKPUP.js +0 -16
- package/dist/telemetry.command-ZD6XCRBZ.js +0 -13
- package/dist/typegen.command-IKXM7OSU.js +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getUserVarlockDir, isWSL } from './chunk-O3WTD6L4.js';
|
|
2
2
|
import { q, X, ut, nt, ot } from './chunk-IRXBCLL2.js';
|
|
3
|
-
import { my_dash_default, SchemaError,
|
|
3
|
+
import { my_dash_default, SchemaError, ResolutionError, createDebug, CoercionError, ValidationError, activatePlugin, LoadingError, VarlockError, deactivatePlugin, ParseError, EmptyRequiredValueError, pluginProxy } from './chunk-FA5SNEKN.js';
|
|
4
4
|
import { __commonJS, __name, __toESM } from './chunk-6PEHRAEP.js';
|
|
5
5
|
import { exec, spawn } from 'child_process';
|
|
6
6
|
import { promisify } from 'util';
|
|
@@ -1984,7 +1984,7 @@ var require_semver2 = __commonJS({
|
|
|
1984
1984
|
}
|
|
1985
1985
|
});
|
|
1986
1986
|
|
|
1987
|
-
// ../env-spec-parser/dist/chunk-
|
|
1987
|
+
// ../env-spec-parser/dist/chunk-N4D6RSUR.mjs
|
|
1988
1988
|
var __defProp = Object.defineProperty;
|
|
1989
1989
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp(target, "name", { value, configurable: true }), "__name");
|
|
1990
1990
|
var VALID_NUMBER_REGEX = /^-?(0|([1-9][0-9]*))?(\.[0-9]+)?$/;
|
|
@@ -2142,9 +2142,9 @@ var ParsedEnvSpecFunctionCall = class {
|
|
|
2142
2142
|
return this.data.name + this.data.args.toString();
|
|
2143
2143
|
}
|
|
2144
2144
|
};
|
|
2145
|
-
var ParsedEnvSpecDecorator = class {
|
|
2145
|
+
var ParsedEnvSpecDecorator = class _ParsedEnvSpecDecorator {
|
|
2146
2146
|
static {
|
|
2147
|
-
__name(this, "
|
|
2147
|
+
__name(this, "_ParsedEnvSpecDecorator");
|
|
2148
2148
|
}
|
|
2149
2149
|
constructor(data) {
|
|
2150
2150
|
this.data = data;
|
|
@@ -2162,9 +2162,16 @@ var ParsedEnvSpecDecorator = class {
|
|
|
2162
2162
|
__name2(this, "ParsedEnvSpecDecorator");
|
|
2163
2163
|
}
|
|
2164
2164
|
value;
|
|
2165
|
+
static VALID_NAME_RE = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
|
2165
2166
|
get name() {
|
|
2166
2167
|
return this.data.name;
|
|
2167
2168
|
}
|
|
2169
|
+
get hasInvalidName() {
|
|
2170
|
+
return !_ParsedEnvSpecDecorator.VALID_NAME_RE.test(this.data.name);
|
|
2171
|
+
}
|
|
2172
|
+
get warning() {
|
|
2173
|
+
return this.data.warning;
|
|
2174
|
+
}
|
|
2168
2175
|
get isBareFnCall() {
|
|
2169
2176
|
return !!this.data.isBareFnCall;
|
|
2170
2177
|
}
|
|
@@ -2816,25 +2823,24 @@ function peg$parse(input, options) {
|
|
|
2816
2823
|
const peg$c2 = "=";
|
|
2817
2824
|
const peg$c3 = "#";
|
|
2818
2825
|
const peg$c4 = "@";
|
|
2819
|
-
const peg$c5 = "
|
|
2820
|
-
const peg$c6 = "
|
|
2821
|
-
const peg$c7 = "
|
|
2822
|
-
const peg$c8 = "
|
|
2823
|
-
const peg$c9 = '
|
|
2824
|
-
const peg$c10 = "
|
|
2825
|
-
const peg$c11 = "
|
|
2826
|
-
const peg$c12 = '"""';
|
|
2827
|
-
const peg$c13 =
|
|
2828
|
-
const peg$c14 = "
|
|
2829
|
-
const peg$c15 = "\\```";
|
|
2826
|
+
const peg$c5 = "(";
|
|
2827
|
+
const peg$c6 = ",";
|
|
2828
|
+
const peg$c7 = ")";
|
|
2829
|
+
const peg$c8 = '\\"';
|
|
2830
|
+
const peg$c9 = "\\'";
|
|
2831
|
+
const peg$c10 = "\\`";
|
|
2832
|
+
const peg$c11 = '"""';
|
|
2833
|
+
const peg$c12 = '\\"""';
|
|
2834
|
+
const peg$c13 = "```";
|
|
2835
|
+
const peg$c14 = "\\```";
|
|
2830
2836
|
const peg$r0 = /^[a-zA-Z_]/;
|
|
2831
2837
|
const peg$r1 = /^[a-zA-Z0-9_.\-]/;
|
|
2832
2838
|
const peg$r2 = /^[^\n]/;
|
|
2833
2839
|
const peg$r3 = /^[a-zA-Z]/;
|
|
2834
|
-
const peg$r4 = /^[
|
|
2835
|
-
const peg$r5 = /^[
|
|
2836
|
-
const peg$r6 = /^[
|
|
2837
|
-
const peg$r7 = /^[
|
|
2840
|
+
const peg$r4 = /^[^ \t\n=()#@]/;
|
|
2841
|
+
const peg$r5 = /^[^ \n,)]/;
|
|
2842
|
+
const peg$r6 = /^[ \t]/;
|
|
2843
|
+
const peg$r7 = /^[a-zA-Z0-9_]/;
|
|
2838
2844
|
const peg$r8 = /^[ \t\n]/;
|
|
2839
2845
|
const peg$r9 = /^[\-=*#]/;
|
|
2840
2846
|
const peg$r10 = /^['"`]/;
|
|
@@ -2855,33 +2861,32 @@ function peg$parse(input, options) {
|
|
|
2855
2861
|
const peg$e6 = peg$literalExpectation("@", false);
|
|
2856
2862
|
const peg$e7 = peg$classExpectation(["\n"], true, false, false);
|
|
2857
2863
|
const peg$e8 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
2858
|
-
const peg$e9 = peg$
|
|
2859
|
-
const peg$e10 = peg$
|
|
2860
|
-
const peg$e11 = peg$
|
|
2861
|
-
const peg$e12 = peg$literalExpectation("
|
|
2862
|
-
const peg$e13 = peg$
|
|
2863
|
-
const peg$e14 = peg$
|
|
2864
|
-
const peg$e15 = peg$classExpectation([" ", "
|
|
2865
|
-
const peg$e16 = peg$classExpectation([" ", " "], false, false, false);
|
|
2866
|
-
const peg$e17 = peg$classExpectation([" ", "
|
|
2867
|
-
const peg$e18 = peg$classExpectation(["
|
|
2868
|
-
const peg$e19 = peg$classExpectation(["
|
|
2869
|
-
const peg$e20 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
2870
|
-
const peg$e21 = peg$classExpectation(["
|
|
2871
|
-
const peg$e22 = peg$
|
|
2872
|
-
const peg$e23 = peg$
|
|
2873
|
-
const peg$e24 = peg$classExpectation([
|
|
2874
|
-
const peg$e25 = peg$
|
|
2875
|
-
const peg$e26 = peg$
|
|
2876
|
-
const peg$e27 = peg$classExpectation(["
|
|
2877
|
-
const peg$e28 = peg$
|
|
2878
|
-
const peg$e29 = peg$
|
|
2879
|
-
const peg$e30 = peg$
|
|
2880
|
-
const peg$e31 = peg$literalExpectation('"""', false);
|
|
2881
|
-
const peg$e32 = peg$literalExpectation(
|
|
2882
|
-
const peg$e33 = peg$literalExpectation("
|
|
2883
|
-
const peg$e34 = peg$
|
|
2884
|
-
const peg$e35 = peg$anyExpectation();
|
|
2864
|
+
const peg$e9 = peg$classExpectation([" ", " ", "\n", "=", "(", ")", "#", "@"], true, false, false);
|
|
2865
|
+
const peg$e10 = peg$literalExpectation("(", false);
|
|
2866
|
+
const peg$e11 = peg$literalExpectation(",", false);
|
|
2867
|
+
const peg$e12 = peg$literalExpectation(")", false);
|
|
2868
|
+
const peg$e13 = peg$classExpectation([" ", "\n", ",", ")"], true, false, false);
|
|
2869
|
+
const peg$e14 = peg$classExpectation([" ", " "], false, false, false);
|
|
2870
|
+
const peg$e15 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false, false);
|
|
2871
|
+
const peg$e16 = peg$classExpectation([" ", " ", "\n"], false, false, false);
|
|
2872
|
+
const peg$e17 = peg$classExpectation(["-", "=", "*", "#"], false, false, false);
|
|
2873
|
+
const peg$e18 = peg$classExpectation(["'", '"', "`"], false, false, false);
|
|
2874
|
+
const peg$e19 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
2875
|
+
const peg$e20 = peg$classExpectation(["#", " ", "\n"], true, false, false);
|
|
2876
|
+
const peg$e21 = peg$classExpectation(['"'], false, false, false);
|
|
2877
|
+
const peg$e22 = peg$literalExpectation('\\"', false);
|
|
2878
|
+
const peg$e23 = peg$classExpectation(['"', "\n"], true, false, false);
|
|
2879
|
+
const peg$e24 = peg$classExpectation(["'"], false, false, false);
|
|
2880
|
+
const peg$e25 = peg$literalExpectation("\\'", false);
|
|
2881
|
+
const peg$e26 = peg$classExpectation(["'", "\n"], true, false, false);
|
|
2882
|
+
const peg$e27 = peg$classExpectation(["`"], false, false, false);
|
|
2883
|
+
const peg$e28 = peg$literalExpectation("\\`", false);
|
|
2884
|
+
const peg$e29 = peg$classExpectation(["`", "\n"], true, false, false);
|
|
2885
|
+
const peg$e30 = peg$literalExpectation('"""', false);
|
|
2886
|
+
const peg$e31 = peg$literalExpectation('\\"""', false);
|
|
2887
|
+
const peg$e32 = peg$literalExpectation("```", false);
|
|
2888
|
+
const peg$e33 = peg$literalExpectation("\\```", false);
|
|
2889
|
+
const peg$e34 = peg$anyExpectation();
|
|
2885
2890
|
function peg$f0() {
|
|
2886
2891
|
return new ParsedEnvSpecBlankLine({ _location: location() });
|
|
2887
2892
|
}
|
|
@@ -2921,22 +2926,28 @@ function peg$parse(input, options) {
|
|
|
2921
2926
|
}
|
|
2922
2927
|
__name(peg$f4, "peg$f4");
|
|
2923
2928
|
__name2(peg$f4, "peg$f4");
|
|
2924
|
-
function peg$f5(leadingSpace,
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2929
|
+
function peg$f5(leadingSpace, first, rest, trailingText) {
|
|
2930
|
+
const allDecorators = [first, ...rest];
|
|
2931
|
+
let postComment;
|
|
2932
|
+
if (trailingText) {
|
|
2933
|
+
if (trailingText.startsWith("#")) {
|
|
2934
|
+
postComment = trailingText;
|
|
2935
|
+
} else {
|
|
2936
|
+
const lastDec = allDecorators[allDecorators.length - 1];
|
|
2937
|
+
lastDec.data.warning = `Unexpected trailing text after @${lastDec.name}`;
|
|
2938
|
+
postComment = trailingText;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2930
2941
|
return new ParsedEnvSpecDecoratorComment({
|
|
2931
|
-
decorators:
|
|
2942
|
+
decorators: allDecorators,
|
|
2932
2943
|
leadingSpace,
|
|
2933
2944
|
postComment,
|
|
2934
2945
|
_location: location()
|
|
2935
2946
|
});
|
|
2936
2947
|
}
|
|
2937
|
-
__name(peg$
|
|
2938
|
-
__name2(peg$
|
|
2939
|
-
function peg$
|
|
2948
|
+
__name(peg$f5, "peg$f5");
|
|
2949
|
+
__name2(peg$f5, "peg$f5");
|
|
2950
|
+
function peg$f6(name, val) {
|
|
2940
2951
|
return new ParsedEnvSpecDecorator({
|
|
2941
2952
|
name,
|
|
2942
2953
|
value: Array.isArray(val) ? val[1] : val,
|
|
@@ -2944,69 +2955,74 @@ function peg$parse(input, options) {
|
|
|
2944
2955
|
_location: location()
|
|
2945
2956
|
});
|
|
2946
2957
|
}
|
|
2947
|
-
__name(peg$
|
|
2948
|
-
__name2(peg$
|
|
2949
|
-
function peg$
|
|
2958
|
+
__name(peg$f6, "peg$f6");
|
|
2959
|
+
__name2(peg$f6, "peg$f6");
|
|
2960
|
+
function peg$f7(name, args) {
|
|
2950
2961
|
return new ParsedEnvSpecFunctionCall({
|
|
2951
2962
|
name,
|
|
2952
2963
|
args,
|
|
2953
2964
|
_location: location()
|
|
2954
2965
|
});
|
|
2955
2966
|
}
|
|
2956
|
-
__name(peg$
|
|
2957
|
-
__name2(peg$
|
|
2958
|
-
function peg$
|
|
2967
|
+
__name(peg$f7, "peg$f7");
|
|
2968
|
+
__name2(peg$f7, "peg$f7");
|
|
2969
|
+
function peg$f8(key, val) {
|
|
2959
2970
|
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
2960
2971
|
}
|
|
2961
|
-
__name(peg$
|
|
2962
|
-
__name2(peg$
|
|
2963
|
-
function peg$
|
|
2972
|
+
__name(peg$f8, "peg$f8");
|
|
2973
|
+
__name2(peg$f8, "peg$f8");
|
|
2974
|
+
function peg$f9(values) {
|
|
2964
2975
|
return new ParsedEnvSpecFunctionArgs({
|
|
2965
2976
|
values: values || [],
|
|
2966
2977
|
_location: location()
|
|
2967
2978
|
});
|
|
2968
2979
|
}
|
|
2969
|
-
__name(peg$
|
|
2970
|
-
__name2(peg$
|
|
2971
|
-
function peg$
|
|
2980
|
+
__name(peg$f9, "peg$f9");
|
|
2981
|
+
__name2(peg$f9, "peg$f9");
|
|
2982
|
+
function peg$f10() {
|
|
2972
2983
|
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
2973
2984
|
}
|
|
2974
|
-
__name(peg$
|
|
2975
|
-
__name2(peg$
|
|
2976
|
-
function peg$
|
|
2985
|
+
__name(peg$f10, "peg$f10");
|
|
2986
|
+
__name2(peg$f10, "peg$f10");
|
|
2987
|
+
function peg$f11(name, args) {
|
|
2977
2988
|
return new ParsedEnvSpecFunctionCall({
|
|
2978
2989
|
name,
|
|
2979
2990
|
args,
|
|
2980
2991
|
_location: location()
|
|
2981
2992
|
});
|
|
2982
2993
|
}
|
|
2983
|
-
__name(peg$
|
|
2984
|
-
__name2(peg$
|
|
2985
|
-
function peg$
|
|
2994
|
+
__name(peg$f11, "peg$f11");
|
|
2995
|
+
__name2(peg$f11, "peg$f11");
|
|
2996
|
+
function peg$f12(key, val) {
|
|
2986
2997
|
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
2987
2998
|
}
|
|
2988
|
-
__name(peg$
|
|
2989
|
-
__name2(peg$
|
|
2990
|
-
function peg$
|
|
2999
|
+
__name(peg$f12, "peg$f12");
|
|
3000
|
+
__name2(peg$f12, "peg$f12");
|
|
3001
|
+
function peg$f13(values) {
|
|
2991
3002
|
return new ParsedEnvSpecFunctionArgs({
|
|
2992
3003
|
values: values || [],
|
|
2993
3004
|
_location: location()
|
|
2994
3005
|
});
|
|
2995
3006
|
}
|
|
2996
|
-
__name(peg$
|
|
2997
|
-
__name2(peg$
|
|
2998
|
-
function peg$
|
|
3007
|
+
__name(peg$f13, "peg$f13");
|
|
3008
|
+
__name2(peg$f13, "peg$f13");
|
|
3009
|
+
function peg$f14() {
|
|
2999
3010
|
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3000
3011
|
}
|
|
3001
|
-
__name(peg$
|
|
3002
|
-
__name2(peg$
|
|
3003
|
-
function peg$
|
|
3012
|
+
__name(peg$f14, "peg$f14");
|
|
3013
|
+
__name2(peg$f14, "peg$f14");
|
|
3014
|
+
function peg$f15(leadingSpace, contents) {
|
|
3004
3015
|
return new ParsedEnvSpecDivider({
|
|
3005
3016
|
contents,
|
|
3006
3017
|
leadingSpace,
|
|
3007
3018
|
_location: location()
|
|
3008
3019
|
});
|
|
3009
3020
|
}
|
|
3021
|
+
__name(peg$f15, "peg$f15");
|
|
3022
|
+
__name2(peg$f15, "peg$f15");
|
|
3023
|
+
function peg$f16() {
|
|
3024
|
+
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3025
|
+
}
|
|
3010
3026
|
__name(peg$f16, "peg$f16");
|
|
3011
3027
|
__name2(peg$f16, "peg$f16");
|
|
3012
3028
|
function peg$f17() {
|
|
@@ -3014,8 +3030,8 @@ function peg$parse(input, options) {
|
|
|
3014
3030
|
}
|
|
3015
3031
|
__name(peg$f17, "peg$f17");
|
|
3016
3032
|
__name2(peg$f17, "peg$f17");
|
|
3017
|
-
function peg$f18() {
|
|
3018
|
-
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3033
|
+
function peg$f18(quote) {
|
|
3034
|
+
return new ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
3019
3035
|
}
|
|
3020
3036
|
__name(peg$f18, "peg$f18");
|
|
3021
3037
|
__name2(peg$f18, "peg$f18");
|
|
@@ -3030,7 +3046,7 @@ function peg$parse(input, options) {
|
|
|
3030
3046
|
__name(peg$f20, "peg$f20");
|
|
3031
3047
|
__name2(peg$f20, "peg$f20");
|
|
3032
3048
|
function peg$f21(quote) {
|
|
3033
|
-
return new ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
3049
|
+
return new ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
3034
3050
|
}
|
|
3035
3051
|
__name(peg$f21, "peg$f21");
|
|
3036
3052
|
__name2(peg$f21, "peg$f21");
|
|
@@ -3049,11 +3065,6 @@ function peg$parse(input, options) {
|
|
|
3049
3065
|
}
|
|
3050
3066
|
__name(peg$f24, "peg$f24");
|
|
3051
3067
|
__name2(peg$f24, "peg$f24");
|
|
3052
|
-
function peg$f25(quote) {
|
|
3053
|
-
return new ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
3054
|
-
}
|
|
3055
|
-
__name(peg$f25, "peg$f25");
|
|
3056
|
-
__name2(peg$f25, "peg$f25");
|
|
3057
3068
|
let peg$currPos = options.peg$currPos | 0;
|
|
3058
3069
|
let peg$savedPos = peg$currPos;
|
|
3059
3070
|
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -3292,12 +3303,9 @@ function peg$parse(input, options) {
|
|
|
3292
3303
|
s0 = peg$currPos;
|
|
3293
3304
|
s1 = [];
|
|
3294
3305
|
s2 = peg$currPos;
|
|
3295
|
-
s3 = peg$
|
|
3306
|
+
s3 = peg$parseDecoratorComment();
|
|
3296
3307
|
if (s3 === peg$FAILED) {
|
|
3297
|
-
s3 = peg$
|
|
3298
|
-
if (s3 === peg$FAILED) {
|
|
3299
|
-
s3 = peg$parseComment();
|
|
3300
|
-
}
|
|
3308
|
+
s3 = peg$parseComment();
|
|
3301
3309
|
}
|
|
3302
3310
|
if (s3 !== peg$FAILED) {
|
|
3303
3311
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
@@ -3322,12 +3330,9 @@ function peg$parse(input, options) {
|
|
|
3322
3330
|
while (s2 !== peg$FAILED) {
|
|
3323
3331
|
s1.push(s2);
|
|
3324
3332
|
s2 = peg$currPos;
|
|
3325
|
-
s3 = peg$
|
|
3333
|
+
s3 = peg$parseDecoratorComment();
|
|
3326
3334
|
if (s3 === peg$FAILED) {
|
|
3327
|
-
s3 = peg$
|
|
3328
|
-
if (s3 === peg$FAILED) {
|
|
3329
|
-
s3 = peg$parseComment();
|
|
3330
|
-
}
|
|
3335
|
+
s3 = peg$parseComment();
|
|
3331
3336
|
}
|
|
3332
3337
|
if (s3 !== peg$FAILED) {
|
|
3333
3338
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
@@ -3392,12 +3397,9 @@ function peg$parse(input, options) {
|
|
|
3392
3397
|
}
|
|
3393
3398
|
peg$parse_();
|
|
3394
3399
|
s9 = peg$currPos;
|
|
3395
|
-
s10 = peg$
|
|
3400
|
+
s10 = peg$parseDecoratorComment();
|
|
3396
3401
|
if (s10 === peg$FAILED) {
|
|
3397
|
-
s10 = peg$
|
|
3398
|
-
if (s10 === peg$FAILED) {
|
|
3399
|
-
s10 = peg$parseComment();
|
|
3400
|
-
}
|
|
3402
|
+
s10 = peg$parseComment();
|
|
3401
3403
|
}
|
|
3402
3404
|
if (s10 !== peg$FAILED) {
|
|
3403
3405
|
s9 = s10;
|
|
@@ -3500,12 +3502,9 @@ function peg$parse(input, options) {
|
|
|
3500
3502
|
s0 = peg$currPos;
|
|
3501
3503
|
s1 = [];
|
|
3502
3504
|
s2 = peg$currPos;
|
|
3503
|
-
s3 = peg$
|
|
3505
|
+
s3 = peg$parseDecoratorComment();
|
|
3504
3506
|
if (s3 === peg$FAILED) {
|
|
3505
|
-
s3 = peg$
|
|
3506
|
-
if (s3 === peg$FAILED) {
|
|
3507
|
-
s3 = peg$parseComment();
|
|
3508
|
-
}
|
|
3507
|
+
s3 = peg$parseComment();
|
|
3509
3508
|
}
|
|
3510
3509
|
if (s3 !== peg$FAILED) {
|
|
3511
3510
|
s4 = peg$parse_n();
|
|
@@ -3523,12 +3522,9 @@ function peg$parse(input, options) {
|
|
|
3523
3522
|
while (s2 !== peg$FAILED) {
|
|
3524
3523
|
s1.push(s2);
|
|
3525
3524
|
s2 = peg$currPos;
|
|
3526
|
-
s3 = peg$
|
|
3525
|
+
s3 = peg$parseDecoratorComment();
|
|
3527
3526
|
if (s3 === peg$FAILED) {
|
|
3528
|
-
s3 = peg$
|
|
3529
|
-
if (s3 === peg$FAILED) {
|
|
3530
|
-
s3 = peg$parseComment();
|
|
3531
|
-
}
|
|
3527
|
+
s3 = peg$parseComment();
|
|
3532
3528
|
}
|
|
3533
3529
|
if (s3 !== peg$FAILED) {
|
|
3534
3530
|
s4 = peg$parse_n();
|
|
@@ -3662,7 +3658,7 @@ function peg$parse(input, options) {
|
|
|
3662
3658
|
}
|
|
3663
3659
|
__name(peg$parseComment, "peg$parseComment");
|
|
3664
3660
|
__name2(peg$parseComment, "peg$parseComment");
|
|
3665
|
-
function peg$
|
|
3661
|
+
function peg$parseDecoratorComment() {
|
|
3666
3662
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
3667
3663
|
s0 = peg$currPos;
|
|
3668
3664
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
@@ -3678,65 +3674,55 @@ function peg$parse(input, options) {
|
|
|
3678
3674
|
s2 = peg$currPos;
|
|
3679
3675
|
s3 = peg$parse_();
|
|
3680
3676
|
s2 = input.substring(s2, peg$currPos);
|
|
3681
|
-
s3 = peg$
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
s5 = peg$
|
|
3685
|
-
peg$
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
s6 = [];
|
|
3694
|
-
s7 = input.charAt(peg$currPos);
|
|
3695
|
-
if (peg$r3.test(s7)) {
|
|
3696
|
-
peg$currPos++;
|
|
3697
|
-
} else {
|
|
3698
|
-
s7 = peg$FAILED;
|
|
3699
|
-
if (peg$silentFails === 0) {
|
|
3700
|
-
peg$fail(peg$e8);
|
|
3677
|
+
s3 = peg$parseDecorator();
|
|
3678
|
+
if (s3 !== peg$FAILED) {
|
|
3679
|
+
s4 = [];
|
|
3680
|
+
s5 = peg$currPos;
|
|
3681
|
+
s6 = peg$parse__();
|
|
3682
|
+
if (s6 !== peg$FAILED) {
|
|
3683
|
+
s7 = peg$parseDecorator();
|
|
3684
|
+
if (s7 !== peg$FAILED) {
|
|
3685
|
+
s5 = s7;
|
|
3686
|
+
} else {
|
|
3687
|
+
peg$currPos = s5;
|
|
3688
|
+
s5 = peg$FAILED;
|
|
3701
3689
|
}
|
|
3690
|
+
} else {
|
|
3691
|
+
peg$currPos = s5;
|
|
3692
|
+
s5 = peg$FAILED;
|
|
3702
3693
|
}
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3694
|
+
while (s5 !== peg$FAILED) {
|
|
3695
|
+
s4.push(s5);
|
|
3696
|
+
s5 = peg$currPos;
|
|
3697
|
+
s6 = peg$parse__();
|
|
3698
|
+
if (s6 !== peg$FAILED) {
|
|
3699
|
+
s7 = peg$parseDecorator();
|
|
3700
|
+
if (s7 !== peg$FAILED) {
|
|
3701
|
+
s5 = s7;
|
|
3709
3702
|
} else {
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
peg$fail(peg$e8);
|
|
3713
|
-
}
|
|
3703
|
+
peg$currPos = s5;
|
|
3704
|
+
s5 = peg$FAILED;
|
|
3714
3705
|
}
|
|
3706
|
+
} else {
|
|
3707
|
+
peg$currPos = s5;
|
|
3708
|
+
s5 = peg$FAILED;
|
|
3715
3709
|
}
|
|
3716
|
-
} else {
|
|
3717
|
-
s6 = peg$FAILED;
|
|
3718
3710
|
}
|
|
3711
|
+
s5 = peg$currPos;
|
|
3712
|
+
s6 = peg$parse__();
|
|
3719
3713
|
if (s6 !== peg$FAILED) {
|
|
3720
|
-
|
|
3721
|
-
|
|
3714
|
+
s7 = peg$currPos;
|
|
3715
|
+
s8 = [];
|
|
3716
|
+
s9 = input.charAt(peg$currPos);
|
|
3717
|
+
if (peg$r2.test(s9)) {
|
|
3722
3718
|
peg$currPos++;
|
|
3723
3719
|
} else {
|
|
3724
|
-
|
|
3720
|
+
s9 = peg$FAILED;
|
|
3725
3721
|
if (peg$silentFails === 0) {
|
|
3726
|
-
peg$fail(peg$
|
|
3722
|
+
peg$fail(peg$e7);
|
|
3727
3723
|
}
|
|
3728
3724
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
s8 = [];
|
|
3731
|
-
s9 = input.charAt(peg$currPos);
|
|
3732
|
-
if (peg$r2.test(s9)) {
|
|
3733
|
-
peg$currPos++;
|
|
3734
|
-
} else {
|
|
3735
|
-
s9 = peg$FAILED;
|
|
3736
|
-
if (peg$silentFails === 0) {
|
|
3737
|
-
peg$fail(peg$e7);
|
|
3738
|
-
}
|
|
3739
|
-
}
|
|
3725
|
+
if (s9 !== peg$FAILED) {
|
|
3740
3726
|
while (s9 !== peg$FAILED) {
|
|
3741
3727
|
s8.push(s9);
|
|
3742
3728
|
s9 = input.charAt(peg$currPos);
|
|
@@ -3749,164 +3735,14 @@ function peg$parse(input, options) {
|
|
|
3749
3735
|
}
|
|
3750
3736
|
}
|
|
3751
3737
|
}
|
|
3752
|
-
s5 = [s5, s6, s7, s8];
|
|
3753
|
-
s4 = s5;
|
|
3754
3738
|
} else {
|
|
3755
|
-
|
|
3756
|
-
s4 = peg$FAILED;
|
|
3739
|
+
s8 = peg$FAILED;
|
|
3757
3740
|
}
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
s4 = peg$FAILED;
|
|
3761
|
-
}
|
|
3762
|
-
} else {
|
|
3763
|
-
peg$currPos = s4;
|
|
3764
|
-
s4 = peg$FAILED;
|
|
3765
|
-
}
|
|
3766
|
-
if (s4 === peg$FAILED) {
|
|
3767
|
-
s4 = peg$currPos;
|
|
3768
|
-
if (input.charCodeAt(peg$currPos) === 64) {
|
|
3769
|
-
s5 = peg$c4;
|
|
3770
|
-
peg$currPos++;
|
|
3771
|
-
} else {
|
|
3772
|
-
s5 = peg$FAILED;
|
|
3773
|
-
if (peg$silentFails === 0) {
|
|
3774
|
-
peg$fail(peg$e6);
|
|
3775
|
-
}
|
|
3776
|
-
}
|
|
3777
|
-
if (s5 !== peg$FAILED) {
|
|
3778
|
-
s6 = [];
|
|
3779
|
-
s7 = input.charAt(peg$currPos);
|
|
3780
|
-
if (peg$r3.test(s7)) {
|
|
3781
|
-
peg$currPos++;
|
|
3741
|
+
if (s8 !== peg$FAILED) {
|
|
3742
|
+
s7 = input.substring(s7, peg$currPos);
|
|
3782
3743
|
} else {
|
|
3783
|
-
s7 =
|
|
3784
|
-
if (peg$silentFails === 0) {
|
|
3785
|
-
peg$fail(peg$e8);
|
|
3786
|
-
}
|
|
3744
|
+
s7 = s8;
|
|
3787
3745
|
}
|
|
3788
|
-
if (s7 !== peg$FAILED) {
|
|
3789
|
-
while (s7 !== peg$FAILED) {
|
|
3790
|
-
s6.push(s7);
|
|
3791
|
-
s7 = input.charAt(peg$currPos);
|
|
3792
|
-
if (peg$r3.test(s7)) {
|
|
3793
|
-
peg$currPos++;
|
|
3794
|
-
} else {
|
|
3795
|
-
s7 = peg$FAILED;
|
|
3796
|
-
if (peg$silentFails === 0) {
|
|
3797
|
-
peg$fail(peg$e8);
|
|
3798
|
-
}
|
|
3799
|
-
}
|
|
3800
|
-
}
|
|
3801
|
-
} else {
|
|
3802
|
-
s6 = peg$FAILED;
|
|
3803
|
-
}
|
|
3804
|
-
if (s6 !== peg$FAILED) {
|
|
3805
|
-
s7 = peg$parse__();
|
|
3806
|
-
if (s7 !== peg$FAILED) {
|
|
3807
|
-
s8 = peg$currPos;
|
|
3808
|
-
peg$silentFails++;
|
|
3809
|
-
s9 = input.charAt(peg$currPos);
|
|
3810
|
-
if (peg$r4.test(s9)) {
|
|
3811
|
-
peg$currPos++;
|
|
3812
|
-
} else {
|
|
3813
|
-
s9 = peg$FAILED;
|
|
3814
|
-
if (peg$silentFails === 0) {
|
|
3815
|
-
peg$fail(peg$e10);
|
|
3816
|
-
}
|
|
3817
|
-
}
|
|
3818
|
-
peg$silentFails--;
|
|
3819
|
-
if (s9 === peg$FAILED) {
|
|
3820
|
-
s8 = void 0;
|
|
3821
|
-
} else {
|
|
3822
|
-
peg$currPos = s8;
|
|
3823
|
-
s8 = peg$FAILED;
|
|
3824
|
-
}
|
|
3825
|
-
if (s8 !== peg$FAILED) {
|
|
3826
|
-
s9 = [];
|
|
3827
|
-
s10 = input.charAt(peg$currPos);
|
|
3828
|
-
if (peg$r2.test(s10)) {
|
|
3829
|
-
peg$currPos++;
|
|
3830
|
-
} else {
|
|
3831
|
-
s10 = peg$FAILED;
|
|
3832
|
-
if (peg$silentFails === 0) {
|
|
3833
|
-
peg$fail(peg$e7);
|
|
3834
|
-
}
|
|
3835
|
-
}
|
|
3836
|
-
while (s10 !== peg$FAILED) {
|
|
3837
|
-
s9.push(s10);
|
|
3838
|
-
s10 = input.charAt(peg$currPos);
|
|
3839
|
-
if (peg$r2.test(s10)) {
|
|
3840
|
-
peg$currPos++;
|
|
3841
|
-
} else {
|
|
3842
|
-
s10 = peg$FAILED;
|
|
3843
|
-
if (peg$silentFails === 0) {
|
|
3844
|
-
peg$fail(peg$e7);
|
|
3845
|
-
}
|
|
3846
|
-
}
|
|
3847
|
-
}
|
|
3848
|
-
s5 = [s5, s6, s7, s8, s9];
|
|
3849
|
-
s4 = s5;
|
|
3850
|
-
} else {
|
|
3851
|
-
peg$currPos = s4;
|
|
3852
|
-
s4 = peg$FAILED;
|
|
3853
|
-
}
|
|
3854
|
-
} else {
|
|
3855
|
-
peg$currPos = s4;
|
|
3856
|
-
s4 = peg$FAILED;
|
|
3857
|
-
}
|
|
3858
|
-
} else {
|
|
3859
|
-
peg$currPos = s4;
|
|
3860
|
-
s4 = peg$FAILED;
|
|
3861
|
-
}
|
|
3862
|
-
} else {
|
|
3863
|
-
peg$currPos = s4;
|
|
3864
|
-
s4 = peg$FAILED;
|
|
3865
|
-
}
|
|
3866
|
-
}
|
|
3867
|
-
if (s4 !== peg$FAILED) {
|
|
3868
|
-
s3 = input.substring(s3, peg$currPos);
|
|
3869
|
-
} else {
|
|
3870
|
-
s3 = s4;
|
|
3871
|
-
}
|
|
3872
|
-
if (s3 !== peg$FAILED) {
|
|
3873
|
-
peg$savedPos = s0;
|
|
3874
|
-
s0 = peg$f5(s2, s3);
|
|
3875
|
-
} else {
|
|
3876
|
-
peg$currPos = s0;
|
|
3877
|
-
s0 = peg$FAILED;
|
|
3878
|
-
}
|
|
3879
|
-
} else {
|
|
3880
|
-
peg$currPos = s0;
|
|
3881
|
-
s0 = peg$FAILED;
|
|
3882
|
-
}
|
|
3883
|
-
return s0;
|
|
3884
|
-
}
|
|
3885
|
-
__name(peg$parseIgnoredDecoratorComment, "peg$parseIgnoredDecoratorComment");
|
|
3886
|
-
__name2(peg$parseIgnoredDecoratorComment, "peg$parseIgnoredDecoratorComment");
|
|
3887
|
-
function peg$parseDecoratorComment() {
|
|
3888
|
-
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
3889
|
-
s0 = peg$currPos;
|
|
3890
|
-
if (input.charCodeAt(peg$currPos) === 35) {
|
|
3891
|
-
s1 = peg$c3;
|
|
3892
|
-
peg$currPos++;
|
|
3893
|
-
} else {
|
|
3894
|
-
s1 = peg$FAILED;
|
|
3895
|
-
if (peg$silentFails === 0) {
|
|
3896
|
-
peg$fail(peg$e5);
|
|
3897
|
-
}
|
|
3898
|
-
}
|
|
3899
|
-
if (s1 !== peg$FAILED) {
|
|
3900
|
-
s2 = peg$currPos;
|
|
3901
|
-
s3 = peg$parse_();
|
|
3902
|
-
s2 = input.substring(s2, peg$currPos);
|
|
3903
|
-
s3 = peg$parseDecorator();
|
|
3904
|
-
if (s3 !== peg$FAILED) {
|
|
3905
|
-
s4 = [];
|
|
3906
|
-
s5 = peg$currPos;
|
|
3907
|
-
s6 = peg$parse__();
|
|
3908
|
-
if (s6 !== peg$FAILED) {
|
|
3909
|
-
s7 = peg$parseDecorator();
|
|
3910
3746
|
if (s7 !== peg$FAILED) {
|
|
3911
3747
|
s5 = s7;
|
|
3912
3748
|
} else {
|
|
@@ -3917,48 +3753,21 @@ function peg$parse(input, options) {
|
|
|
3917
3753
|
peg$currPos = s5;
|
|
3918
3754
|
s5 = peg$FAILED;
|
|
3919
3755
|
}
|
|
3920
|
-
|
|
3921
|
-
s4.push(s5);
|
|
3756
|
+
if (s5 === peg$FAILED) {
|
|
3922
3757
|
s5 = peg$currPos;
|
|
3923
|
-
s6 = peg$
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
s5 = s7;
|
|
3928
|
-
} else {
|
|
3929
|
-
peg$currPos = s5;
|
|
3930
|
-
s5 = peg$FAILED;
|
|
3931
|
-
}
|
|
3932
|
-
} else {
|
|
3933
|
-
peg$currPos = s5;
|
|
3934
|
-
s5 = peg$FAILED;
|
|
3935
|
-
}
|
|
3936
|
-
}
|
|
3937
|
-
s5 = peg$parse_();
|
|
3938
|
-
s6 = peg$currPos;
|
|
3939
|
-
s7 = peg$currPos;
|
|
3940
|
-
if (input.charCodeAt(peg$currPos) === 35) {
|
|
3941
|
-
s8 = peg$c3;
|
|
3942
|
-
peg$currPos++;
|
|
3943
|
-
} else {
|
|
3944
|
-
s8 = peg$FAILED;
|
|
3945
|
-
if (peg$silentFails === 0) {
|
|
3946
|
-
peg$fail(peg$e5);
|
|
3947
|
-
}
|
|
3948
|
-
}
|
|
3949
|
-
if (s8 !== peg$FAILED) {
|
|
3950
|
-
s9 = [];
|
|
3951
|
-
s10 = input.charAt(peg$currPos);
|
|
3952
|
-
if (peg$r2.test(s10)) {
|
|
3758
|
+
s6 = peg$currPos;
|
|
3759
|
+
s7 = peg$currPos;
|
|
3760
|
+
if (input.charCodeAt(peg$currPos) === 35) {
|
|
3761
|
+
s8 = peg$c3;
|
|
3953
3762
|
peg$currPos++;
|
|
3954
3763
|
} else {
|
|
3955
|
-
|
|
3764
|
+
s8 = peg$FAILED;
|
|
3956
3765
|
if (peg$silentFails === 0) {
|
|
3957
|
-
peg$fail(peg$
|
|
3766
|
+
peg$fail(peg$e5);
|
|
3958
3767
|
}
|
|
3959
3768
|
}
|
|
3960
|
-
|
|
3961
|
-
s9
|
|
3769
|
+
if (s8 !== peg$FAILED) {
|
|
3770
|
+
s9 = [];
|
|
3962
3771
|
s10 = input.charAt(peg$currPos);
|
|
3963
3772
|
if (peg$r2.test(s10)) {
|
|
3964
3773
|
peg$currPos++;
|
|
@@ -3968,19 +3777,42 @@ function peg$parse(input, options) {
|
|
|
3968
3777
|
peg$fail(peg$e7);
|
|
3969
3778
|
}
|
|
3970
3779
|
}
|
|
3780
|
+
while (s10 !== peg$FAILED) {
|
|
3781
|
+
s9.push(s10);
|
|
3782
|
+
s10 = input.charAt(peg$currPos);
|
|
3783
|
+
if (peg$r2.test(s10)) {
|
|
3784
|
+
peg$currPos++;
|
|
3785
|
+
} else {
|
|
3786
|
+
s10 = peg$FAILED;
|
|
3787
|
+
if (peg$silentFails === 0) {
|
|
3788
|
+
peg$fail(peg$e7);
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
s8 = [s8, s9];
|
|
3793
|
+
s7 = s8;
|
|
3794
|
+
} else {
|
|
3795
|
+
peg$currPos = s7;
|
|
3796
|
+
s7 = peg$FAILED;
|
|
3797
|
+
}
|
|
3798
|
+
if (s7 !== peg$FAILED) {
|
|
3799
|
+
s6 = input.substring(s6, peg$currPos);
|
|
3800
|
+
} else {
|
|
3801
|
+
s6 = s7;
|
|
3802
|
+
}
|
|
3803
|
+
if (s6 !== peg$FAILED) {
|
|
3804
|
+
s5 = s6;
|
|
3805
|
+
} else {
|
|
3806
|
+
peg$currPos = s5;
|
|
3807
|
+
s5 = peg$FAILED;
|
|
3971
3808
|
}
|
|
3972
|
-
s8 = [s8, s9];
|
|
3973
|
-
s7 = s8;
|
|
3974
|
-
} else {
|
|
3975
|
-
peg$currPos = s7;
|
|
3976
|
-
s7 = peg$FAILED;
|
|
3977
3809
|
}
|
|
3978
|
-
if (
|
|
3979
|
-
|
|
3810
|
+
if (s5 === peg$FAILED) {
|
|
3811
|
+
s5 = null;
|
|
3980
3812
|
}
|
|
3981
|
-
s6 =
|
|
3813
|
+
s6 = peg$parse_();
|
|
3982
3814
|
peg$savedPos = s0;
|
|
3983
|
-
s0 = peg$
|
|
3815
|
+
s0 = peg$f5(s2, s3, s4, s5);
|
|
3984
3816
|
} else {
|
|
3985
3817
|
peg$currPos = s0;
|
|
3986
3818
|
s0 = peg$FAILED;
|
|
@@ -4038,7 +3870,7 @@ function peg$parse(input, options) {
|
|
|
4038
3870
|
s3 = null;
|
|
4039
3871
|
}
|
|
4040
3872
|
peg$savedPos = s0;
|
|
4041
|
-
s0 = peg$
|
|
3873
|
+
s0 = peg$f6(s2, s3);
|
|
4042
3874
|
} else {
|
|
4043
3875
|
peg$currPos = s0;
|
|
4044
3876
|
s0 = peg$FAILED;
|
|
@@ -4067,23 +3899,23 @@ function peg$parse(input, options) {
|
|
|
4067
3899
|
if (s2 !== peg$FAILED) {
|
|
4068
3900
|
s3 = [];
|
|
4069
3901
|
s4 = input.charAt(peg$currPos);
|
|
4070
|
-
if (peg$
|
|
3902
|
+
if (peg$r4.test(s4)) {
|
|
4071
3903
|
peg$currPos++;
|
|
4072
3904
|
} else {
|
|
4073
3905
|
s4 = peg$FAILED;
|
|
4074
3906
|
if (peg$silentFails === 0) {
|
|
4075
|
-
peg$fail(peg$
|
|
3907
|
+
peg$fail(peg$e9);
|
|
4076
3908
|
}
|
|
4077
3909
|
}
|
|
4078
3910
|
while (s4 !== peg$FAILED) {
|
|
4079
3911
|
s3.push(s4);
|
|
4080
3912
|
s4 = input.charAt(peg$currPos);
|
|
4081
|
-
if (peg$
|
|
3913
|
+
if (peg$r4.test(s4)) {
|
|
4082
3914
|
peg$currPos++;
|
|
4083
3915
|
} else {
|
|
4084
3916
|
s4 = peg$FAILED;
|
|
4085
3917
|
if (peg$silentFails === 0) {
|
|
4086
|
-
peg$fail(peg$
|
|
3918
|
+
peg$fail(peg$e9);
|
|
4087
3919
|
}
|
|
4088
3920
|
}
|
|
4089
3921
|
}
|
|
@@ -4123,7 +3955,7 @@ function peg$parse(input, options) {
|
|
|
4123
3955
|
s2 = peg$parseDecoratorFunctionArgs();
|
|
4124
3956
|
if (s2 !== peg$FAILED) {
|
|
4125
3957
|
peg$savedPos = s0;
|
|
4126
|
-
s0 = peg$
|
|
3958
|
+
s0 = peg$f7(s1, s2);
|
|
4127
3959
|
} else {
|
|
4128
3960
|
peg$currPos = s0;
|
|
4129
3961
|
s0 = peg$FAILED;
|
|
@@ -4140,12 +3972,12 @@ function peg$parse(input, options) {
|
|
|
4140
3972
|
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
4141
3973
|
s0 = peg$currPos;
|
|
4142
3974
|
if (input.charCodeAt(peg$currPos) === 40) {
|
|
4143
|
-
s1 = peg$
|
|
3975
|
+
s1 = peg$c5;
|
|
4144
3976
|
peg$currPos++;
|
|
4145
3977
|
} else {
|
|
4146
3978
|
s1 = peg$FAILED;
|
|
4147
3979
|
if (peg$silentFails === 0) {
|
|
4148
|
-
peg$fail(peg$
|
|
3980
|
+
peg$fail(peg$e10);
|
|
4149
3981
|
}
|
|
4150
3982
|
}
|
|
4151
3983
|
if (s1 !== peg$FAILED) {
|
|
@@ -4168,7 +4000,7 @@ function peg$parse(input, options) {
|
|
|
4168
4000
|
s8 = peg$parseDecoratorFunctionArgValue();
|
|
4169
4001
|
if (s8 !== peg$FAILED) {
|
|
4170
4002
|
peg$savedPos = s5;
|
|
4171
|
-
s5 = peg$
|
|
4003
|
+
s5 = peg$f8(s6, s8);
|
|
4172
4004
|
} else {
|
|
4173
4005
|
peg$currPos = s5;
|
|
4174
4006
|
s5 = peg$FAILED;
|
|
@@ -4190,12 +4022,12 @@ function peg$parse(input, options) {
|
|
|
4190
4022
|
s6 = peg$currPos;
|
|
4191
4023
|
s7 = peg$parse_decWs();
|
|
4192
4024
|
if (input.charCodeAt(peg$currPos) === 44) {
|
|
4193
|
-
s8 = peg$
|
|
4025
|
+
s8 = peg$c6;
|
|
4194
4026
|
peg$currPos++;
|
|
4195
4027
|
} else {
|
|
4196
4028
|
s8 = peg$FAILED;
|
|
4197
4029
|
if (peg$silentFails === 0) {
|
|
4198
|
-
peg$fail(peg$
|
|
4030
|
+
peg$fail(peg$e11);
|
|
4199
4031
|
}
|
|
4200
4032
|
}
|
|
4201
4033
|
if (s8 !== peg$FAILED) {
|
|
@@ -4223,7 +4055,7 @@ function peg$parse(input, options) {
|
|
|
4223
4055
|
s9 = peg$parseDecoratorFunctionArgValue();
|
|
4224
4056
|
if (s9 !== peg$FAILED) {
|
|
4225
4057
|
peg$savedPos = s6;
|
|
4226
|
-
s6 = peg$
|
|
4058
|
+
s6 = peg$f8(s7, s9);
|
|
4227
4059
|
} else {
|
|
4228
4060
|
peg$currPos = s6;
|
|
4229
4061
|
s6 = peg$FAILED;
|
|
@@ -4261,12 +4093,12 @@ function peg$parse(input, options) {
|
|
|
4261
4093
|
s4 = peg$currPos;
|
|
4262
4094
|
s5 = peg$parse_decWs();
|
|
4263
4095
|
if (input.charCodeAt(peg$currPos) === 44) {
|
|
4264
|
-
s6 = peg$
|
|
4096
|
+
s6 = peg$c6;
|
|
4265
4097
|
peg$currPos++;
|
|
4266
4098
|
} else {
|
|
4267
4099
|
s6 = peg$FAILED;
|
|
4268
4100
|
if (peg$silentFails === 0) {
|
|
4269
|
-
peg$fail(peg$
|
|
4101
|
+
peg$fail(peg$e11);
|
|
4270
4102
|
}
|
|
4271
4103
|
}
|
|
4272
4104
|
if (s6 !== peg$FAILED) {
|
|
@@ -4281,17 +4113,17 @@ function peg$parse(input, options) {
|
|
|
4281
4113
|
}
|
|
4282
4114
|
s5 = peg$parse_decWs();
|
|
4283
4115
|
if (input.charCodeAt(peg$currPos) === 41) {
|
|
4284
|
-
s6 = peg$
|
|
4116
|
+
s6 = peg$c7;
|
|
4285
4117
|
peg$currPos++;
|
|
4286
4118
|
} else {
|
|
4287
4119
|
s6 = peg$FAILED;
|
|
4288
4120
|
if (peg$silentFails === 0) {
|
|
4289
|
-
peg$fail(peg$
|
|
4121
|
+
peg$fail(peg$e12);
|
|
4290
4122
|
}
|
|
4291
4123
|
}
|
|
4292
4124
|
if (s6 !== peg$FAILED) {
|
|
4293
4125
|
peg$savedPos = s0;
|
|
4294
|
-
s0 = peg$
|
|
4126
|
+
s0 = peg$f9(s3);
|
|
4295
4127
|
} else {
|
|
4296
4128
|
peg$currPos = s0;
|
|
4297
4129
|
s0 = peg$FAILED;
|
|
@@ -4314,24 +4146,24 @@ function peg$parse(input, options) {
|
|
|
4314
4146
|
s1 = peg$currPos;
|
|
4315
4147
|
s2 = [];
|
|
4316
4148
|
s3 = input.charAt(peg$currPos);
|
|
4317
|
-
if (peg$
|
|
4149
|
+
if (peg$r5.test(s3)) {
|
|
4318
4150
|
peg$currPos++;
|
|
4319
4151
|
} else {
|
|
4320
4152
|
s3 = peg$FAILED;
|
|
4321
4153
|
if (peg$silentFails === 0) {
|
|
4322
|
-
peg$fail(peg$
|
|
4154
|
+
peg$fail(peg$e13);
|
|
4323
4155
|
}
|
|
4324
4156
|
}
|
|
4325
4157
|
if (s3 !== peg$FAILED) {
|
|
4326
4158
|
while (s3 !== peg$FAILED) {
|
|
4327
4159
|
s2.push(s3);
|
|
4328
4160
|
s3 = input.charAt(peg$currPos);
|
|
4329
|
-
if (peg$
|
|
4161
|
+
if (peg$r5.test(s3)) {
|
|
4330
4162
|
peg$currPos++;
|
|
4331
4163
|
} else {
|
|
4332
4164
|
s3 = peg$FAILED;
|
|
4333
4165
|
if (peg$silentFails === 0) {
|
|
4334
|
-
peg$fail(peg$
|
|
4166
|
+
peg$fail(peg$e13);
|
|
4335
4167
|
}
|
|
4336
4168
|
}
|
|
4337
4169
|
}
|
|
@@ -4345,7 +4177,7 @@ function peg$parse(input, options) {
|
|
|
4345
4177
|
}
|
|
4346
4178
|
if (s1 !== peg$FAILED) {
|
|
4347
4179
|
peg$savedPos = s0;
|
|
4348
|
-
s1 = peg$
|
|
4180
|
+
s1 = peg$f10();
|
|
4349
4181
|
}
|
|
4350
4182
|
s0 = s1;
|
|
4351
4183
|
}
|
|
@@ -4358,12 +4190,12 @@ function peg$parse(input, options) {
|
|
|
4358
4190
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
4359
4191
|
s0 = [];
|
|
4360
4192
|
s1 = input.charAt(peg$currPos);
|
|
4361
|
-
if (peg$
|
|
4193
|
+
if (peg$r6.test(s1)) {
|
|
4362
4194
|
peg$currPos++;
|
|
4363
4195
|
} else {
|
|
4364
4196
|
s1 = peg$FAILED;
|
|
4365
4197
|
if (peg$silentFails === 0) {
|
|
4366
|
-
peg$fail(peg$
|
|
4198
|
+
peg$fail(peg$e14);
|
|
4367
4199
|
}
|
|
4368
4200
|
}
|
|
4369
4201
|
if (s1 === peg$FAILED) {
|
|
@@ -4380,23 +4212,23 @@ function peg$parse(input, options) {
|
|
|
4380
4212
|
if (s2 !== peg$FAILED) {
|
|
4381
4213
|
s3 = [];
|
|
4382
4214
|
s4 = input.charAt(peg$currPos);
|
|
4383
|
-
if (peg$
|
|
4215
|
+
if (peg$r6.test(s4)) {
|
|
4384
4216
|
peg$currPos++;
|
|
4385
4217
|
} else {
|
|
4386
4218
|
s4 = peg$FAILED;
|
|
4387
4219
|
if (peg$silentFails === 0) {
|
|
4388
|
-
peg$fail(peg$
|
|
4220
|
+
peg$fail(peg$e14);
|
|
4389
4221
|
}
|
|
4390
4222
|
}
|
|
4391
4223
|
while (s4 !== peg$FAILED) {
|
|
4392
4224
|
s3.push(s4);
|
|
4393
4225
|
s4 = input.charAt(peg$currPos);
|
|
4394
|
-
if (peg$
|
|
4226
|
+
if (peg$r6.test(s4)) {
|
|
4395
4227
|
peg$currPos++;
|
|
4396
4228
|
} else {
|
|
4397
4229
|
s4 = peg$FAILED;
|
|
4398
4230
|
if (peg$silentFails === 0) {
|
|
4399
|
-
peg$fail(peg$
|
|
4231
|
+
peg$fail(peg$e14);
|
|
4400
4232
|
}
|
|
4401
4233
|
}
|
|
4402
4234
|
}
|
|
@@ -4412,23 +4244,23 @@ function peg$parse(input, options) {
|
|
|
4412
4244
|
if (s4 !== peg$FAILED) {
|
|
4413
4245
|
s5 = [];
|
|
4414
4246
|
s6 = input.charAt(peg$currPos);
|
|
4415
|
-
if (peg$
|
|
4247
|
+
if (peg$r6.test(s6)) {
|
|
4416
4248
|
peg$currPos++;
|
|
4417
4249
|
} else {
|
|
4418
4250
|
s6 = peg$FAILED;
|
|
4419
4251
|
if (peg$silentFails === 0) {
|
|
4420
|
-
peg$fail(peg$
|
|
4252
|
+
peg$fail(peg$e14);
|
|
4421
4253
|
}
|
|
4422
4254
|
}
|
|
4423
4255
|
while (s6 !== peg$FAILED) {
|
|
4424
4256
|
s5.push(s6);
|
|
4425
4257
|
s6 = input.charAt(peg$currPos);
|
|
4426
|
-
if (peg$
|
|
4258
|
+
if (peg$r6.test(s6)) {
|
|
4427
4259
|
peg$currPos++;
|
|
4428
4260
|
} else {
|
|
4429
4261
|
s6 = peg$FAILED;
|
|
4430
4262
|
if (peg$silentFails === 0) {
|
|
4431
|
-
peg$fail(peg$
|
|
4263
|
+
peg$fail(peg$e14);
|
|
4432
4264
|
}
|
|
4433
4265
|
}
|
|
4434
4266
|
}
|
|
@@ -4446,12 +4278,12 @@ function peg$parse(input, options) {
|
|
|
4446
4278
|
while (s1 !== peg$FAILED) {
|
|
4447
4279
|
s0.push(s1);
|
|
4448
4280
|
s1 = input.charAt(peg$currPos);
|
|
4449
|
-
if (peg$
|
|
4281
|
+
if (peg$r6.test(s1)) {
|
|
4450
4282
|
peg$currPos++;
|
|
4451
4283
|
} else {
|
|
4452
4284
|
s1 = peg$FAILED;
|
|
4453
4285
|
if (peg$silentFails === 0) {
|
|
4454
|
-
peg$fail(peg$
|
|
4286
|
+
peg$fail(peg$e14);
|
|
4455
4287
|
}
|
|
4456
4288
|
}
|
|
4457
4289
|
if (s1 === peg$FAILED) {
|
|
@@ -4468,23 +4300,23 @@ function peg$parse(input, options) {
|
|
|
4468
4300
|
if (s2 !== peg$FAILED) {
|
|
4469
4301
|
s3 = [];
|
|
4470
4302
|
s4 = input.charAt(peg$currPos);
|
|
4471
|
-
if (peg$
|
|
4303
|
+
if (peg$r6.test(s4)) {
|
|
4472
4304
|
peg$currPos++;
|
|
4473
4305
|
} else {
|
|
4474
4306
|
s4 = peg$FAILED;
|
|
4475
4307
|
if (peg$silentFails === 0) {
|
|
4476
|
-
peg$fail(peg$
|
|
4308
|
+
peg$fail(peg$e14);
|
|
4477
4309
|
}
|
|
4478
4310
|
}
|
|
4479
4311
|
while (s4 !== peg$FAILED) {
|
|
4480
4312
|
s3.push(s4);
|
|
4481
4313
|
s4 = input.charAt(peg$currPos);
|
|
4482
|
-
if (peg$
|
|
4314
|
+
if (peg$r6.test(s4)) {
|
|
4483
4315
|
peg$currPos++;
|
|
4484
4316
|
} else {
|
|
4485
4317
|
s4 = peg$FAILED;
|
|
4486
4318
|
if (peg$silentFails === 0) {
|
|
4487
|
-
peg$fail(peg$
|
|
4319
|
+
peg$fail(peg$e14);
|
|
4488
4320
|
}
|
|
4489
4321
|
}
|
|
4490
4322
|
}
|
|
@@ -4500,23 +4332,23 @@ function peg$parse(input, options) {
|
|
|
4500
4332
|
if (s4 !== peg$FAILED) {
|
|
4501
4333
|
s5 = [];
|
|
4502
4334
|
s6 = input.charAt(peg$currPos);
|
|
4503
|
-
if (peg$
|
|
4335
|
+
if (peg$r6.test(s6)) {
|
|
4504
4336
|
peg$currPos++;
|
|
4505
4337
|
} else {
|
|
4506
4338
|
s6 = peg$FAILED;
|
|
4507
4339
|
if (peg$silentFails === 0) {
|
|
4508
|
-
peg$fail(peg$
|
|
4340
|
+
peg$fail(peg$e14);
|
|
4509
4341
|
}
|
|
4510
4342
|
}
|
|
4511
4343
|
while (s6 !== peg$FAILED) {
|
|
4512
4344
|
s5.push(s6);
|
|
4513
4345
|
s6 = input.charAt(peg$currPos);
|
|
4514
|
-
if (peg$
|
|
4346
|
+
if (peg$r6.test(s6)) {
|
|
4515
4347
|
peg$currPos++;
|
|
4516
4348
|
} else {
|
|
4517
4349
|
s6 = peg$FAILED;
|
|
4518
4350
|
if (peg$silentFails === 0) {
|
|
4519
|
-
peg$fail(peg$
|
|
4351
|
+
peg$fail(peg$e14);
|
|
4520
4352
|
}
|
|
4521
4353
|
}
|
|
4522
4354
|
}
|
|
@@ -4544,7 +4376,7 @@ function peg$parse(input, options) {
|
|
|
4544
4376
|
s2 = peg$parseFunctionArgs();
|
|
4545
4377
|
if (s2 !== peg$FAILED) {
|
|
4546
4378
|
peg$savedPos = s0;
|
|
4547
|
-
s0 = peg$
|
|
4379
|
+
s0 = peg$f11(s1, s2);
|
|
4548
4380
|
} else {
|
|
4549
4381
|
peg$currPos = s0;
|
|
4550
4382
|
s0 = peg$FAILED;
|
|
@@ -4573,23 +4405,23 @@ function peg$parse(input, options) {
|
|
|
4573
4405
|
if (s2 !== peg$FAILED) {
|
|
4574
4406
|
s3 = [];
|
|
4575
4407
|
s4 = input.charAt(peg$currPos);
|
|
4576
|
-
if (peg$
|
|
4408
|
+
if (peg$r7.test(s4)) {
|
|
4577
4409
|
peg$currPos++;
|
|
4578
4410
|
} else {
|
|
4579
4411
|
s4 = peg$FAILED;
|
|
4580
4412
|
if (peg$silentFails === 0) {
|
|
4581
|
-
peg$fail(peg$
|
|
4413
|
+
peg$fail(peg$e15);
|
|
4582
4414
|
}
|
|
4583
4415
|
}
|
|
4584
4416
|
while (s4 !== peg$FAILED) {
|
|
4585
4417
|
s3.push(s4);
|
|
4586
4418
|
s4 = input.charAt(peg$currPos);
|
|
4587
|
-
if (peg$
|
|
4419
|
+
if (peg$r7.test(s4)) {
|
|
4588
4420
|
peg$currPos++;
|
|
4589
4421
|
} else {
|
|
4590
4422
|
s4 = peg$FAILED;
|
|
4591
4423
|
if (peg$silentFails === 0) {
|
|
4592
|
-
peg$fail(peg$
|
|
4424
|
+
peg$fail(peg$e15);
|
|
4593
4425
|
}
|
|
4594
4426
|
}
|
|
4595
4427
|
}
|
|
@@ -4612,12 +4444,12 @@ function peg$parse(input, options) {
|
|
|
4612
4444
|
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
4613
4445
|
s0 = peg$currPos;
|
|
4614
4446
|
if (input.charCodeAt(peg$currPos) === 40) {
|
|
4615
|
-
s1 = peg$
|
|
4447
|
+
s1 = peg$c5;
|
|
4616
4448
|
peg$currPos++;
|
|
4617
4449
|
} else {
|
|
4618
4450
|
s1 = peg$FAILED;
|
|
4619
4451
|
if (peg$silentFails === 0) {
|
|
4620
|
-
peg$fail(peg$
|
|
4452
|
+
peg$fail(peg$e10);
|
|
4621
4453
|
}
|
|
4622
4454
|
}
|
|
4623
4455
|
if (s1 !== peg$FAILED) {
|
|
@@ -4640,7 +4472,7 @@ function peg$parse(input, options) {
|
|
|
4640
4472
|
s8 = peg$parseFunctionArgValue();
|
|
4641
4473
|
if (s8 !== peg$FAILED) {
|
|
4642
4474
|
peg$savedPos = s5;
|
|
4643
|
-
s5 = peg$
|
|
4475
|
+
s5 = peg$f12(s6, s8);
|
|
4644
4476
|
} else {
|
|
4645
4477
|
peg$currPos = s5;
|
|
4646
4478
|
s5 = peg$FAILED;
|
|
@@ -4662,12 +4494,12 @@ function peg$parse(input, options) {
|
|
|
4662
4494
|
s6 = peg$currPos;
|
|
4663
4495
|
s7 = peg$parse_valWs();
|
|
4664
4496
|
if (input.charCodeAt(peg$currPos) === 44) {
|
|
4665
|
-
s8 = peg$
|
|
4497
|
+
s8 = peg$c6;
|
|
4666
4498
|
peg$currPos++;
|
|
4667
4499
|
} else {
|
|
4668
4500
|
s8 = peg$FAILED;
|
|
4669
4501
|
if (peg$silentFails === 0) {
|
|
4670
|
-
peg$fail(peg$
|
|
4502
|
+
peg$fail(peg$e11);
|
|
4671
4503
|
}
|
|
4672
4504
|
}
|
|
4673
4505
|
if (s8 !== peg$FAILED) {
|
|
@@ -4695,7 +4527,7 @@ function peg$parse(input, options) {
|
|
|
4695
4527
|
s9 = peg$parseFunctionArgValue();
|
|
4696
4528
|
if (s9 !== peg$FAILED) {
|
|
4697
4529
|
peg$savedPos = s6;
|
|
4698
|
-
s6 = peg$
|
|
4530
|
+
s6 = peg$f12(s7, s9);
|
|
4699
4531
|
} else {
|
|
4700
4532
|
peg$currPos = s6;
|
|
4701
4533
|
s6 = peg$FAILED;
|
|
@@ -4733,12 +4565,12 @@ function peg$parse(input, options) {
|
|
|
4733
4565
|
s4 = peg$currPos;
|
|
4734
4566
|
s5 = peg$parse_valWs();
|
|
4735
4567
|
if (input.charCodeAt(peg$currPos) === 44) {
|
|
4736
|
-
s6 = peg$
|
|
4568
|
+
s6 = peg$c6;
|
|
4737
4569
|
peg$currPos++;
|
|
4738
4570
|
} else {
|
|
4739
4571
|
s6 = peg$FAILED;
|
|
4740
4572
|
if (peg$silentFails === 0) {
|
|
4741
|
-
peg$fail(peg$
|
|
4573
|
+
peg$fail(peg$e11);
|
|
4742
4574
|
}
|
|
4743
4575
|
}
|
|
4744
4576
|
if (s6 !== peg$FAILED) {
|
|
@@ -4753,17 +4585,17 @@ function peg$parse(input, options) {
|
|
|
4753
4585
|
}
|
|
4754
4586
|
s5 = peg$parse_valWs();
|
|
4755
4587
|
if (input.charCodeAt(peg$currPos) === 41) {
|
|
4756
|
-
s6 = peg$
|
|
4588
|
+
s6 = peg$c7;
|
|
4757
4589
|
peg$currPos++;
|
|
4758
4590
|
} else {
|
|
4759
4591
|
s6 = peg$FAILED;
|
|
4760
4592
|
if (peg$silentFails === 0) {
|
|
4761
|
-
peg$fail(peg$
|
|
4593
|
+
peg$fail(peg$e12);
|
|
4762
4594
|
}
|
|
4763
4595
|
}
|
|
4764
4596
|
if (s6 !== peg$FAILED) {
|
|
4765
4597
|
peg$savedPos = s0;
|
|
4766
|
-
s0 = peg$
|
|
4598
|
+
s0 = peg$f13(s3);
|
|
4767
4599
|
} else {
|
|
4768
4600
|
peg$currPos = s0;
|
|
4769
4601
|
s0 = peg$FAILED;
|
|
@@ -4792,23 +4624,23 @@ function peg$parse(input, options) {
|
|
|
4792
4624
|
if (s2 !== peg$FAILED) {
|
|
4793
4625
|
s3 = [];
|
|
4794
4626
|
s4 = input.charAt(peg$currPos);
|
|
4795
|
-
if (peg$
|
|
4627
|
+
if (peg$r7.test(s4)) {
|
|
4796
4628
|
peg$currPos++;
|
|
4797
4629
|
} else {
|
|
4798
4630
|
s4 = peg$FAILED;
|
|
4799
4631
|
if (peg$silentFails === 0) {
|
|
4800
|
-
peg$fail(peg$
|
|
4632
|
+
peg$fail(peg$e15);
|
|
4801
4633
|
}
|
|
4802
4634
|
}
|
|
4803
4635
|
while (s4 !== peg$FAILED) {
|
|
4804
4636
|
s3.push(s4);
|
|
4805
4637
|
s4 = input.charAt(peg$currPos);
|
|
4806
|
-
if (peg$
|
|
4638
|
+
if (peg$r7.test(s4)) {
|
|
4807
4639
|
peg$currPos++;
|
|
4808
4640
|
} else {
|
|
4809
4641
|
s4 = peg$FAILED;
|
|
4810
4642
|
if (peg$silentFails === 0) {
|
|
4811
|
-
peg$fail(peg$
|
|
4643
|
+
peg$fail(peg$e15);
|
|
4812
4644
|
}
|
|
4813
4645
|
}
|
|
4814
4646
|
}
|
|
@@ -4837,24 +4669,24 @@ function peg$parse(input, options) {
|
|
|
4837
4669
|
s1 = peg$currPos;
|
|
4838
4670
|
s2 = [];
|
|
4839
4671
|
s3 = input.charAt(peg$currPos);
|
|
4840
|
-
if (peg$
|
|
4672
|
+
if (peg$r5.test(s3)) {
|
|
4841
4673
|
peg$currPos++;
|
|
4842
4674
|
} else {
|
|
4843
4675
|
s3 = peg$FAILED;
|
|
4844
4676
|
if (peg$silentFails === 0) {
|
|
4845
|
-
peg$fail(peg$
|
|
4677
|
+
peg$fail(peg$e13);
|
|
4846
4678
|
}
|
|
4847
4679
|
}
|
|
4848
4680
|
if (s3 !== peg$FAILED) {
|
|
4849
4681
|
while (s3 !== peg$FAILED) {
|
|
4850
4682
|
s2.push(s3);
|
|
4851
4683
|
s3 = input.charAt(peg$currPos);
|
|
4852
|
-
if (peg$
|
|
4684
|
+
if (peg$r5.test(s3)) {
|
|
4853
4685
|
peg$currPos++;
|
|
4854
4686
|
} else {
|
|
4855
4687
|
s3 = peg$FAILED;
|
|
4856
4688
|
if (peg$silentFails === 0) {
|
|
4857
|
-
peg$fail(peg$
|
|
4689
|
+
peg$fail(peg$e13);
|
|
4858
4690
|
}
|
|
4859
4691
|
}
|
|
4860
4692
|
}
|
|
@@ -4868,7 +4700,7 @@ function peg$parse(input, options) {
|
|
|
4868
4700
|
}
|
|
4869
4701
|
if (s1 !== peg$FAILED) {
|
|
4870
4702
|
peg$savedPos = s0;
|
|
4871
|
-
s1 = peg$
|
|
4703
|
+
s1 = peg$f14();
|
|
4872
4704
|
}
|
|
4873
4705
|
s0 = s1;
|
|
4874
4706
|
}
|
|
@@ -4886,7 +4718,7 @@ function peg$parse(input, options) {
|
|
|
4886
4718
|
} else {
|
|
4887
4719
|
s1 = peg$FAILED;
|
|
4888
4720
|
if (peg$silentFails === 0) {
|
|
4889
|
-
peg$fail(peg$
|
|
4721
|
+
peg$fail(peg$e16);
|
|
4890
4722
|
}
|
|
4891
4723
|
}
|
|
4892
4724
|
while (s1 !== peg$FAILED) {
|
|
@@ -4897,7 +4729,7 @@ function peg$parse(input, options) {
|
|
|
4897
4729
|
} else {
|
|
4898
4730
|
s1 = peg$FAILED;
|
|
4899
4731
|
if (peg$silentFails === 0) {
|
|
4900
|
-
peg$fail(peg$
|
|
4732
|
+
peg$fail(peg$e16);
|
|
4901
4733
|
}
|
|
4902
4734
|
}
|
|
4903
4735
|
}
|
|
@@ -4931,7 +4763,7 @@ function peg$parse(input, options) {
|
|
|
4931
4763
|
} else {
|
|
4932
4764
|
s7 = peg$FAILED;
|
|
4933
4765
|
if (peg$silentFails === 0) {
|
|
4934
|
-
peg$fail(peg$
|
|
4766
|
+
peg$fail(peg$e17);
|
|
4935
4767
|
}
|
|
4936
4768
|
}
|
|
4937
4769
|
while (s7 !== peg$FAILED) {
|
|
@@ -4942,7 +4774,7 @@ function peg$parse(input, options) {
|
|
|
4942
4774
|
} else {
|
|
4943
4775
|
s7 = peg$FAILED;
|
|
4944
4776
|
if (peg$silentFails === 0) {
|
|
4945
|
-
peg$fail(peg$
|
|
4777
|
+
peg$fail(peg$e17);
|
|
4946
4778
|
}
|
|
4947
4779
|
}
|
|
4948
4780
|
}
|
|
@@ -4990,7 +4822,7 @@ function peg$parse(input, options) {
|
|
|
4990
4822
|
s4 = peg$parse_n();
|
|
4991
4823
|
if (s4 !== peg$FAILED) {
|
|
4992
4824
|
peg$savedPos = s0;
|
|
4993
|
-
s0 = peg$
|
|
4825
|
+
s0 = peg$f15(s2, s3);
|
|
4994
4826
|
} else {
|
|
4995
4827
|
peg$currPos = s0;
|
|
4996
4828
|
s0 = peg$FAILED;
|
|
@@ -5021,7 +4853,7 @@ function peg$parse(input, options) {
|
|
|
5021
4853
|
} else {
|
|
5022
4854
|
s5 = peg$FAILED;
|
|
5023
4855
|
if (peg$silentFails === 0) {
|
|
5024
|
-
peg$fail(peg$
|
|
4856
|
+
peg$fail(peg$e18);
|
|
5025
4857
|
}
|
|
5026
4858
|
}
|
|
5027
4859
|
peg$silentFails--;
|
|
@@ -5039,7 +4871,7 @@ function peg$parse(input, options) {
|
|
|
5039
4871
|
} else {
|
|
5040
4872
|
s6 = peg$FAILED;
|
|
5041
4873
|
if (peg$silentFails === 0) {
|
|
5042
|
-
peg$fail(peg$
|
|
4874
|
+
peg$fail(peg$e19);
|
|
5043
4875
|
}
|
|
5044
4876
|
}
|
|
5045
4877
|
if (s6 !== peg$FAILED) {
|
|
@@ -5051,7 +4883,7 @@ function peg$parse(input, options) {
|
|
|
5051
4883
|
} else {
|
|
5052
4884
|
s6 = peg$FAILED;
|
|
5053
4885
|
if (peg$silentFails === 0) {
|
|
5054
|
-
peg$fail(peg$
|
|
4886
|
+
peg$fail(peg$e19);
|
|
5055
4887
|
}
|
|
5056
4888
|
}
|
|
5057
4889
|
}
|
|
@@ -5076,7 +4908,7 @@ function peg$parse(input, options) {
|
|
|
5076
4908
|
}
|
|
5077
4909
|
if (s1 !== peg$FAILED) {
|
|
5078
4910
|
peg$savedPos = s0;
|
|
5079
|
-
s1 = peg$
|
|
4911
|
+
s1 = peg$f16();
|
|
5080
4912
|
}
|
|
5081
4913
|
s0 = s1;
|
|
5082
4914
|
return s0;
|
|
@@ -5096,7 +4928,7 @@ function peg$parse(input, options) {
|
|
|
5096
4928
|
} else {
|
|
5097
4929
|
s4 = peg$FAILED;
|
|
5098
4930
|
if (peg$silentFails === 0) {
|
|
5099
|
-
peg$fail(peg$
|
|
4931
|
+
peg$fail(peg$e18);
|
|
5100
4932
|
}
|
|
5101
4933
|
}
|
|
5102
4934
|
peg$silentFails--;
|
|
@@ -5114,7 +4946,7 @@ function peg$parse(input, options) {
|
|
|
5114
4946
|
} else {
|
|
5115
4947
|
s5 = peg$FAILED;
|
|
5116
4948
|
if (peg$silentFails === 0) {
|
|
5117
|
-
peg$fail(peg$
|
|
4949
|
+
peg$fail(peg$e20);
|
|
5118
4950
|
}
|
|
5119
4951
|
}
|
|
5120
4952
|
if (s5 !== peg$FAILED) {
|
|
@@ -5126,7 +4958,7 @@ function peg$parse(input, options) {
|
|
|
5126
4958
|
} else {
|
|
5127
4959
|
s5 = peg$FAILED;
|
|
5128
4960
|
if (peg$silentFails === 0) {
|
|
5129
|
-
peg$fail(peg$
|
|
4961
|
+
peg$fail(peg$e20);
|
|
5130
4962
|
}
|
|
5131
4963
|
}
|
|
5132
4964
|
}
|
|
@@ -5151,7 +4983,7 @@ function peg$parse(input, options) {
|
|
|
5151
4983
|
}
|
|
5152
4984
|
if (s1 !== peg$FAILED) {
|
|
5153
4985
|
peg$savedPos = s0;
|
|
5154
|
-
s1 = peg$
|
|
4986
|
+
s1 = peg$f17();
|
|
5155
4987
|
}
|
|
5156
4988
|
s0 = s1;
|
|
5157
4989
|
return s0;
|
|
@@ -5180,18 +5012,18 @@ function peg$parse(input, options) {
|
|
|
5180
5012
|
} else {
|
|
5181
5013
|
s1 = peg$FAILED;
|
|
5182
5014
|
if (peg$silentFails === 0) {
|
|
5183
|
-
peg$fail(peg$
|
|
5015
|
+
peg$fail(peg$e21);
|
|
5184
5016
|
}
|
|
5185
5017
|
}
|
|
5186
5018
|
if (s1 !== peg$FAILED) {
|
|
5187
5019
|
s2 = [];
|
|
5188
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5189
|
-
s3 = peg$
|
|
5020
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5021
|
+
s3 = peg$c8;
|
|
5190
5022
|
peg$currPos += 2;
|
|
5191
5023
|
} else {
|
|
5192
5024
|
s3 = peg$FAILED;
|
|
5193
5025
|
if (peg$silentFails === 0) {
|
|
5194
|
-
peg$fail(peg$
|
|
5026
|
+
peg$fail(peg$e22);
|
|
5195
5027
|
}
|
|
5196
5028
|
}
|
|
5197
5029
|
if (s3 === peg$FAILED) {
|
|
@@ -5201,19 +5033,19 @@ function peg$parse(input, options) {
|
|
|
5201
5033
|
} else {
|
|
5202
5034
|
s3 = peg$FAILED;
|
|
5203
5035
|
if (peg$silentFails === 0) {
|
|
5204
|
-
peg$fail(peg$
|
|
5036
|
+
peg$fail(peg$e23);
|
|
5205
5037
|
}
|
|
5206
5038
|
}
|
|
5207
5039
|
}
|
|
5208
5040
|
while (s3 !== peg$FAILED) {
|
|
5209
5041
|
s2.push(s3);
|
|
5210
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5211
|
-
s3 = peg$
|
|
5042
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5043
|
+
s3 = peg$c8;
|
|
5212
5044
|
peg$currPos += 2;
|
|
5213
5045
|
} else {
|
|
5214
5046
|
s3 = peg$FAILED;
|
|
5215
5047
|
if (peg$silentFails === 0) {
|
|
5216
|
-
peg$fail(peg$
|
|
5048
|
+
peg$fail(peg$e22);
|
|
5217
5049
|
}
|
|
5218
5050
|
}
|
|
5219
5051
|
if (s3 === peg$FAILED) {
|
|
@@ -5223,7 +5055,7 @@ function peg$parse(input, options) {
|
|
|
5223
5055
|
} else {
|
|
5224
5056
|
s3 = peg$FAILED;
|
|
5225
5057
|
if (peg$silentFails === 0) {
|
|
5226
|
-
peg$fail(peg$
|
|
5058
|
+
peg$fail(peg$e23);
|
|
5227
5059
|
}
|
|
5228
5060
|
}
|
|
5229
5061
|
}
|
|
@@ -5234,12 +5066,12 @@ function peg$parse(input, options) {
|
|
|
5234
5066
|
} else {
|
|
5235
5067
|
s3 = peg$FAILED;
|
|
5236
5068
|
if (peg$silentFails === 0) {
|
|
5237
|
-
peg$fail(peg$
|
|
5069
|
+
peg$fail(peg$e21);
|
|
5238
5070
|
}
|
|
5239
5071
|
}
|
|
5240
5072
|
if (s3 !== peg$FAILED) {
|
|
5241
5073
|
peg$savedPos = s0;
|
|
5242
|
-
s0 = peg$
|
|
5074
|
+
s0 = peg$f18(s1);
|
|
5243
5075
|
} else {
|
|
5244
5076
|
peg$currPos = s0;
|
|
5245
5077
|
s0 = peg$FAILED;
|
|
@@ -5261,18 +5093,18 @@ function peg$parse(input, options) {
|
|
|
5261
5093
|
} else {
|
|
5262
5094
|
s1 = peg$FAILED;
|
|
5263
5095
|
if (peg$silentFails === 0) {
|
|
5264
|
-
peg$fail(peg$
|
|
5096
|
+
peg$fail(peg$e24);
|
|
5265
5097
|
}
|
|
5266
5098
|
}
|
|
5267
5099
|
if (s1 !== peg$FAILED) {
|
|
5268
5100
|
s2 = [];
|
|
5269
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5270
|
-
s3 = peg$
|
|
5101
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5102
|
+
s3 = peg$c9;
|
|
5271
5103
|
peg$currPos += 2;
|
|
5272
5104
|
} else {
|
|
5273
5105
|
s3 = peg$FAILED;
|
|
5274
5106
|
if (peg$silentFails === 0) {
|
|
5275
|
-
peg$fail(peg$
|
|
5107
|
+
peg$fail(peg$e25);
|
|
5276
5108
|
}
|
|
5277
5109
|
}
|
|
5278
5110
|
if (s3 === peg$FAILED) {
|
|
@@ -5282,19 +5114,19 @@ function peg$parse(input, options) {
|
|
|
5282
5114
|
} else {
|
|
5283
5115
|
s3 = peg$FAILED;
|
|
5284
5116
|
if (peg$silentFails === 0) {
|
|
5285
|
-
peg$fail(peg$
|
|
5117
|
+
peg$fail(peg$e26);
|
|
5286
5118
|
}
|
|
5287
5119
|
}
|
|
5288
5120
|
}
|
|
5289
5121
|
while (s3 !== peg$FAILED) {
|
|
5290
5122
|
s2.push(s3);
|
|
5291
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5292
|
-
s3 = peg$
|
|
5123
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5124
|
+
s3 = peg$c9;
|
|
5293
5125
|
peg$currPos += 2;
|
|
5294
5126
|
} else {
|
|
5295
5127
|
s3 = peg$FAILED;
|
|
5296
5128
|
if (peg$silentFails === 0) {
|
|
5297
|
-
peg$fail(peg$
|
|
5129
|
+
peg$fail(peg$e25);
|
|
5298
5130
|
}
|
|
5299
5131
|
}
|
|
5300
5132
|
if (s3 === peg$FAILED) {
|
|
@@ -5304,7 +5136,7 @@ function peg$parse(input, options) {
|
|
|
5304
5136
|
} else {
|
|
5305
5137
|
s3 = peg$FAILED;
|
|
5306
5138
|
if (peg$silentFails === 0) {
|
|
5307
|
-
peg$fail(peg$
|
|
5139
|
+
peg$fail(peg$e26);
|
|
5308
5140
|
}
|
|
5309
5141
|
}
|
|
5310
5142
|
}
|
|
@@ -5315,12 +5147,12 @@ function peg$parse(input, options) {
|
|
|
5315
5147
|
} else {
|
|
5316
5148
|
s3 = peg$FAILED;
|
|
5317
5149
|
if (peg$silentFails === 0) {
|
|
5318
|
-
peg$fail(peg$
|
|
5150
|
+
peg$fail(peg$e24);
|
|
5319
5151
|
}
|
|
5320
5152
|
}
|
|
5321
5153
|
if (s3 !== peg$FAILED) {
|
|
5322
5154
|
peg$savedPos = s0;
|
|
5323
|
-
s0 = peg$
|
|
5155
|
+
s0 = peg$f19(s1);
|
|
5324
5156
|
} else {
|
|
5325
5157
|
peg$currPos = s0;
|
|
5326
5158
|
s0 = peg$FAILED;
|
|
@@ -5342,18 +5174,18 @@ function peg$parse(input, options) {
|
|
|
5342
5174
|
} else {
|
|
5343
5175
|
s1 = peg$FAILED;
|
|
5344
5176
|
if (peg$silentFails === 0) {
|
|
5345
|
-
peg$fail(peg$
|
|
5177
|
+
peg$fail(peg$e27);
|
|
5346
5178
|
}
|
|
5347
5179
|
}
|
|
5348
5180
|
if (s1 !== peg$FAILED) {
|
|
5349
5181
|
s2 = [];
|
|
5350
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5351
|
-
s3 = peg$
|
|
5182
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
5183
|
+
s3 = peg$c10;
|
|
5352
5184
|
peg$currPos += 2;
|
|
5353
5185
|
} else {
|
|
5354
5186
|
s3 = peg$FAILED;
|
|
5355
5187
|
if (peg$silentFails === 0) {
|
|
5356
|
-
peg$fail(peg$
|
|
5188
|
+
peg$fail(peg$e28);
|
|
5357
5189
|
}
|
|
5358
5190
|
}
|
|
5359
5191
|
if (s3 === peg$FAILED) {
|
|
@@ -5363,19 +5195,19 @@ function peg$parse(input, options) {
|
|
|
5363
5195
|
} else {
|
|
5364
5196
|
s3 = peg$FAILED;
|
|
5365
5197
|
if (peg$silentFails === 0) {
|
|
5366
|
-
peg$fail(peg$
|
|
5198
|
+
peg$fail(peg$e29);
|
|
5367
5199
|
}
|
|
5368
5200
|
}
|
|
5369
5201
|
}
|
|
5370
5202
|
while (s3 !== peg$FAILED) {
|
|
5371
5203
|
s2.push(s3);
|
|
5372
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5373
|
-
s3 = peg$
|
|
5204
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
5205
|
+
s3 = peg$c10;
|
|
5374
5206
|
peg$currPos += 2;
|
|
5375
5207
|
} else {
|
|
5376
5208
|
s3 = peg$FAILED;
|
|
5377
5209
|
if (peg$silentFails === 0) {
|
|
5378
|
-
peg$fail(peg$
|
|
5210
|
+
peg$fail(peg$e28);
|
|
5379
5211
|
}
|
|
5380
5212
|
}
|
|
5381
5213
|
if (s3 === peg$FAILED) {
|
|
@@ -5385,7 +5217,7 @@ function peg$parse(input, options) {
|
|
|
5385
5217
|
} else {
|
|
5386
5218
|
s3 = peg$FAILED;
|
|
5387
5219
|
if (peg$silentFails === 0) {
|
|
5388
|
-
peg$fail(peg$
|
|
5220
|
+
peg$fail(peg$e29);
|
|
5389
5221
|
}
|
|
5390
5222
|
}
|
|
5391
5223
|
}
|
|
@@ -5396,12 +5228,12 @@ function peg$parse(input, options) {
|
|
|
5396
5228
|
} else {
|
|
5397
5229
|
s3 = peg$FAILED;
|
|
5398
5230
|
if (peg$silentFails === 0) {
|
|
5399
|
-
peg$fail(peg$
|
|
5231
|
+
peg$fail(peg$e27);
|
|
5400
5232
|
}
|
|
5401
5233
|
}
|
|
5402
5234
|
if (s3 !== peg$FAILED) {
|
|
5403
5235
|
peg$savedPos = s0;
|
|
5404
|
-
s0 = peg$
|
|
5236
|
+
s0 = peg$f20(s1);
|
|
5405
5237
|
} else {
|
|
5406
5238
|
peg$currPos = s0;
|
|
5407
5239
|
s0 = peg$FAILED;
|
|
@@ -5439,20 +5271,20 @@ function peg$parse(input, options) {
|
|
|
5439
5271
|
} else {
|
|
5440
5272
|
s1 = peg$FAILED;
|
|
5441
5273
|
if (peg$silentFails === 0) {
|
|
5442
|
-
peg$fail(peg$
|
|
5274
|
+
peg$fail(peg$e24);
|
|
5443
5275
|
}
|
|
5444
5276
|
}
|
|
5445
5277
|
if (s1 !== peg$FAILED) {
|
|
5446
5278
|
s2 = [];
|
|
5447
5279
|
s3 = peg$currPos;
|
|
5448
5280
|
s4 = [];
|
|
5449
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5450
|
-
s5 = peg$
|
|
5281
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5282
|
+
s5 = peg$c9;
|
|
5451
5283
|
peg$currPos += 2;
|
|
5452
5284
|
} else {
|
|
5453
5285
|
s5 = peg$FAILED;
|
|
5454
5286
|
if (peg$silentFails === 0) {
|
|
5455
|
-
peg$fail(peg$
|
|
5287
|
+
peg$fail(peg$e25);
|
|
5456
5288
|
}
|
|
5457
5289
|
}
|
|
5458
5290
|
if (s5 === peg$FAILED) {
|
|
@@ -5462,19 +5294,19 @@ function peg$parse(input, options) {
|
|
|
5462
5294
|
} else {
|
|
5463
5295
|
s5 = peg$FAILED;
|
|
5464
5296
|
if (peg$silentFails === 0) {
|
|
5465
|
-
peg$fail(peg$
|
|
5297
|
+
peg$fail(peg$e26);
|
|
5466
5298
|
}
|
|
5467
5299
|
}
|
|
5468
5300
|
}
|
|
5469
5301
|
while (s5 !== peg$FAILED) {
|
|
5470
5302
|
s4.push(s5);
|
|
5471
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5472
|
-
s5 = peg$
|
|
5303
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5304
|
+
s5 = peg$c9;
|
|
5473
5305
|
peg$currPos += 2;
|
|
5474
5306
|
} else {
|
|
5475
5307
|
s5 = peg$FAILED;
|
|
5476
5308
|
if (peg$silentFails === 0) {
|
|
5477
|
-
peg$fail(peg$
|
|
5309
|
+
peg$fail(peg$e25);
|
|
5478
5310
|
}
|
|
5479
5311
|
}
|
|
5480
5312
|
if (s5 === peg$FAILED) {
|
|
@@ -5484,7 +5316,7 @@ function peg$parse(input, options) {
|
|
|
5484
5316
|
} else {
|
|
5485
5317
|
s5 = peg$FAILED;
|
|
5486
5318
|
if (peg$silentFails === 0) {
|
|
5487
|
-
peg$fail(peg$
|
|
5319
|
+
peg$fail(peg$e26);
|
|
5488
5320
|
}
|
|
5489
5321
|
}
|
|
5490
5322
|
}
|
|
@@ -5510,13 +5342,13 @@ function peg$parse(input, options) {
|
|
|
5510
5342
|
s2.push(s3);
|
|
5511
5343
|
s3 = peg$currPos;
|
|
5512
5344
|
s4 = [];
|
|
5513
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5514
|
-
s5 = peg$
|
|
5345
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5346
|
+
s5 = peg$c9;
|
|
5515
5347
|
peg$currPos += 2;
|
|
5516
5348
|
} else {
|
|
5517
5349
|
s5 = peg$FAILED;
|
|
5518
5350
|
if (peg$silentFails === 0) {
|
|
5519
|
-
peg$fail(peg$
|
|
5351
|
+
peg$fail(peg$e25);
|
|
5520
5352
|
}
|
|
5521
5353
|
}
|
|
5522
5354
|
if (s5 === peg$FAILED) {
|
|
@@ -5526,19 +5358,19 @@ function peg$parse(input, options) {
|
|
|
5526
5358
|
} else {
|
|
5527
5359
|
s5 = peg$FAILED;
|
|
5528
5360
|
if (peg$silentFails === 0) {
|
|
5529
|
-
peg$fail(peg$
|
|
5361
|
+
peg$fail(peg$e26);
|
|
5530
5362
|
}
|
|
5531
5363
|
}
|
|
5532
5364
|
}
|
|
5533
5365
|
while (s5 !== peg$FAILED) {
|
|
5534
5366
|
s4.push(s5);
|
|
5535
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5536
|
-
s5 = peg$
|
|
5367
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5368
|
+
s5 = peg$c9;
|
|
5537
5369
|
peg$currPos += 2;
|
|
5538
5370
|
} else {
|
|
5539
5371
|
s5 = peg$FAILED;
|
|
5540
5372
|
if (peg$silentFails === 0) {
|
|
5541
|
-
peg$fail(peg$
|
|
5373
|
+
peg$fail(peg$e25);
|
|
5542
5374
|
}
|
|
5543
5375
|
}
|
|
5544
5376
|
if (s5 === peg$FAILED) {
|
|
@@ -5548,7 +5380,7 @@ function peg$parse(input, options) {
|
|
|
5548
5380
|
} else {
|
|
5549
5381
|
s5 = peg$FAILED;
|
|
5550
5382
|
if (peg$silentFails === 0) {
|
|
5551
|
-
peg$fail(peg$
|
|
5383
|
+
peg$fail(peg$e26);
|
|
5552
5384
|
}
|
|
5553
5385
|
}
|
|
5554
5386
|
}
|
|
@@ -5575,13 +5407,13 @@ function peg$parse(input, options) {
|
|
|
5575
5407
|
}
|
|
5576
5408
|
if (s2 !== peg$FAILED) {
|
|
5577
5409
|
s3 = [];
|
|
5578
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5579
|
-
s4 = peg$
|
|
5410
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5411
|
+
s4 = peg$c9;
|
|
5580
5412
|
peg$currPos += 2;
|
|
5581
5413
|
} else {
|
|
5582
5414
|
s4 = peg$FAILED;
|
|
5583
5415
|
if (peg$silentFails === 0) {
|
|
5584
|
-
peg$fail(peg$
|
|
5416
|
+
peg$fail(peg$e25);
|
|
5585
5417
|
}
|
|
5586
5418
|
}
|
|
5587
5419
|
if (s4 === peg$FAILED) {
|
|
@@ -5591,19 +5423,19 @@ function peg$parse(input, options) {
|
|
|
5591
5423
|
} else {
|
|
5592
5424
|
s4 = peg$FAILED;
|
|
5593
5425
|
if (peg$silentFails === 0) {
|
|
5594
|
-
peg$fail(peg$
|
|
5426
|
+
peg$fail(peg$e26);
|
|
5595
5427
|
}
|
|
5596
5428
|
}
|
|
5597
5429
|
}
|
|
5598
5430
|
while (s4 !== peg$FAILED) {
|
|
5599
5431
|
s3.push(s4);
|
|
5600
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5601
|
-
s4 = peg$
|
|
5432
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
5433
|
+
s4 = peg$c9;
|
|
5602
5434
|
peg$currPos += 2;
|
|
5603
5435
|
} else {
|
|
5604
5436
|
s4 = peg$FAILED;
|
|
5605
5437
|
if (peg$silentFails === 0) {
|
|
5606
|
-
peg$fail(peg$
|
|
5438
|
+
peg$fail(peg$e25);
|
|
5607
5439
|
}
|
|
5608
5440
|
}
|
|
5609
5441
|
if (s4 === peg$FAILED) {
|
|
@@ -5613,7 +5445,7 @@ function peg$parse(input, options) {
|
|
|
5613
5445
|
} else {
|
|
5614
5446
|
s4 = peg$FAILED;
|
|
5615
5447
|
if (peg$silentFails === 0) {
|
|
5616
|
-
peg$fail(peg$
|
|
5448
|
+
peg$fail(peg$e26);
|
|
5617
5449
|
}
|
|
5618
5450
|
}
|
|
5619
5451
|
}
|
|
@@ -5624,12 +5456,12 @@ function peg$parse(input, options) {
|
|
|
5624
5456
|
} else {
|
|
5625
5457
|
s4 = peg$FAILED;
|
|
5626
5458
|
if (peg$silentFails === 0) {
|
|
5627
|
-
peg$fail(peg$
|
|
5459
|
+
peg$fail(peg$e24);
|
|
5628
5460
|
}
|
|
5629
5461
|
}
|
|
5630
5462
|
if (s4 !== peg$FAILED) {
|
|
5631
5463
|
peg$savedPos = s0;
|
|
5632
|
-
s0 = peg$
|
|
5464
|
+
s0 = peg$f21(s1);
|
|
5633
5465
|
} else {
|
|
5634
5466
|
peg$currPos = s0;
|
|
5635
5467
|
s0 = peg$FAILED;
|
|
@@ -5655,20 +5487,20 @@ function peg$parse(input, options) {
|
|
|
5655
5487
|
} else {
|
|
5656
5488
|
s1 = peg$FAILED;
|
|
5657
5489
|
if (peg$silentFails === 0) {
|
|
5658
|
-
peg$fail(peg$
|
|
5490
|
+
peg$fail(peg$e21);
|
|
5659
5491
|
}
|
|
5660
5492
|
}
|
|
5661
5493
|
if (s1 !== peg$FAILED) {
|
|
5662
5494
|
s2 = [];
|
|
5663
5495
|
s3 = peg$currPos;
|
|
5664
5496
|
s4 = [];
|
|
5665
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5666
|
-
s5 = peg$
|
|
5497
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5498
|
+
s5 = peg$c8;
|
|
5667
5499
|
peg$currPos += 2;
|
|
5668
5500
|
} else {
|
|
5669
5501
|
s5 = peg$FAILED;
|
|
5670
5502
|
if (peg$silentFails === 0) {
|
|
5671
|
-
peg$fail(peg$
|
|
5503
|
+
peg$fail(peg$e22);
|
|
5672
5504
|
}
|
|
5673
5505
|
}
|
|
5674
5506
|
if (s5 === peg$FAILED) {
|
|
@@ -5678,19 +5510,19 @@ function peg$parse(input, options) {
|
|
|
5678
5510
|
} else {
|
|
5679
5511
|
s5 = peg$FAILED;
|
|
5680
5512
|
if (peg$silentFails === 0) {
|
|
5681
|
-
peg$fail(peg$
|
|
5513
|
+
peg$fail(peg$e23);
|
|
5682
5514
|
}
|
|
5683
5515
|
}
|
|
5684
5516
|
}
|
|
5685
5517
|
while (s5 !== peg$FAILED) {
|
|
5686
5518
|
s4.push(s5);
|
|
5687
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5688
|
-
s5 = peg$
|
|
5519
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5520
|
+
s5 = peg$c8;
|
|
5689
5521
|
peg$currPos += 2;
|
|
5690
5522
|
} else {
|
|
5691
5523
|
s5 = peg$FAILED;
|
|
5692
5524
|
if (peg$silentFails === 0) {
|
|
5693
|
-
peg$fail(peg$
|
|
5525
|
+
peg$fail(peg$e22);
|
|
5694
5526
|
}
|
|
5695
5527
|
}
|
|
5696
5528
|
if (s5 === peg$FAILED) {
|
|
@@ -5700,7 +5532,7 @@ function peg$parse(input, options) {
|
|
|
5700
5532
|
} else {
|
|
5701
5533
|
s5 = peg$FAILED;
|
|
5702
5534
|
if (peg$silentFails === 0) {
|
|
5703
|
-
peg$fail(peg$
|
|
5535
|
+
peg$fail(peg$e23);
|
|
5704
5536
|
}
|
|
5705
5537
|
}
|
|
5706
5538
|
}
|
|
@@ -5726,13 +5558,13 @@ function peg$parse(input, options) {
|
|
|
5726
5558
|
s2.push(s3);
|
|
5727
5559
|
s3 = peg$currPos;
|
|
5728
5560
|
s4 = [];
|
|
5729
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5730
|
-
s5 = peg$
|
|
5561
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5562
|
+
s5 = peg$c8;
|
|
5731
5563
|
peg$currPos += 2;
|
|
5732
5564
|
} else {
|
|
5733
5565
|
s5 = peg$FAILED;
|
|
5734
5566
|
if (peg$silentFails === 0) {
|
|
5735
|
-
peg$fail(peg$
|
|
5567
|
+
peg$fail(peg$e22);
|
|
5736
5568
|
}
|
|
5737
5569
|
}
|
|
5738
5570
|
if (s5 === peg$FAILED) {
|
|
@@ -5742,19 +5574,19 @@ function peg$parse(input, options) {
|
|
|
5742
5574
|
} else {
|
|
5743
5575
|
s5 = peg$FAILED;
|
|
5744
5576
|
if (peg$silentFails === 0) {
|
|
5745
|
-
peg$fail(peg$
|
|
5577
|
+
peg$fail(peg$e23);
|
|
5746
5578
|
}
|
|
5747
5579
|
}
|
|
5748
5580
|
}
|
|
5749
5581
|
while (s5 !== peg$FAILED) {
|
|
5750
5582
|
s4.push(s5);
|
|
5751
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5752
|
-
s5 = peg$
|
|
5583
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5584
|
+
s5 = peg$c8;
|
|
5753
5585
|
peg$currPos += 2;
|
|
5754
5586
|
} else {
|
|
5755
5587
|
s5 = peg$FAILED;
|
|
5756
5588
|
if (peg$silentFails === 0) {
|
|
5757
|
-
peg$fail(peg$
|
|
5589
|
+
peg$fail(peg$e22);
|
|
5758
5590
|
}
|
|
5759
5591
|
}
|
|
5760
5592
|
if (s5 === peg$FAILED) {
|
|
@@ -5764,7 +5596,7 @@ function peg$parse(input, options) {
|
|
|
5764
5596
|
} else {
|
|
5765
5597
|
s5 = peg$FAILED;
|
|
5766
5598
|
if (peg$silentFails === 0) {
|
|
5767
|
-
peg$fail(peg$
|
|
5599
|
+
peg$fail(peg$e23);
|
|
5768
5600
|
}
|
|
5769
5601
|
}
|
|
5770
5602
|
}
|
|
@@ -5791,13 +5623,13 @@ function peg$parse(input, options) {
|
|
|
5791
5623
|
}
|
|
5792
5624
|
if (s2 !== peg$FAILED) {
|
|
5793
5625
|
s3 = [];
|
|
5794
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5795
|
-
s4 = peg$
|
|
5626
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5627
|
+
s4 = peg$c8;
|
|
5796
5628
|
peg$currPos += 2;
|
|
5797
5629
|
} else {
|
|
5798
5630
|
s4 = peg$FAILED;
|
|
5799
5631
|
if (peg$silentFails === 0) {
|
|
5800
|
-
peg$fail(peg$
|
|
5632
|
+
peg$fail(peg$e22);
|
|
5801
5633
|
}
|
|
5802
5634
|
}
|
|
5803
5635
|
if (s4 === peg$FAILED) {
|
|
@@ -5807,19 +5639,19 @@ function peg$parse(input, options) {
|
|
|
5807
5639
|
} else {
|
|
5808
5640
|
s4 = peg$FAILED;
|
|
5809
5641
|
if (peg$silentFails === 0) {
|
|
5810
|
-
peg$fail(peg$
|
|
5642
|
+
peg$fail(peg$e23);
|
|
5811
5643
|
}
|
|
5812
5644
|
}
|
|
5813
5645
|
}
|
|
5814
5646
|
while (s4 !== peg$FAILED) {
|
|
5815
5647
|
s3.push(s4);
|
|
5816
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5817
|
-
s4 = peg$
|
|
5648
|
+
if (input.substr(peg$currPos, 2) === peg$c8) {
|
|
5649
|
+
s4 = peg$c8;
|
|
5818
5650
|
peg$currPos += 2;
|
|
5819
5651
|
} else {
|
|
5820
5652
|
s4 = peg$FAILED;
|
|
5821
5653
|
if (peg$silentFails === 0) {
|
|
5822
|
-
peg$fail(peg$
|
|
5654
|
+
peg$fail(peg$e22);
|
|
5823
5655
|
}
|
|
5824
5656
|
}
|
|
5825
5657
|
if (s4 === peg$FAILED) {
|
|
@@ -5829,7 +5661,7 @@ function peg$parse(input, options) {
|
|
|
5829
5661
|
} else {
|
|
5830
5662
|
s4 = peg$FAILED;
|
|
5831
5663
|
if (peg$silentFails === 0) {
|
|
5832
|
-
peg$fail(peg$
|
|
5664
|
+
peg$fail(peg$e23);
|
|
5833
5665
|
}
|
|
5834
5666
|
}
|
|
5835
5667
|
}
|
|
@@ -5840,12 +5672,12 @@ function peg$parse(input, options) {
|
|
|
5840
5672
|
} else {
|
|
5841
5673
|
s4 = peg$FAILED;
|
|
5842
5674
|
if (peg$silentFails === 0) {
|
|
5843
|
-
peg$fail(peg$
|
|
5675
|
+
peg$fail(peg$e21);
|
|
5844
5676
|
}
|
|
5845
5677
|
}
|
|
5846
5678
|
if (s4 !== peg$FAILED) {
|
|
5847
5679
|
peg$savedPos = s0;
|
|
5848
|
-
s0 = peg$
|
|
5680
|
+
s0 = peg$f22(s1);
|
|
5849
5681
|
} else {
|
|
5850
5682
|
peg$currPos = s0;
|
|
5851
5683
|
s0 = peg$FAILED;
|
|
@@ -5865,39 +5697,39 @@ function peg$parse(input, options) {
|
|
|
5865
5697
|
function peg$parsetripleDQuotedMultiLineString() {
|
|
5866
5698
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
5867
5699
|
s0 = peg$currPos;
|
|
5868
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
5869
|
-
s1 = peg$
|
|
5700
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
5701
|
+
s1 = peg$c11;
|
|
5870
5702
|
peg$currPos += 3;
|
|
5871
5703
|
} else {
|
|
5872
5704
|
s1 = peg$FAILED;
|
|
5873
5705
|
if (peg$silentFails === 0) {
|
|
5874
|
-
peg$fail(peg$
|
|
5706
|
+
peg$fail(peg$e30);
|
|
5875
5707
|
}
|
|
5876
5708
|
}
|
|
5877
5709
|
if (s1 !== peg$FAILED) {
|
|
5878
5710
|
s2 = [];
|
|
5879
5711
|
s3 = peg$currPos;
|
|
5880
5712
|
s4 = [];
|
|
5881
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
5882
|
-
s5 = peg$
|
|
5713
|
+
if (input.substr(peg$currPos, 4) === peg$c12) {
|
|
5714
|
+
s5 = peg$c12;
|
|
5883
5715
|
peg$currPos += 4;
|
|
5884
5716
|
} else {
|
|
5885
5717
|
s5 = peg$FAILED;
|
|
5886
5718
|
if (peg$silentFails === 0) {
|
|
5887
|
-
peg$fail(peg$
|
|
5719
|
+
peg$fail(peg$e31);
|
|
5888
5720
|
}
|
|
5889
5721
|
}
|
|
5890
5722
|
if (s5 === peg$FAILED) {
|
|
5891
5723
|
s5 = peg$currPos;
|
|
5892
5724
|
s6 = peg$currPos;
|
|
5893
5725
|
peg$silentFails++;
|
|
5894
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
5895
|
-
s7 = peg$
|
|
5726
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
5727
|
+
s7 = peg$c11;
|
|
5896
5728
|
peg$currPos += 3;
|
|
5897
5729
|
} else {
|
|
5898
5730
|
s7 = peg$FAILED;
|
|
5899
5731
|
if (peg$silentFails === 0) {
|
|
5900
|
-
peg$fail(peg$
|
|
5732
|
+
peg$fail(peg$e30);
|
|
5901
5733
|
}
|
|
5902
5734
|
}
|
|
5903
5735
|
peg$silentFails--;
|
|
@@ -5931,26 +5763,26 @@ function peg$parse(input, options) {
|
|
|
5931
5763
|
}
|
|
5932
5764
|
while (s5 !== peg$FAILED) {
|
|
5933
5765
|
s4.push(s5);
|
|
5934
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
5935
|
-
s5 = peg$
|
|
5766
|
+
if (input.substr(peg$currPos, 4) === peg$c12) {
|
|
5767
|
+
s5 = peg$c12;
|
|
5936
5768
|
peg$currPos += 4;
|
|
5937
5769
|
} else {
|
|
5938
5770
|
s5 = peg$FAILED;
|
|
5939
5771
|
if (peg$silentFails === 0) {
|
|
5940
|
-
peg$fail(peg$
|
|
5772
|
+
peg$fail(peg$e31);
|
|
5941
5773
|
}
|
|
5942
5774
|
}
|
|
5943
5775
|
if (s5 === peg$FAILED) {
|
|
5944
5776
|
s5 = peg$currPos;
|
|
5945
5777
|
s6 = peg$currPos;
|
|
5946
5778
|
peg$silentFails++;
|
|
5947
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
5948
|
-
s7 = peg$
|
|
5779
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
5780
|
+
s7 = peg$c11;
|
|
5949
5781
|
peg$currPos += 3;
|
|
5950
5782
|
} else {
|
|
5951
5783
|
s7 = peg$FAILED;
|
|
5952
5784
|
if (peg$silentFails === 0) {
|
|
5953
|
-
peg$fail(peg$
|
|
5785
|
+
peg$fail(peg$e30);
|
|
5954
5786
|
}
|
|
5955
5787
|
}
|
|
5956
5788
|
peg$silentFails--;
|
|
@@ -6004,26 +5836,26 @@ function peg$parse(input, options) {
|
|
|
6004
5836
|
s2.push(s3);
|
|
6005
5837
|
s3 = peg$currPos;
|
|
6006
5838
|
s4 = [];
|
|
6007
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6008
|
-
s5 = peg$
|
|
5839
|
+
if (input.substr(peg$currPos, 4) === peg$c12) {
|
|
5840
|
+
s5 = peg$c12;
|
|
6009
5841
|
peg$currPos += 4;
|
|
6010
5842
|
} else {
|
|
6011
5843
|
s5 = peg$FAILED;
|
|
6012
5844
|
if (peg$silentFails === 0) {
|
|
6013
|
-
peg$fail(peg$
|
|
5845
|
+
peg$fail(peg$e31);
|
|
6014
5846
|
}
|
|
6015
5847
|
}
|
|
6016
5848
|
if (s5 === peg$FAILED) {
|
|
6017
5849
|
s5 = peg$currPos;
|
|
6018
5850
|
s6 = peg$currPos;
|
|
6019
5851
|
peg$silentFails++;
|
|
6020
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6021
|
-
s7 = peg$
|
|
5852
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
5853
|
+
s7 = peg$c11;
|
|
6022
5854
|
peg$currPos += 3;
|
|
6023
5855
|
} else {
|
|
6024
5856
|
s7 = peg$FAILED;
|
|
6025
5857
|
if (peg$silentFails === 0) {
|
|
6026
|
-
peg$fail(peg$
|
|
5858
|
+
peg$fail(peg$e30);
|
|
6027
5859
|
}
|
|
6028
5860
|
}
|
|
6029
5861
|
peg$silentFails--;
|
|
@@ -6057,26 +5889,26 @@ function peg$parse(input, options) {
|
|
|
6057
5889
|
}
|
|
6058
5890
|
while (s5 !== peg$FAILED) {
|
|
6059
5891
|
s4.push(s5);
|
|
6060
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6061
|
-
s5 = peg$
|
|
5892
|
+
if (input.substr(peg$currPos, 4) === peg$c12) {
|
|
5893
|
+
s5 = peg$c12;
|
|
6062
5894
|
peg$currPos += 4;
|
|
6063
5895
|
} else {
|
|
6064
5896
|
s5 = peg$FAILED;
|
|
6065
5897
|
if (peg$silentFails === 0) {
|
|
6066
|
-
peg$fail(peg$
|
|
5898
|
+
peg$fail(peg$e31);
|
|
6067
5899
|
}
|
|
6068
5900
|
}
|
|
6069
5901
|
if (s5 === peg$FAILED) {
|
|
6070
5902
|
s5 = peg$currPos;
|
|
6071
5903
|
s6 = peg$currPos;
|
|
6072
5904
|
peg$silentFails++;
|
|
6073
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6074
|
-
s7 = peg$
|
|
5905
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
5906
|
+
s7 = peg$c11;
|
|
6075
5907
|
peg$currPos += 3;
|
|
6076
5908
|
} else {
|
|
6077
5909
|
s7 = peg$FAILED;
|
|
6078
5910
|
if (peg$silentFails === 0) {
|
|
6079
|
-
peg$fail(peg$
|
|
5911
|
+
peg$fail(peg$e30);
|
|
6080
5912
|
}
|
|
6081
5913
|
}
|
|
6082
5914
|
peg$silentFails--;
|
|
@@ -6131,26 +5963,26 @@ function peg$parse(input, options) {
|
|
|
6131
5963
|
}
|
|
6132
5964
|
if (s2 !== peg$FAILED) {
|
|
6133
5965
|
s3 = [];
|
|
6134
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6135
|
-
s4 = peg$
|
|
5966
|
+
if (input.substr(peg$currPos, 4) === peg$c12) {
|
|
5967
|
+
s4 = peg$c12;
|
|
6136
5968
|
peg$currPos += 4;
|
|
6137
5969
|
} else {
|
|
6138
5970
|
s4 = peg$FAILED;
|
|
6139
5971
|
if (peg$silentFails === 0) {
|
|
6140
|
-
peg$fail(peg$
|
|
5972
|
+
peg$fail(peg$e31);
|
|
6141
5973
|
}
|
|
6142
5974
|
}
|
|
6143
5975
|
if (s4 === peg$FAILED) {
|
|
6144
5976
|
s4 = peg$currPos;
|
|
6145
5977
|
s5 = peg$currPos;
|
|
6146
5978
|
peg$silentFails++;
|
|
6147
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6148
|
-
s6 = peg$
|
|
5979
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
5980
|
+
s6 = peg$c11;
|
|
6149
5981
|
peg$currPos += 3;
|
|
6150
5982
|
} else {
|
|
6151
5983
|
s6 = peg$FAILED;
|
|
6152
5984
|
if (peg$silentFails === 0) {
|
|
6153
|
-
peg$fail(peg$
|
|
5985
|
+
peg$fail(peg$e30);
|
|
6154
5986
|
}
|
|
6155
5987
|
}
|
|
6156
5988
|
peg$silentFails--;
|
|
@@ -6184,26 +6016,26 @@ function peg$parse(input, options) {
|
|
|
6184
6016
|
}
|
|
6185
6017
|
while (s4 !== peg$FAILED) {
|
|
6186
6018
|
s3.push(s4);
|
|
6187
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6188
|
-
s4 = peg$
|
|
6019
|
+
if (input.substr(peg$currPos, 4) === peg$c12) {
|
|
6020
|
+
s4 = peg$c12;
|
|
6189
6021
|
peg$currPos += 4;
|
|
6190
6022
|
} else {
|
|
6191
6023
|
s4 = peg$FAILED;
|
|
6192
6024
|
if (peg$silentFails === 0) {
|
|
6193
|
-
peg$fail(peg$
|
|
6025
|
+
peg$fail(peg$e31);
|
|
6194
6026
|
}
|
|
6195
6027
|
}
|
|
6196
6028
|
if (s4 === peg$FAILED) {
|
|
6197
6029
|
s4 = peg$currPos;
|
|
6198
6030
|
s5 = peg$currPos;
|
|
6199
6031
|
peg$silentFails++;
|
|
6200
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6201
|
-
s6 = peg$
|
|
6032
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
6033
|
+
s6 = peg$c11;
|
|
6202
6034
|
peg$currPos += 3;
|
|
6203
6035
|
} else {
|
|
6204
6036
|
s6 = peg$FAILED;
|
|
6205
6037
|
if (peg$silentFails === 0) {
|
|
6206
|
-
peg$fail(peg$
|
|
6038
|
+
peg$fail(peg$e30);
|
|
6207
6039
|
}
|
|
6208
6040
|
}
|
|
6209
6041
|
peg$silentFails--;
|
|
@@ -6236,18 +6068,18 @@ function peg$parse(input, options) {
|
|
|
6236
6068
|
}
|
|
6237
6069
|
}
|
|
6238
6070
|
}
|
|
6239
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6240
|
-
s4 = peg$
|
|
6071
|
+
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
6072
|
+
s4 = peg$c11;
|
|
6241
6073
|
peg$currPos += 3;
|
|
6242
6074
|
} else {
|
|
6243
6075
|
s4 = peg$FAILED;
|
|
6244
6076
|
if (peg$silentFails === 0) {
|
|
6245
|
-
peg$fail(peg$
|
|
6077
|
+
peg$fail(peg$e30);
|
|
6246
6078
|
}
|
|
6247
6079
|
}
|
|
6248
6080
|
if (s4 !== peg$FAILED) {
|
|
6249
6081
|
peg$savedPos = s0;
|
|
6250
|
-
s0 = peg$
|
|
6082
|
+
s0 = peg$f23(s1);
|
|
6251
6083
|
} else {
|
|
6252
6084
|
peg$currPos = s0;
|
|
6253
6085
|
s0 = peg$FAILED;
|
|
@@ -6267,39 +6099,39 @@ function peg$parse(input, options) {
|
|
|
6267
6099
|
function peg$parsetripleBQuotedMultiLineString() {
|
|
6268
6100
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
6269
6101
|
s0 = peg$currPos;
|
|
6270
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6271
|
-
s1 = peg$
|
|
6102
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6103
|
+
s1 = peg$c13;
|
|
6272
6104
|
peg$currPos += 3;
|
|
6273
6105
|
} else {
|
|
6274
6106
|
s1 = peg$FAILED;
|
|
6275
6107
|
if (peg$silentFails === 0) {
|
|
6276
|
-
peg$fail(peg$
|
|
6108
|
+
peg$fail(peg$e32);
|
|
6277
6109
|
}
|
|
6278
6110
|
}
|
|
6279
6111
|
if (s1 !== peg$FAILED) {
|
|
6280
6112
|
s2 = [];
|
|
6281
6113
|
s3 = peg$currPos;
|
|
6282
6114
|
s4 = [];
|
|
6283
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6284
|
-
s5 = peg$
|
|
6115
|
+
if (input.substr(peg$currPos, 4) === peg$c14) {
|
|
6116
|
+
s5 = peg$c14;
|
|
6285
6117
|
peg$currPos += 4;
|
|
6286
6118
|
} else {
|
|
6287
6119
|
s5 = peg$FAILED;
|
|
6288
6120
|
if (peg$silentFails === 0) {
|
|
6289
|
-
peg$fail(peg$
|
|
6121
|
+
peg$fail(peg$e33);
|
|
6290
6122
|
}
|
|
6291
6123
|
}
|
|
6292
6124
|
if (s5 === peg$FAILED) {
|
|
6293
6125
|
s5 = peg$currPos;
|
|
6294
6126
|
s6 = peg$currPos;
|
|
6295
6127
|
peg$silentFails++;
|
|
6296
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6297
|
-
s7 = peg$
|
|
6128
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6129
|
+
s7 = peg$c13;
|
|
6298
6130
|
peg$currPos += 3;
|
|
6299
6131
|
} else {
|
|
6300
6132
|
s7 = peg$FAILED;
|
|
6301
6133
|
if (peg$silentFails === 0) {
|
|
6302
|
-
peg$fail(peg$
|
|
6134
|
+
peg$fail(peg$e32);
|
|
6303
6135
|
}
|
|
6304
6136
|
}
|
|
6305
6137
|
peg$silentFails--;
|
|
@@ -6333,26 +6165,26 @@ function peg$parse(input, options) {
|
|
|
6333
6165
|
}
|
|
6334
6166
|
while (s5 !== peg$FAILED) {
|
|
6335
6167
|
s4.push(s5);
|
|
6336
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6337
|
-
s5 = peg$
|
|
6168
|
+
if (input.substr(peg$currPos, 4) === peg$c14) {
|
|
6169
|
+
s5 = peg$c14;
|
|
6338
6170
|
peg$currPos += 4;
|
|
6339
6171
|
} else {
|
|
6340
6172
|
s5 = peg$FAILED;
|
|
6341
6173
|
if (peg$silentFails === 0) {
|
|
6342
|
-
peg$fail(peg$
|
|
6174
|
+
peg$fail(peg$e33);
|
|
6343
6175
|
}
|
|
6344
6176
|
}
|
|
6345
6177
|
if (s5 === peg$FAILED) {
|
|
6346
6178
|
s5 = peg$currPos;
|
|
6347
6179
|
s6 = peg$currPos;
|
|
6348
6180
|
peg$silentFails++;
|
|
6349
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6350
|
-
s7 = peg$
|
|
6181
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6182
|
+
s7 = peg$c13;
|
|
6351
6183
|
peg$currPos += 3;
|
|
6352
6184
|
} else {
|
|
6353
6185
|
s7 = peg$FAILED;
|
|
6354
6186
|
if (peg$silentFails === 0) {
|
|
6355
|
-
peg$fail(peg$
|
|
6187
|
+
peg$fail(peg$e32);
|
|
6356
6188
|
}
|
|
6357
6189
|
}
|
|
6358
6190
|
peg$silentFails--;
|
|
@@ -6406,26 +6238,26 @@ function peg$parse(input, options) {
|
|
|
6406
6238
|
s2.push(s3);
|
|
6407
6239
|
s3 = peg$currPos;
|
|
6408
6240
|
s4 = [];
|
|
6409
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6410
|
-
s5 = peg$
|
|
6241
|
+
if (input.substr(peg$currPos, 4) === peg$c14) {
|
|
6242
|
+
s5 = peg$c14;
|
|
6411
6243
|
peg$currPos += 4;
|
|
6412
6244
|
} else {
|
|
6413
6245
|
s5 = peg$FAILED;
|
|
6414
6246
|
if (peg$silentFails === 0) {
|
|
6415
|
-
peg$fail(peg$
|
|
6247
|
+
peg$fail(peg$e33);
|
|
6416
6248
|
}
|
|
6417
6249
|
}
|
|
6418
6250
|
if (s5 === peg$FAILED) {
|
|
6419
6251
|
s5 = peg$currPos;
|
|
6420
6252
|
s6 = peg$currPos;
|
|
6421
6253
|
peg$silentFails++;
|
|
6422
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6423
|
-
s7 = peg$
|
|
6254
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6255
|
+
s7 = peg$c13;
|
|
6424
6256
|
peg$currPos += 3;
|
|
6425
6257
|
} else {
|
|
6426
6258
|
s7 = peg$FAILED;
|
|
6427
6259
|
if (peg$silentFails === 0) {
|
|
6428
|
-
peg$fail(peg$
|
|
6260
|
+
peg$fail(peg$e32);
|
|
6429
6261
|
}
|
|
6430
6262
|
}
|
|
6431
6263
|
peg$silentFails--;
|
|
@@ -6459,26 +6291,26 @@ function peg$parse(input, options) {
|
|
|
6459
6291
|
}
|
|
6460
6292
|
while (s5 !== peg$FAILED) {
|
|
6461
6293
|
s4.push(s5);
|
|
6462
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6463
|
-
s5 = peg$
|
|
6294
|
+
if (input.substr(peg$currPos, 4) === peg$c14) {
|
|
6295
|
+
s5 = peg$c14;
|
|
6464
6296
|
peg$currPos += 4;
|
|
6465
6297
|
} else {
|
|
6466
6298
|
s5 = peg$FAILED;
|
|
6467
6299
|
if (peg$silentFails === 0) {
|
|
6468
|
-
peg$fail(peg$
|
|
6300
|
+
peg$fail(peg$e33);
|
|
6469
6301
|
}
|
|
6470
6302
|
}
|
|
6471
6303
|
if (s5 === peg$FAILED) {
|
|
6472
6304
|
s5 = peg$currPos;
|
|
6473
6305
|
s6 = peg$currPos;
|
|
6474
6306
|
peg$silentFails++;
|
|
6475
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6476
|
-
s7 = peg$
|
|
6307
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6308
|
+
s7 = peg$c13;
|
|
6477
6309
|
peg$currPos += 3;
|
|
6478
6310
|
} else {
|
|
6479
6311
|
s7 = peg$FAILED;
|
|
6480
6312
|
if (peg$silentFails === 0) {
|
|
6481
|
-
peg$fail(peg$
|
|
6313
|
+
peg$fail(peg$e32);
|
|
6482
6314
|
}
|
|
6483
6315
|
}
|
|
6484
6316
|
peg$silentFails--;
|
|
@@ -6533,26 +6365,26 @@ function peg$parse(input, options) {
|
|
|
6533
6365
|
}
|
|
6534
6366
|
if (s2 !== peg$FAILED) {
|
|
6535
6367
|
s3 = [];
|
|
6536
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6537
|
-
s4 = peg$
|
|
6368
|
+
if (input.substr(peg$currPos, 4) === peg$c14) {
|
|
6369
|
+
s4 = peg$c14;
|
|
6538
6370
|
peg$currPos += 4;
|
|
6539
6371
|
} else {
|
|
6540
6372
|
s4 = peg$FAILED;
|
|
6541
6373
|
if (peg$silentFails === 0) {
|
|
6542
|
-
peg$fail(peg$
|
|
6374
|
+
peg$fail(peg$e33);
|
|
6543
6375
|
}
|
|
6544
6376
|
}
|
|
6545
6377
|
if (s4 === peg$FAILED) {
|
|
6546
6378
|
s4 = peg$currPos;
|
|
6547
6379
|
s5 = peg$currPos;
|
|
6548
6380
|
peg$silentFails++;
|
|
6549
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6550
|
-
s6 = peg$
|
|
6381
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6382
|
+
s6 = peg$c13;
|
|
6551
6383
|
peg$currPos += 3;
|
|
6552
6384
|
} else {
|
|
6553
6385
|
s6 = peg$FAILED;
|
|
6554
6386
|
if (peg$silentFails === 0) {
|
|
6555
|
-
peg$fail(peg$
|
|
6387
|
+
peg$fail(peg$e32);
|
|
6556
6388
|
}
|
|
6557
6389
|
}
|
|
6558
6390
|
peg$silentFails--;
|
|
@@ -6586,26 +6418,26 @@ function peg$parse(input, options) {
|
|
|
6586
6418
|
}
|
|
6587
6419
|
while (s4 !== peg$FAILED) {
|
|
6588
6420
|
s3.push(s4);
|
|
6589
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6590
|
-
s4 = peg$
|
|
6421
|
+
if (input.substr(peg$currPos, 4) === peg$c14) {
|
|
6422
|
+
s4 = peg$c14;
|
|
6591
6423
|
peg$currPos += 4;
|
|
6592
6424
|
} else {
|
|
6593
6425
|
s4 = peg$FAILED;
|
|
6594
6426
|
if (peg$silentFails === 0) {
|
|
6595
|
-
peg$fail(peg$
|
|
6427
|
+
peg$fail(peg$e33);
|
|
6596
6428
|
}
|
|
6597
6429
|
}
|
|
6598
6430
|
if (s4 === peg$FAILED) {
|
|
6599
6431
|
s4 = peg$currPos;
|
|
6600
6432
|
s5 = peg$currPos;
|
|
6601
6433
|
peg$silentFails++;
|
|
6602
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6603
|
-
s6 = peg$
|
|
6434
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6435
|
+
s6 = peg$c13;
|
|
6604
6436
|
peg$currPos += 3;
|
|
6605
6437
|
} else {
|
|
6606
6438
|
s6 = peg$FAILED;
|
|
6607
6439
|
if (peg$silentFails === 0) {
|
|
6608
|
-
peg$fail(peg$
|
|
6440
|
+
peg$fail(peg$e32);
|
|
6609
6441
|
}
|
|
6610
6442
|
}
|
|
6611
6443
|
peg$silentFails--;
|
|
@@ -6638,18 +6470,18 @@ function peg$parse(input, options) {
|
|
|
6638
6470
|
}
|
|
6639
6471
|
}
|
|
6640
6472
|
}
|
|
6641
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6642
|
-
s4 = peg$
|
|
6473
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
6474
|
+
s4 = peg$c13;
|
|
6643
6475
|
peg$currPos += 3;
|
|
6644
6476
|
} else {
|
|
6645
6477
|
s4 = peg$FAILED;
|
|
6646
6478
|
if (peg$silentFails === 0) {
|
|
6647
|
-
peg$fail(peg$
|
|
6479
|
+
peg$fail(peg$e32);
|
|
6648
6480
|
}
|
|
6649
6481
|
}
|
|
6650
6482
|
if (s4 !== peg$FAILED) {
|
|
6651
6483
|
peg$savedPos = s0;
|
|
6652
|
-
s0 = peg$
|
|
6484
|
+
s0 = peg$f24(s1);
|
|
6653
6485
|
} else {
|
|
6654
6486
|
peg$currPos = s0;
|
|
6655
6487
|
s0 = peg$FAILED;
|
|
@@ -6686,7 +6518,7 @@ function peg$parse(input, options) {
|
|
|
6686
6518
|
} else {
|
|
6687
6519
|
s1 = peg$FAILED;
|
|
6688
6520
|
if (peg$silentFails === 0) {
|
|
6689
|
-
peg$fail(peg$
|
|
6521
|
+
peg$fail(peg$e34);
|
|
6690
6522
|
}
|
|
6691
6523
|
}
|
|
6692
6524
|
peg$silentFails--;
|
|
@@ -6705,23 +6537,23 @@ function peg$parse(input, options) {
|
|
|
6705
6537
|
let s0, s1;
|
|
6706
6538
|
s0 = [];
|
|
6707
6539
|
s1 = input.charAt(peg$currPos);
|
|
6708
|
-
if (peg$
|
|
6540
|
+
if (peg$r6.test(s1)) {
|
|
6709
6541
|
peg$currPos++;
|
|
6710
6542
|
} else {
|
|
6711
6543
|
s1 = peg$FAILED;
|
|
6712
6544
|
if (peg$silentFails === 0) {
|
|
6713
|
-
peg$fail(peg$
|
|
6545
|
+
peg$fail(peg$e14);
|
|
6714
6546
|
}
|
|
6715
6547
|
}
|
|
6716
6548
|
while (s1 !== peg$FAILED) {
|
|
6717
6549
|
s0.push(s1);
|
|
6718
6550
|
s1 = input.charAt(peg$currPos);
|
|
6719
|
-
if (peg$
|
|
6551
|
+
if (peg$r6.test(s1)) {
|
|
6720
6552
|
peg$currPos++;
|
|
6721
6553
|
} else {
|
|
6722
6554
|
s1 = peg$FAILED;
|
|
6723
6555
|
if (peg$silentFails === 0) {
|
|
6724
|
-
peg$fail(peg$
|
|
6556
|
+
peg$fail(peg$e14);
|
|
6725
6557
|
}
|
|
6726
6558
|
}
|
|
6727
6559
|
}
|
|
@@ -6733,24 +6565,24 @@ function peg$parse(input, options) {
|
|
|
6733
6565
|
let s0, s1;
|
|
6734
6566
|
s0 = [];
|
|
6735
6567
|
s1 = input.charAt(peg$currPos);
|
|
6736
|
-
if (peg$
|
|
6568
|
+
if (peg$r6.test(s1)) {
|
|
6737
6569
|
peg$currPos++;
|
|
6738
6570
|
} else {
|
|
6739
6571
|
s1 = peg$FAILED;
|
|
6740
6572
|
if (peg$silentFails === 0) {
|
|
6741
|
-
peg$fail(peg$
|
|
6573
|
+
peg$fail(peg$e14);
|
|
6742
6574
|
}
|
|
6743
6575
|
}
|
|
6744
6576
|
if (s1 !== peg$FAILED) {
|
|
6745
6577
|
while (s1 !== peg$FAILED) {
|
|
6746
6578
|
s0.push(s1);
|
|
6747
6579
|
s1 = input.charAt(peg$currPos);
|
|
6748
|
-
if (peg$
|
|
6580
|
+
if (peg$r6.test(s1)) {
|
|
6749
6581
|
peg$currPos++;
|
|
6750
6582
|
} else {
|
|
6751
6583
|
s1 = peg$FAILED;
|
|
6752
6584
|
if (peg$silentFails === 0) {
|
|
6753
|
-
peg$fail(peg$
|
|
6585
|
+
peg$fail(peg$e14);
|
|
6754
6586
|
}
|
|
6755
6587
|
}
|
|
6756
6588
|
}
|
|
@@ -7864,7 +7696,7 @@ var EnvGraph = class {
|
|
|
7864
7696
|
registerResolver(resolverClass) {
|
|
7865
7697
|
const fnName = resolverClass.fnName;
|
|
7866
7698
|
if (fnName in this.registeredResolverFunctions) {
|
|
7867
|
-
throw new
|
|
7699
|
+
throw new SchemaError(`Resolver ${fnName} already registered`);
|
|
7868
7700
|
}
|
|
7869
7701
|
this.registeredResolverFunctions[fnName] = resolverClass;
|
|
7870
7702
|
}
|
|
@@ -7872,7 +7704,7 @@ var EnvGraph = class {
|
|
|
7872
7704
|
registerDataType(factory) {
|
|
7873
7705
|
const name = factory.dataTypeName;
|
|
7874
7706
|
if (name in this.dataTypesRegistry) {
|
|
7875
|
-
throw new
|
|
7707
|
+
throw new SchemaError(`Data type "${name}" already registered`);
|
|
7876
7708
|
}
|
|
7877
7709
|
this.dataTypesRegistry[factory.dataTypeName] = factory;
|
|
7878
7710
|
}
|
|
@@ -7880,7 +7712,7 @@ var EnvGraph = class {
|
|
|
7880
7712
|
registerItemDecorator(decoratorDef) {
|
|
7881
7713
|
const name = decoratorDef.name;
|
|
7882
7714
|
if (name in this.itemDecoratorsRegistry) {
|
|
7883
|
-
throw new
|
|
7715
|
+
throw new SchemaError(`Item decorator "${name}" already registered`);
|
|
7884
7716
|
}
|
|
7885
7717
|
this.itemDecoratorsRegistry[decoratorDef.name] = decoratorDef;
|
|
7886
7718
|
}
|
|
@@ -7888,7 +7720,7 @@ var EnvGraph = class {
|
|
|
7888
7720
|
registerRootDecorator(decoratorDef) {
|
|
7889
7721
|
const name = decoratorDef.name;
|
|
7890
7722
|
if (name in this.itemDecoratorsRegistry) {
|
|
7891
|
-
throw new
|
|
7723
|
+
throw new SchemaError(`Root decorator "${name}" already registered`);
|
|
7892
7724
|
}
|
|
7893
7725
|
this.rootDecoratorsRegistry[decoratorDef.name] = decoratorDef;
|
|
7894
7726
|
}
|
|
@@ -7976,12 +7808,12 @@ var EnvGraph = class {
|
|
|
7976
7808
|
for (const key in this.configSchema) {
|
|
7977
7809
|
if (isBuiltinVar(key)) this.registerBuiltinVar(key);
|
|
7978
7810
|
}
|
|
7979
|
-
let
|
|
7811
|
+
let hasErrors = false;
|
|
7980
7812
|
for (const source of this.sortedDataSources) {
|
|
7981
7813
|
if (source.disabled) continue;
|
|
7982
7814
|
for (const decInstance of source.rootDecorators) {
|
|
7983
7815
|
await decInstance.process();
|
|
7984
|
-
if (decInstance.schemaErrors.some((e) => !e.isWarning))
|
|
7816
|
+
if (decInstance.schemaErrors.some((e) => !e.isWarning)) hasErrors = true;
|
|
7985
7817
|
}
|
|
7986
7818
|
}
|
|
7987
7819
|
for (const plugin of this.plugins) {
|
|
@@ -7990,9 +7822,9 @@ var EnvGraph = class {
|
|
|
7990
7822
|
for (const itemKey in this.configSchema) {
|
|
7991
7823
|
const item = this.configSchema[itemKey];
|
|
7992
7824
|
await item.process();
|
|
7993
|
-
if (item.errors.some((e) => !e.isWarning))
|
|
7825
|
+
if (item.errors.some((e) => !e.isWarning)) hasErrors = true;
|
|
7994
7826
|
}
|
|
7995
|
-
if (
|
|
7827
|
+
if (hasErrors) return;
|
|
7996
7828
|
const cycles = findGraphCycles(this.graphAdjacencyList);
|
|
7997
7829
|
for (const cycleItemKeys of cycles) {
|
|
7998
7830
|
for (const itemKey of cycleItemKeys) {
|
|
@@ -8007,19 +7839,20 @@ var EnvGraph = class {
|
|
|
8007
7839
|
for (const source of this.sortedDataSources) {
|
|
8008
7840
|
if (source.disabled) continue;
|
|
8009
7841
|
for (const decInstance of source.rootDecorators) {
|
|
8010
|
-
if (!decInstance.decValueResolver)
|
|
7842
|
+
if (!decInstance.decValueResolver) continue;
|
|
8011
7843
|
await this.resolveEnvValues(decInstance.decValueResolver.deps);
|
|
8012
7844
|
try {
|
|
8013
7845
|
await decInstance.execute();
|
|
8014
7846
|
} catch (err) {
|
|
8015
7847
|
const errLocation = err.more?.location || getErrorLocation(source, decInstance.parsedDecorator);
|
|
8016
|
-
decInstance.
|
|
7848
|
+
decInstance._errors.push(new ResolutionError(
|
|
8017
7849
|
err,
|
|
8018
7850
|
{
|
|
7851
|
+
severity: "fatal",
|
|
8019
7852
|
location: errLocation,
|
|
8020
7853
|
...err.tip && { tip: err.tip }
|
|
8021
7854
|
}
|
|
8022
|
-
);
|
|
7855
|
+
));
|
|
8023
7856
|
}
|
|
8024
7857
|
}
|
|
8025
7858
|
}
|
|
@@ -8131,13 +7964,7 @@ var EnvGraph = class {
|
|
|
8131
7964
|
const errors = {};
|
|
8132
7965
|
const rootErrors = [];
|
|
8133
7966
|
for (const source of this.sortedDataSources) {
|
|
8134
|
-
|
|
8135
|
-
rootErrors.push(`${source.label}: ${source.loadingError.message}`);
|
|
8136
|
-
}
|
|
8137
|
-
for (const err of source.schemaErrors) {
|
|
8138
|
-
rootErrors.push(`${source.label}: ${err.message}`);
|
|
8139
|
-
}
|
|
8140
|
-
for (const err of source.resolutionErrors) {
|
|
7967
|
+
for (const err of source.errors.filter((e) => !e.isWarning)) {
|
|
8141
7968
|
rootErrors.push(`${source.label}: ${err.message}`);
|
|
8142
7969
|
}
|
|
8143
7970
|
}
|
|
@@ -8737,7 +8564,10 @@ __name(loadPluginModuleCJS, "loadPluginModuleCJS");
|
|
|
8737
8564
|
async function loadPluginModuleESM(filePath) {
|
|
8738
8565
|
{
|
|
8739
8566
|
const fileUrl = pathToFileURL(filePath).href;
|
|
8740
|
-
await import(
|
|
8567
|
+
await import(
|
|
8568
|
+
/* webpackIgnore: true */
|
|
8569
|
+
`${fileUrl}?t=${Date.now()}`
|
|
8570
|
+
);
|
|
8741
8571
|
}
|
|
8742
8572
|
}
|
|
8743
8573
|
__name(loadPluginModuleESM, "loadPluginModuleESM");
|
|
@@ -8908,7 +8738,7 @@ var VarlockPlugin = class {
|
|
|
8908
8738
|
loadPluginModuleCJS(this.pluginFilePath);
|
|
8909
8739
|
}
|
|
8910
8740
|
} catch (err) {
|
|
8911
|
-
this.loadingError = err;
|
|
8741
|
+
this.loadingError = err instanceof VarlockError ? err : new LoadingError(err);
|
|
8912
8742
|
} finally {
|
|
8913
8743
|
if (hadGlobalPlugin) {
|
|
8914
8744
|
Object.defineProperty(globalThis, "plugin", {
|
|
@@ -8969,12 +8799,12 @@ async function registerPluginInGraph(graph, plugin, pluginDecorator) {
|
|
|
8969
8799
|
if (possibleMatchingPlugin.version === plugin.version) {
|
|
8970
8800
|
const installedInSources = possibleMatchingPlugin.installDecoratorInstances.map((dec) => dec.dataSource);
|
|
8971
8801
|
if (installedInSources.includes(pluginDecorator.dataSource)) {
|
|
8972
|
-
pluginDecorator.
|
|
8802
|
+
pluginDecorator._errors.push(new SchemaError(`Plugin ${plugin.name} already installed in this data source`));
|
|
8973
8803
|
return;
|
|
8974
8804
|
}
|
|
8975
8805
|
existingPlugin = possibleMatchingPlugin;
|
|
8976
8806
|
} else {
|
|
8977
|
-
pluginDecorator.
|
|
8807
|
+
pluginDecorator._errors.push(new SchemaError(`Plugin ${plugin.name} version conflict: tried to install version ${plugin.version} but version ${possibleMatchingPlugin.version} is already installed`));
|
|
8978
8808
|
return;
|
|
8979
8809
|
}
|
|
8980
8810
|
}
|
|
@@ -9097,7 +8927,7 @@ async function processPluginInstallDecorators(dataSource) {
|
|
|
9097
8927
|
const installPluginDecorators = dataSource.getRootDecFns("plugin");
|
|
9098
8928
|
if (installPluginDecorators.length) {
|
|
9099
8929
|
if (!(dataSource instanceof FileBasedDataSource)) {
|
|
9100
|
-
dataSource.
|
|
8930
|
+
dataSource._errors.push(new SchemaError("@plugin can only be used from a file-based data source"));
|
|
9101
8931
|
return;
|
|
9102
8932
|
}
|
|
9103
8933
|
const dataSourceDir = path3.dirname(dataSource.fullPath);
|
|
@@ -9220,7 +9050,7 @@ ${ansis_default.yellow("\u26A0")} Third-party plugin download requested
|
|
|
9220
9050
|
const plugin = await initPluginFromLocalPath(pluginSrcPath);
|
|
9221
9051
|
await registerPluginInGraph(graph, plugin, pluginDecorator);
|
|
9222
9052
|
} catch (err) {
|
|
9223
|
-
pluginDecorator.
|
|
9053
|
+
pluginDecorator._errors.push(err instanceof SchemaError ? err : new SchemaError(err));
|
|
9224
9054
|
continue;
|
|
9225
9055
|
}
|
|
9226
9056
|
}
|
|
@@ -9383,7 +9213,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9383
9213
|
}
|
|
9384
9214
|
const disabledVal = await disabledDec.resolve();
|
|
9385
9215
|
if (!my_dash_default.isBoolean(disabledVal)) {
|
|
9386
|
-
this.
|
|
9216
|
+
this._errors.push(new LoadingError("expected @disable to be boolean value"));
|
|
9387
9217
|
return;
|
|
9388
9218
|
}
|
|
9389
9219
|
this._disabled = disabledVal;
|
|
@@ -9399,7 +9229,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9399
9229
|
if (existingItem?.isResolved && itemDef.parsedValue !== void 0) {
|
|
9400
9230
|
const isMatchingStatic = itemDef.parsedValue instanceof ParsedEnvSpecStaticValue && itemDef.parsedValue.unescapedValue === existingItem.resolvedValue;
|
|
9401
9231
|
if (!isMatchingStatic) {
|
|
9402
|
-
this.
|
|
9232
|
+
this._errors.push(new SchemaError(
|
|
9403
9233
|
`"${itemKey}" was already resolved during early initialization (used by @currentEnv, @import, or @disable) and cannot be redefined by ${this.label}`
|
|
9404
9234
|
));
|
|
9405
9235
|
continue;
|
|
@@ -9410,7 +9240,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9410
9240
|
const currentEnvDec = this.getRootDec("currentEnv");
|
|
9411
9241
|
const envFlagDec = this.getRootDec("envFlag");
|
|
9412
9242
|
if (currentEnvDec && envFlagDec) {
|
|
9413
|
-
this.
|
|
9243
|
+
this._errors.push(new LoadingError("Cannot use both @currentEnv and @envFlag decorators"));
|
|
9414
9244
|
}
|
|
9415
9245
|
let envFlagItemKey;
|
|
9416
9246
|
let skipCurrentEnvProcessing = false;
|
|
@@ -9444,7 +9274,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9444
9274
|
}
|
|
9445
9275
|
if (envFlagItemKey) {
|
|
9446
9276
|
if (!this.configItemDefs[envFlagItemKey] && !isBuiltinVar(envFlagItemKey)) {
|
|
9447
|
-
this.
|
|
9277
|
+
this._errors.push(new LoadingError(`environment flag "${envFlagItemKey}" must be defined within this schema`));
|
|
9448
9278
|
return;
|
|
9449
9279
|
}
|
|
9450
9280
|
if (isBuiltinVar(envFlagItemKey)) {
|
|
@@ -9528,7 +9358,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9528
9358
|
const dirExists = Object.keys(this.graph.virtualImports).some((p) => p.startsWith(fullImportPath));
|
|
9529
9359
|
if (!dirExists && allowMissing) continue;
|
|
9530
9360
|
if (!dirExists) {
|
|
9531
|
-
this.
|
|
9361
|
+
this._errors.push(new LoadingError(`Virtual directory import ${fullImportPath} not found`));
|
|
9532
9362
|
return;
|
|
9533
9363
|
}
|
|
9534
9364
|
const dirChild = new DirectoryDataSource(fullImportPath);
|
|
@@ -9542,7 +9372,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9542
9372
|
const fileExists = this.graph.virtualImports[fullImportPath];
|
|
9543
9373
|
if (!fileExists && allowMissing) continue;
|
|
9544
9374
|
if (!fileExists) {
|
|
9545
|
-
this.
|
|
9375
|
+
this._errors.push(new LoadingError(`Virtual import ${fullImportPath} not found`));
|
|
9546
9376
|
return;
|
|
9547
9377
|
}
|
|
9548
9378
|
const fileChild = new DotEnvFileDataSource(fullImportPath, {
|
|
@@ -9556,7 +9386,7 @@ var EnvGraphDataSource2 = class {
|
|
|
9556
9386
|
});
|
|
9557
9387
|
if (!fsStat && allowMissing) continue;
|
|
9558
9388
|
if (!fsStat) {
|
|
9559
|
-
this.
|
|
9389
|
+
this._errors.push(new LoadingError(`Import path does not exist: ${fullImportPath}`));
|
|
9560
9390
|
return;
|
|
9561
9391
|
}
|
|
9562
9392
|
if (importPath.endsWith("/")) {
|
|
@@ -9569,15 +9399,15 @@ var EnvGraphDataSource2 = class {
|
|
|
9569
9399
|
});
|
|
9570
9400
|
this.graph.recordLoadedImportPath(fullImportPath, dirChild);
|
|
9571
9401
|
} else {
|
|
9572
|
-
this.
|
|
9402
|
+
this._errors.push(new LoadingError(`Imported path ending with "/" is not a directory: ${fullImportPath}`));
|
|
9573
9403
|
return;
|
|
9574
9404
|
}
|
|
9575
9405
|
} else {
|
|
9576
9406
|
if (fsStat.isDirectory()) {
|
|
9577
|
-
this.
|
|
9407
|
+
this._errors.push(new LoadingError('Imported path is a directory, add trailing "/" to import'));
|
|
9578
9408
|
return;
|
|
9579
9409
|
} else if (!fileName.startsWith(".env.")) {
|
|
9580
|
-
this.
|
|
9410
|
+
this._errors.push(new LoadingError("imported file must be a .env.* file"));
|
|
9581
9411
|
return;
|
|
9582
9412
|
}
|
|
9583
9413
|
const fileChild = new DotEnvFileDataSource(fullImportPath);
|
|
@@ -9590,17 +9420,17 @@ var EnvGraphDataSource2 = class {
|
|
|
9590
9420
|
}
|
|
9591
9421
|
}
|
|
9592
9422
|
} else if (importPath.startsWith("http://") || importPath.startsWith("https://")) {
|
|
9593
|
-
this.
|
|
9423
|
+
this._errors.push(new LoadingError("http imports not supported yet"));
|
|
9594
9424
|
return;
|
|
9595
9425
|
} else if (importPath.startsWith("npm:")) {
|
|
9596
|
-
this.
|
|
9426
|
+
this._errors.push(new LoadingError("npm imports not supported yet"));
|
|
9597
9427
|
return;
|
|
9598
9428
|
} else {
|
|
9599
|
-
this.
|
|
9429
|
+
this._errors.push(new LoadingError("unsupported import type"));
|
|
9600
9430
|
return;
|
|
9601
9431
|
}
|
|
9602
9432
|
} catch (err) {
|
|
9603
|
-
this.
|
|
9433
|
+
this._errors.push(err instanceof LoadingError ? err : new LoadingError(err));
|
|
9604
9434
|
return;
|
|
9605
9435
|
}
|
|
9606
9436
|
}
|
|
@@ -9619,10 +9449,11 @@ var EnvGraphDataSource2 = class {
|
|
|
9619
9449
|
get disabled() {
|
|
9620
9450
|
return this._disabled || this.parent?._disabled;
|
|
9621
9451
|
}
|
|
9622
|
-
|
|
9623
|
-
|
|
9452
|
+
_errors = [];
|
|
9453
|
+
/** first loading/parse error on this data source (including plugin loading errors) */
|
|
9624
9454
|
get loadingError() {
|
|
9625
|
-
|
|
9455
|
+
const ownError = this._errors.find((e) => e instanceof LoadingError || e instanceof ParseError);
|
|
9456
|
+
if (ownError) return ownError;
|
|
9626
9457
|
if (this.graph) {
|
|
9627
9458
|
for (const plugin of this.graph.plugins) {
|
|
9628
9459
|
if (plugin.loadingError) {
|
|
@@ -9636,18 +9467,30 @@ var EnvGraphDataSource2 = class {
|
|
|
9636
9467
|
}
|
|
9637
9468
|
return void 0;
|
|
9638
9469
|
}
|
|
9639
|
-
_schemaErrors = [];
|
|
9640
9470
|
get schemaErrors() {
|
|
9641
|
-
return
|
|
9642
|
-
...this.
|
|
9471
|
+
return [
|
|
9472
|
+
...this._errors.filter((e) => e instanceof SchemaError),
|
|
9643
9473
|
...this.rootDecorators.flatMap((d) => d.schemaErrors)
|
|
9644
|
-
]
|
|
9474
|
+
];
|
|
9645
9475
|
}
|
|
9646
9476
|
get resolutionErrors() {
|
|
9647
9477
|
return my_dash_default.compact([...this.rootDecorators.flatMap((d) => d._executionError)]);
|
|
9648
9478
|
}
|
|
9479
|
+
/** all errors from this data source (own + decorator schema + decorator execution + plugin loading) */
|
|
9480
|
+
get errors() {
|
|
9481
|
+
const errs = [
|
|
9482
|
+
...this._errors,
|
|
9483
|
+
...this.rootDecorators.flatMap((d) => d.schemaErrors),
|
|
9484
|
+
...this.resolutionErrors
|
|
9485
|
+
];
|
|
9486
|
+
const pluginErr = this.loadingError;
|
|
9487
|
+
if (pluginErr && !errs.includes(pluginErr)) {
|
|
9488
|
+
errs.push(pluginErr);
|
|
9489
|
+
}
|
|
9490
|
+
return errs;
|
|
9491
|
+
}
|
|
9649
9492
|
get isValid() {
|
|
9650
|
-
return
|
|
9493
|
+
return this.errors.every((e) => e.isWarning);
|
|
9651
9494
|
}
|
|
9652
9495
|
configItemDefs = {};
|
|
9653
9496
|
decorators = [];
|
|
@@ -9743,7 +9586,7 @@ var FileBasedDataSource = class extends EnvGraphDataSource2 {
|
|
|
9743
9586
|
async _finishInit() {
|
|
9744
9587
|
if (!this.rawContents) {
|
|
9745
9588
|
if (!await pathExists(this.fullPath)) {
|
|
9746
|
-
this.
|
|
9589
|
+
this._errors.push(new LoadingError(`File does not exist: ${this.fullPath}`));
|
|
9747
9590
|
return;
|
|
9748
9591
|
}
|
|
9749
9592
|
this.rawContents = await fs3.readFile(this.fullPath, "utf8");
|
|
@@ -9764,7 +9607,7 @@ var DotEnvFileDataSource = class extends FileBasedDataSource {
|
|
|
9764
9607
|
this.parsedFile = await tryCatch(
|
|
9765
9608
|
() => parseEnvSpecDotEnvFile(rawContents),
|
|
9766
9609
|
(error) => {
|
|
9767
|
-
|
|
9610
|
+
const parseError = new ParseError(`Parse error: ${error.message}`, {
|
|
9768
9611
|
location: {
|
|
9769
9612
|
id: this.fullPath,
|
|
9770
9613
|
lineNumber: error.location.start.line,
|
|
@@ -9772,7 +9615,8 @@ var DotEnvFileDataSource = class extends FileBasedDataSource {
|
|
|
9772
9615
|
lineStr: rawContents.split("\n")[error.location.start.line - 1]
|
|
9773
9616
|
}
|
|
9774
9617
|
});
|
|
9775
|
-
|
|
9618
|
+
parseError.cause = error;
|
|
9619
|
+
this._errors.push(parseError);
|
|
9776
9620
|
}
|
|
9777
9621
|
);
|
|
9778
9622
|
if (this.loadingError) return;
|
|
@@ -9792,13 +9636,13 @@ var DotEnvFileDataSource = class extends FileBasedDataSource {
|
|
|
9792
9636
|
const seenRootDecs = /* @__PURE__ */ new Set();
|
|
9793
9637
|
for (const dec of parsedFile.decoratorsArray) {
|
|
9794
9638
|
if (dec.name in this.graph.itemDecoratorsRegistry) {
|
|
9795
|
-
this.
|
|
9639
|
+
this._errors.push(new SchemaError(
|
|
9796
9640
|
`Item decorator @${dec.name} cannot be used in the file header - it must be attached to a config item`,
|
|
9797
9641
|
{ location: this._locationFromParsed(dec) }
|
|
9798
9642
|
));
|
|
9799
|
-
} else if (!dec.isBareFnCall) {
|
|
9643
|
+
} else if (!dec.isBareFnCall && !dec.hasInvalidName && dec.name in this.graph.rootDecoratorsRegistry) {
|
|
9800
9644
|
if (seenRootDecs.has(dec.name)) {
|
|
9801
|
-
this.
|
|
9645
|
+
this._errors.push(new SchemaError(
|
|
9802
9646
|
`Root decorator @${dec.name} cannot be used more than once in the same file`,
|
|
9803
9647
|
{ location: this._locationFromParsed(dec) }
|
|
9804
9648
|
));
|
|
@@ -9810,7 +9654,7 @@ var DotEnvFileDataSource = class extends FileBasedDataSource {
|
|
|
9810
9654
|
for (const comment of block.comments) {
|
|
9811
9655
|
if (comment instanceof ParsedEnvSpecDecoratorComment) {
|
|
9812
9656
|
for (const dec of comment.decorators) {
|
|
9813
|
-
this.
|
|
9657
|
+
this._errors.push(new SchemaError(
|
|
9814
9658
|
`Decorator @${dec.name} is in a detached comment block - decorators must be in the file header or attached directly to a config item (no blank lines between the decorator and the item)`,
|
|
9815
9659
|
{ location: this._locationFromParsed(dec) }
|
|
9816
9660
|
));
|
|
@@ -9871,9 +9715,9 @@ var DirectoryDataSource = class extends EnvGraphDataSource2 {
|
|
|
9871
9715
|
if (this.schemaDataSource?._envFlagKey) {
|
|
9872
9716
|
const envFlagKey = this.schemaDataSource._envFlagKey;
|
|
9873
9717
|
if (this.isPartialImport && !this.importKeys?.includes(envFlagKey)) {
|
|
9874
|
-
this.
|
|
9718
|
+
this._errors.push(new LoadingError(
|
|
9875
9719
|
`Imported directory has @currentEnv set to $${envFlagKey}, but "${envFlagKey}" is not included in the import list. Add "${envFlagKey}" to the @import() arguments.`
|
|
9876
|
-
);
|
|
9720
|
+
));
|
|
9877
9721
|
return void 0;
|
|
9878
9722
|
}
|
|
9879
9723
|
const envFlagItem = this.graph.configSchema[envFlagKey];
|
|
@@ -9902,7 +9746,7 @@ var DirectoryDataSource = class extends EnvGraphDataSource2 {
|
|
|
9902
9746
|
}
|
|
9903
9747
|
await this.addAutoLoadedFile(".env.local");
|
|
9904
9748
|
let currentEnv = await this._resolveCurrentEnv();
|
|
9905
|
-
if (this.
|
|
9749
|
+
if (this.loadingError) return;
|
|
9906
9750
|
if (currentEnv) {
|
|
9907
9751
|
await this._loadEnvSpecificFiles(currentEnv);
|
|
9908
9752
|
}
|
|
@@ -9911,7 +9755,7 @@ var DirectoryDataSource = class extends EnvGraphDataSource2 {
|
|
|
9911
9755
|
}
|
|
9912
9756
|
if (!currentEnv) {
|
|
9913
9757
|
currentEnv = await this._resolveCurrentEnv();
|
|
9914
|
-
if (this.
|
|
9758
|
+
if (this.loadingError) return;
|
|
9915
9759
|
if (currentEnv) {
|
|
9916
9760
|
const envSources = await this._loadEnvSpecificFiles(currentEnv);
|
|
9917
9761
|
for (const source of envSources) {
|
|
@@ -9975,15 +9819,23 @@ var DecoratorInstance = class {
|
|
|
9975
9819
|
get decValueResolver() {
|
|
9976
9820
|
return this._decValueResolver;
|
|
9977
9821
|
}
|
|
9978
|
-
|
|
9822
|
+
_errors = [];
|
|
9979
9823
|
get schemaErrors() {
|
|
9980
9824
|
return [
|
|
9981
|
-
...this.
|
|
9825
|
+
...this._errors.filter((e) => e instanceof SchemaError),
|
|
9982
9826
|
...this._decValueResolver?.schemaErrors || []
|
|
9983
9827
|
];
|
|
9984
9828
|
}
|
|
9985
9829
|
// error encountered during `execute` function
|
|
9986
|
-
_executionError
|
|
9830
|
+
get _executionError() {
|
|
9831
|
+
return this._errors.find((e) => e instanceof ResolutionError);
|
|
9832
|
+
}
|
|
9833
|
+
get errors() {
|
|
9834
|
+
return [
|
|
9835
|
+
...this._errors,
|
|
9836
|
+
...this._decValueResolver?.schemaErrors || []
|
|
9837
|
+
];
|
|
9838
|
+
}
|
|
9987
9839
|
decoratorDef;
|
|
9988
9840
|
get incompatibleWith() {
|
|
9989
9841
|
return this.decoratorDef?.incompatibleWith;
|
|
@@ -9998,6 +9850,15 @@ var DecoratorInstance = class {
|
|
|
9998
9850
|
const decRegistry = this.isRootDecorator ? this.graph.rootDecoratorsRegistry : this.graph.itemDecoratorsRegistry;
|
|
9999
9851
|
this.decoratorDef = decRegistry[this.name];
|
|
10000
9852
|
if (!this.decoratorDef) {
|
|
9853
|
+
const commentLikeDecorators = ["todo", "see", "note"];
|
|
9854
|
+
const nameLower = this.name.toLowerCase().replace(/:$/, "");
|
|
9855
|
+
if (commentLikeDecorators.includes(nameLower)) {
|
|
9856
|
+
const hint = nameLower === "see" ? " - use @docs() to link documentation" : " - did you mean to write a comment?";
|
|
9857
|
+
throw new SchemaError(`@${this.name} is not a valid decorator${hint}`, { isWarning: true });
|
|
9858
|
+
}
|
|
9859
|
+
if (this.parsedDecorator.hasInvalidName) {
|
|
9860
|
+
throw new SchemaError(`"@${this.name}" is not a valid decorator name - only letters, numbers, and underscores are allowed`);
|
|
9861
|
+
}
|
|
10001
9862
|
const otherRegistry = this.isRootDecorator ? this.graph.itemDecoratorsRegistry : this.graph.rootDecoratorsRegistry;
|
|
10002
9863
|
if (otherRegistry[this.name]) {
|
|
10003
9864
|
if (this.isRootDecorator) {
|
|
@@ -10006,7 +9867,10 @@ var DecoratorInstance = class {
|
|
|
10006
9867
|
throw new SchemaError(`@${this.name} is a root decorator and cannot be attached to a config item - it must be in the file header (before the first config item)`);
|
|
10007
9868
|
}
|
|
10008
9869
|
}
|
|
10009
|
-
throw new
|
|
9870
|
+
throw new SchemaError(`Unknown decorator: @${this.name}`);
|
|
9871
|
+
}
|
|
9872
|
+
if (this.parsedDecorator.warning) {
|
|
9873
|
+
this._errors.push(new SchemaError(this.parsedDecorator.warning, { isWarning: true }));
|
|
10010
9874
|
}
|
|
10011
9875
|
if (this.decoratorDef.isFunction && !this.isFunctionCall) {
|
|
10012
9876
|
throw new SchemaError(
|
|
@@ -10036,7 +9900,7 @@ var DecoratorInstance = class {
|
|
|
10036
9900
|
this.processedData = await this.decoratorDef.process?.(this.decValueResolver);
|
|
10037
9901
|
}
|
|
10038
9902
|
} catch (e) {
|
|
10039
|
-
this.
|
|
9903
|
+
this._errors.push(e instanceof SchemaError ? e : new SchemaError(e));
|
|
10040
9904
|
}
|
|
10041
9905
|
}
|
|
10042
9906
|
async execute() {
|
|
@@ -10048,13 +9912,13 @@ var DecoratorInstance = class {
|
|
|
10048
9912
|
if (this.isResolved) return this.resolvedValue;
|
|
10049
9913
|
await this.process();
|
|
10050
9914
|
if (!this.decValueResolver) {
|
|
10051
|
-
if (this.
|
|
9915
|
+
if (this._errors.length) return;
|
|
10052
9916
|
throw new Error("expected decorator to have a value resolver");
|
|
10053
9917
|
}
|
|
10054
9918
|
try {
|
|
10055
9919
|
this.resolvedValue = await this.decValueResolver.resolve();
|
|
10056
9920
|
} catch (err) {
|
|
10057
|
-
this.
|
|
9921
|
+
this._errors.push(err);
|
|
10058
9922
|
return;
|
|
10059
9923
|
}
|
|
10060
9924
|
this.isResolved = true;
|
|
@@ -10243,8 +10107,7 @@ var builtInRootDecorators = [
|
|
|
10243
10107
|
if (enabledResolver !== void 0) {
|
|
10244
10108
|
const enabledValue = await enabledResolver.resolve();
|
|
10245
10109
|
if (!my_dash_default.isBoolean(enabledValue)) {
|
|
10246
|
-
|
|
10247
|
-
return;
|
|
10110
|
+
throw new SchemaError("@setValuesBulk: enabled must be a boolean");
|
|
10248
10111
|
}
|
|
10249
10112
|
if (!enabledValue) return;
|
|
10250
10113
|
}
|
|
@@ -10256,22 +10119,16 @@ var builtInRootDecorators = [
|
|
|
10256
10119
|
return;
|
|
10257
10120
|
}
|
|
10258
10121
|
if (typeof dataString !== "string") {
|
|
10259
|
-
|
|
10260
|
-
return;
|
|
10122
|
+
throw new SchemaError("@setValuesBulk: data resolver must return a string");
|
|
10261
10123
|
}
|
|
10262
10124
|
const effectiveFormat = format || detectBulkFormat(dataString);
|
|
10263
10125
|
let entries;
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
entries = parseEnvBulkValues(dataString);
|
|
10269
|
-
}
|
|
10270
|
-
} catch (err) {
|
|
10271
|
-
dataSource._loadingError = err instanceof SchemaError ? err : new SchemaError(err);
|
|
10272
|
-
return;
|
|
10126
|
+
if (effectiveFormat === "json") {
|
|
10127
|
+
entries = parseJsonBulkValues(dataString);
|
|
10128
|
+
} else {
|
|
10129
|
+
entries = parseEnvBulkValues(dataString);
|
|
10273
10130
|
}
|
|
10274
|
-
const { ConfigItem: ConfigItem2 } = await import('./config-item-
|
|
10131
|
+
const { ConfigItem: ConfigItem2 } = await import('./config-item-SQFJ2BJ2.js');
|
|
10275
10132
|
for (const [key, entry] of Object.entries(entries)) {
|
|
10276
10133
|
const existsInSchema = key in graph.configSchema;
|
|
10277
10134
|
if (!existsInSchema && !createMissing) {
|
|
@@ -10387,7 +10244,7 @@ var Resolver = class {
|
|
|
10387
10244
|
inferredType;
|
|
10388
10245
|
/** reference to the parsed node that created this resolver, used for error location tracking */
|
|
10389
10246
|
_parsedNode;
|
|
10390
|
-
|
|
10247
|
+
_errors = [];
|
|
10391
10248
|
_depsObj = {};
|
|
10392
10249
|
get childResolvers() {
|
|
10393
10250
|
return [
|
|
@@ -10397,13 +10254,10 @@ var Resolver = class {
|
|
|
10397
10254
|
}
|
|
10398
10255
|
get schemaErrors() {
|
|
10399
10256
|
return [
|
|
10400
|
-
...this.
|
|
10257
|
+
...this._errors,
|
|
10401
10258
|
...this.childResolvers.flatMap((r) => r.schemaErrors)
|
|
10402
10259
|
];
|
|
10403
10260
|
}
|
|
10404
|
-
set schemaErrors(v) {
|
|
10405
|
-
throw new Error("set _schemaErrors instead");
|
|
10406
|
-
}
|
|
10407
10261
|
get depsObj() {
|
|
10408
10262
|
const mergedDepsObj = { ...this._depsObj };
|
|
10409
10263
|
this.childResolvers.forEach((r) => Object.assign(mergedDepsObj, r.depsObj));
|
|
@@ -10418,13 +10272,13 @@ var Resolver = class {
|
|
|
10418
10272
|
this.parent = parent;
|
|
10419
10273
|
const { argsSchema } = this.def;
|
|
10420
10274
|
if (argsSchema?.type === "array" && this.objArgs !== void 0) {
|
|
10421
|
-
this.
|
|
10275
|
+
this._errors.push(new SchemaError("Resolver does not support key-value args"));
|
|
10422
10276
|
} else if (argsSchema?.type === "object" && this.arrArgs !== void 0) {
|
|
10423
|
-
this.
|
|
10277
|
+
this._errors.push(new SchemaError("Resolver expects only key-value args"));
|
|
10424
10278
|
}
|
|
10425
10279
|
if (argsSchema?.arrayExactLength !== void 0) {
|
|
10426
10280
|
if (this.arrArgs?.length !== argsSchema.arrayExactLength) {
|
|
10427
|
-
this.
|
|
10281
|
+
this._errors.push(
|
|
10428
10282
|
new SchemaError(
|
|
10429
10283
|
`expects exactly ${argsSchema.arrayExactLength} argument${argsSchema.arrayExactLength > 1 ? "s" : ""}`
|
|
10430
10284
|
)
|
|
@@ -10433,7 +10287,7 @@ var Resolver = class {
|
|
|
10433
10287
|
}
|
|
10434
10288
|
if (argsSchema?.arrayMinLength !== void 0) {
|
|
10435
10289
|
if ((this.arrArgs?.length ?? 0) < argsSchema.arrayMinLength) {
|
|
10436
|
-
this.
|
|
10290
|
+
this._errors.push(
|
|
10437
10291
|
new SchemaError(
|
|
10438
10292
|
`expects at least ${argsSchema.arrayMinLength} argument${argsSchema.arrayMinLength > 1 ? "s" : ""}`
|
|
10439
10293
|
)
|
|
@@ -10442,7 +10296,7 @@ var Resolver = class {
|
|
|
10442
10296
|
}
|
|
10443
10297
|
if (argsSchema?.arrayMaxLength !== void 0) {
|
|
10444
10298
|
if ((this.arrArgs?.length ?? 0) > argsSchema.arrayMaxLength) {
|
|
10445
|
-
this.
|
|
10299
|
+
this._errors.push(
|
|
10446
10300
|
new SchemaError(`expects at most ${argsSchema.arrayMaxLength} argument${argsSchema.arrayMaxLength > 1 ? "s" : ""}`)
|
|
10447
10301
|
);
|
|
10448
10302
|
}
|
|
@@ -10450,28 +10304,28 @@ var Resolver = class {
|
|
|
10450
10304
|
if (argsSchema?.objKeyMinLength !== void 0) {
|
|
10451
10305
|
const objKeyLengths = Object.keys(this.objArgs || {}).length;
|
|
10452
10306
|
if (objKeyLengths < argsSchema.objKeyMinLength) {
|
|
10453
|
-
this.
|
|
10307
|
+
this._errors.push(
|
|
10454
10308
|
new SchemaError(
|
|
10455
10309
|
`expects at least ${argsSchema.objKeyMinLength} key value arg${argsSchema.objKeyMinLength > 1 ? "s" : ""}`
|
|
10456
10310
|
)
|
|
10457
10311
|
);
|
|
10458
10312
|
}
|
|
10459
10313
|
}
|
|
10460
|
-
if (this.
|
|
10314
|
+
if (this._errors.length === 0) {
|
|
10461
10315
|
try {
|
|
10462
10316
|
this.meta = this.def.process?.call(this);
|
|
10463
10317
|
} catch (error) {
|
|
10464
10318
|
if (error instanceof SchemaError) {
|
|
10465
|
-
this.
|
|
10319
|
+
this._errors.push(error);
|
|
10466
10320
|
} else if (error instanceof Error) {
|
|
10467
|
-
this.
|
|
10321
|
+
this._errors.push(new SchemaError(error));
|
|
10468
10322
|
} else {
|
|
10469
10323
|
throw new Error(`Non-error thrown while processing resolver - ${error}`);
|
|
10470
10324
|
}
|
|
10471
10325
|
}
|
|
10472
10326
|
}
|
|
10473
10327
|
if (!this.def.name.startsWith("\0")) {
|
|
10474
|
-
for (const e of this.
|
|
10328
|
+
for (const e of this._errors) {
|
|
10475
10329
|
e.message = `${this.def.name}(): ${e.message}`;
|
|
10476
10330
|
}
|
|
10477
10331
|
}
|
|
@@ -10591,7 +10445,7 @@ var ErrorResolver = class extends Resolver {
|
|
|
10591
10445
|
constructor(err) {
|
|
10592
10446
|
super([]);
|
|
10593
10447
|
this.err = err;
|
|
10594
|
-
this.
|
|
10448
|
+
this._errors.push(err);
|
|
10595
10449
|
}
|
|
10596
10450
|
static {
|
|
10597
10451
|
__name(this, "ErrorResolver");
|
|
@@ -10738,7 +10592,7 @@ var RemapResolver = createResolver({
|
|
|
10738
10592
|
if (Object.keys(this.objArgs).length === 0) {
|
|
10739
10593
|
throw new SchemaError("expects at least 1 key=value remapping pair");
|
|
10740
10594
|
}
|
|
10741
|
-
this.
|
|
10595
|
+
this._errors.push(new SchemaError("key=value syntax is deprecated", {
|
|
10742
10596
|
isWarning: true,
|
|
10743
10597
|
tip: "Use positional pairs instead: remap($VAR, match1, result1, match2, result2, ...)"
|
|
10744
10598
|
}));
|
|
@@ -11530,14 +11384,14 @@ var ConfigItem = class {
|
|
|
11530
11384
|
this.effectiveDecoratorFns[dec.name] ||= [];
|
|
11531
11385
|
this.effectiveDecoratorFns[dec.name].push(dec);
|
|
11532
11386
|
} else {
|
|
11533
|
-
if (decKeysInThisDef.has(dec.name)) {
|
|
11534
|
-
dec.
|
|
11387
|
+
if (decKeysInThisDef.has(dec.name) && !dec._errors.length) {
|
|
11388
|
+
dec._errors.push(new SchemaError(`decorator @${dec.name} cannot be used twice in same definition`));
|
|
11535
11389
|
continue;
|
|
11536
11390
|
}
|
|
11537
11391
|
if (dec.incompatibleWith) {
|
|
11538
11392
|
for (const otherDecName of dec.incompatibleWith) {
|
|
11539
11393
|
if (allDecsInThisDef?.includes(otherDecName)) {
|
|
11540
|
-
dec.
|
|
11394
|
+
dec._errors.push(new SchemaError(`decorator @${dec.name} is incompatible with @${otherDecName} in the same definition`));
|
|
11541
11395
|
continue;
|
|
11542
11396
|
}
|
|
11543
11397
|
}
|
|
@@ -11614,7 +11468,7 @@ var ConfigItem = class {
|
|
|
11614
11468
|
this._isRequiredDynamic = true;
|
|
11615
11469
|
}
|
|
11616
11470
|
const requiredDecoratorVal = await requiredDec.resolve();
|
|
11617
|
-
if (requiredDec.schemaErrors.
|
|
11471
|
+
if (requiredDec.schemaErrors.some((e) => !e.isWarning)) {
|
|
11618
11472
|
this._isRequired = false;
|
|
11619
11473
|
return;
|
|
11620
11474
|
}
|
|
@@ -11671,7 +11525,7 @@ var ConfigItem = class {
|
|
|
11671
11525
|
if (!sensitiveDec) continue;
|
|
11672
11526
|
const usingPublic = sensitiveDec.name === "public";
|
|
11673
11527
|
const sensitiveDecValue = await sensitiveDec.resolve();
|
|
11674
|
-
if (sensitiveDec.schemaErrors.
|
|
11528
|
+
if (sensitiveDec.schemaErrors.some((e) => !e.isWarning)) return;
|
|
11675
11529
|
if (![true, false, void 0].includes(sensitiveDecValue)) {
|
|
11676
11530
|
throw new SchemaError("@sensitive/@public must resolve to a boolean or undefined");
|
|
11677
11531
|
}
|
|
@@ -11865,7 +11719,7 @@ var ConfigItem = class {
|
|
|
11865
11719
|
break;
|
|
11866
11720
|
}
|
|
11867
11721
|
const requiredDecoratorVal = await requiredDec.resolve();
|
|
11868
|
-
if (requiredDec.schemaErrors.
|
|
11722
|
+
if (requiredDec.schemaErrors.some((e) => !e.isWarning)) {
|
|
11869
11723
|
isRequired = false;
|
|
11870
11724
|
break;
|
|
11871
11725
|
}
|
|
@@ -11908,7 +11762,7 @@ var ConfigItem = class {
|
|
|
11908
11762
|
const usingPublic = sensitiveDec.name === "public";
|
|
11909
11763
|
if (sensitiveDec.decValueResolver?.fnName !== "\0static") break;
|
|
11910
11764
|
const sensitiveDecValue = await sensitiveDec.resolve();
|
|
11911
|
-
if (sensitiveDec.schemaErrors.
|
|
11765
|
+
if (sensitiveDec.schemaErrors.some((e) => !e.isWarning)) break;
|
|
11912
11766
|
if (![true, false, void 0].includes(sensitiveDecValue)) break;
|
|
11913
11767
|
if (sensitiveDecValue !== void 0) {
|
|
11914
11768
|
isSensitive = usingPublic ? !sensitiveDecValue : sensitiveDecValue;
|
|
@@ -12001,5 +11855,5 @@ var ConfigItem = class {
|
|
|
12001
11855
|
};
|
|
12002
11856
|
|
|
12003
11857
|
export { ConfigItem, DirectoryDataSource, DotEnvFileDataSource, EnvGraph, FileBasedDataSource, MultiplePathsContainerDataSource, ParsedEnvSpecFunctionCall, ParsedEnvSpecStaticValue, StaticValueResolver, ansis_default, createResolver, detectWorkspaceInfo, downloadPluginToCache, envSpecUpdater, multiselect, parseEnvSpecDotEnvFile, password, pathExists, prompts_default, require_semver2 as require_semver, runWithWorkspaceInfo, select, spawnAsync, tryCatch };
|
|
12004
|
-
//# sourceMappingURL=chunk-
|
|
12005
|
-
//# sourceMappingURL=chunk-
|
|
11858
|
+
//# sourceMappingURL=chunk-GKN3UJNE.js.map
|
|
11859
|
+
//# sourceMappingURL=chunk-GKN3UJNE.js.map
|