@guihz/trading-vue-editor-tes 0.1.50 → 0.1.52
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/lib/assets/{parserTccWorker-D81GihzL.js → parserTccWorker-D2IwC_9k.js} +18 -13
- package/lib/assets/{scriptsRunWorker-CmKW4aMU.js → scriptsRunWorker-IotUWTYQ.js} +7292 -7241
- package/lib/components/editor/parseScript/utils.d.ts +1 -0
- package/lib/components/editor/v3/parseScript/visitorParser.d.ts +1 -0
- package/lib/components/editor/v4/parseScript/visitorParser.d.ts +1 -0
- package/lib/components/editor/v5/parseScript/visitorParser.d.ts +1 -0
- package/lib/components/editor/v6/parseScript/visitorParser.d.ts +1 -0
- package/lib/trading-vue-editor.es.packages.js +285 -285
- package/lib/trading-vue-editor.umd.packages.mjs +1 -1
- package/package.json +1 -1
|
@@ -24451,6 +24451,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
24451
24451
|
return {
|
|
24452
24452
|
ruleType: j0.ParenthesizedExpression,
|
|
24453
24453
|
type: i.type,
|
|
24454
|
+
types: i.types,
|
|
24454
24455
|
ctx: e,
|
|
24455
24456
|
exprs: i
|
|
24456
24457
|
};
|
|
@@ -59256,6 +59257,7 @@ Input files:
|
|
|
59256
59257
|
return {
|
|
59257
59258
|
ruleType: $0.ParenthesizedExpression,
|
|
59258
59259
|
type: i.type,
|
|
59260
|
+
types: i.types,
|
|
59259
59261
|
ctx: e,
|
|
59260
59262
|
exprs: i
|
|
59261
59263
|
};
|
|
@@ -76556,6 +76558,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
76556
76558
|
return {
|
|
76557
76559
|
ruleType: M0.ParenthesizedExpression,
|
|
76558
76560
|
type: i.type,
|
|
76561
|
+
types: i.types,
|
|
76559
76562
|
ctx: e,
|
|
76560
76563
|
exprs: i
|
|
76561
76564
|
};
|
|
@@ -96160,7 +96163,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
96160
96163
|
i.nameList = this.visit(s), this._inputVarName = i.nameList?.name;
|
|
96161
96164
|
break;
|
|
96162
96165
|
case N.RULE_singleExpression:
|
|
96163
|
-
i.value = this.visit(s), this._inputVarName = void 0;
|
|
96166
|
+
i.value = this.visit(s), this._inputVarName = void 0, i.value?.type === "plot" && (i.nameList.declare = void 0);
|
|
96164
96167
|
break;
|
|
96165
96168
|
}
|
|
96166
96169
|
}
|
|
@@ -96416,6 +96419,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
96416
96419
|
return {
|
|
96417
96420
|
ruleType: R0.ParenthesizedExpression,
|
|
96418
96421
|
type: i.type,
|
|
96422
|
+
types: i.types,
|
|
96419
96423
|
ctx: e,
|
|
96420
96424
|
exprs: i
|
|
96421
96425
|
};
|
|
@@ -98888,16 +98892,17 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
98888
98892
|
const C = L.returnedTypes || [F.UNDETERMINED];
|
|
98889
98893
|
x += C.length <= 1 ? `; ${C[0]}` : `; [${C.join(", ")}]`;
|
|
98890
98894
|
const H = Array.isArray(L.block) ? L.block.slice(-1)[0] : L.block;
|
|
98891
|
-
if (
|
|
98892
|
-
|
|
98893
|
-
|
|
98894
|
-
|
|
98895
|
-
|
|
98896
|
-
(
|
|
98897
|
-
|
|
98898
|
-
|
|
98899
|
-
|
|
98900
|
-
|
|
98895
|
+
if (H)
|
|
98896
|
+
if (C.length !== T.length)
|
|
98897
|
+
y = H.ctx;
|
|
98898
|
+
else
|
|
98899
|
+
for (const [J, $] of T.entries())
|
|
98900
|
+
if (this._compareType(C[J], $))
|
|
98901
|
+
(C[J].includes(F.FLOAT) && !$.includes(F.FLOAT) || T[J] === `${F.SIMPLE} ${F.NA}` || T[J] === F.UNDETERMINED && C[J] !== `${F.SIMPLE} ${F.NA}`) && (T[J] = C[J]);
|
|
98902
|
+
else {
|
|
98903
|
+
y = H.ctx;
|
|
98904
|
+
break;
|
|
98905
|
+
}
|
|
98901
98906
|
}
|
|
98902
98907
|
return y ? (this._errorHandle(D(A0.ifOrSwitchTypeErr, {
|
|
98903
98908
|
keyword: "switch",
|
|
@@ -99676,7 +99681,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
99676
99681
|
let m = "";
|
|
99677
99682
|
const { column: E, line: T } = d?.ctx?.start || {}, x = `${T}_${E}`;
|
|
99678
99683
|
let y = this._isInFunc ? `$posStr + "__${x}"` : `"${this._scriptType === Tn.library ? `export_${this._libTitle}_` : ""}${x}"`;
|
|
99679
|
-
d.selfArg ? (m = this._parserMethodElement(d, y, f.join(".")), f = []) : m = this._parserMethodElement(d, y, ""), f.push(m);
|
|
99684
|
+
y = this._isInLoop ? `"($" + $$count${this._count} + "_$)" + ${y}` : y, d.selfArg ? (m = this._parserMethodElement(d, y, f.join(".")), f = []) : m = this._parserMethodElement(d, y, ""), f.push(m);
|
|
99680
99685
|
}
|
|
99681
99686
|
if (e.expr && f.unshift(`(${this._parserSingleExpression(e.expr)})`), e.isBuiltIn) {
|
|
99682
99687
|
const d = f.join(".");
|
|
@@ -99698,7 +99703,7 @@ ${this._prefixNameVar}.setCacheData("m${l}_" + ${f}, ${m})
|
|
|
99698
99703
|
_parserMethodExpression(e) {
|
|
99699
99704
|
const { exprs: t, ctx: n } = e, { column: i, line: s } = n.start, o = `${s}_${i}`;
|
|
99700
99705
|
let p = this._isInFunc ? `$posStr + "__${o}"` : `"${this._scriptType === Tn.library ? `export_${this._libTitle}_` : ""}${o}"`;
|
|
99701
|
-
i === 0 && (this._dependsObj[p] = /* @__PURE__ */ new Map());
|
|
99706
|
+
p = this._isInLoop ? `"($" + $$count${this._count} + "_$)" + ${p}` : p, i === 0 && (this._dependsObj[p] = /* @__PURE__ */ new Map());
|
|
99702
99707
|
let l = [];
|
|
99703
99708
|
for (const d of t) {
|
|
99704
99709
|
let m = "";
|