@guihz/trading-vue-editor-tes 0.1.131 → 0.1.133

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.
@@ -29185,7 +29185,7 @@ function print() { __p += __j.call(arguments, '') }
29185
29185
  s.nameList = this.visit(a), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
29186
29186
  break;
29187
29187
  case A0.RULE_singleExpression:
29188
- s.value = this.visit(a), this._inputVarName = void 0;
29188
+ s.value = this.visit(a), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0;
29189
29189
  break;
29190
29190
  }
29191
29191
  }
@@ -31197,31 +31197,31 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
31197
31197
  }
31198
31198
  }
31199
31199
  _parserMethodExpression(e) {
31200
- const { exprs: t, ctx: r } = e, { column: i, line: s } = r.start, o = `${s}_${i}`;
31201
- let a = this._isInFunc ? `$posStr + "__${o}"` : `"${o}"`;
31202
- a = this._isInLoop ? `"$" + $$count${this._count} + "_$" + ${a}` : a, i === 0 && (this._dependsObj[a] = /* @__PURE__ */ new Map());
31203
- let u = !1, M = [];
31204
- for (const _ of t) {
31205
- _.hasMemberIndex && (u = !0);
31206
- const R = this._parserMethodElement(_, a);
31207
- M.push(R);
31208
- }
31209
- const O = M.join(".");
31210
- if (i === 0) {
31211
- const _ = this._getDepends(a);
31200
+ const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
31201
+ let u = this._isInFunc ? `$posStr + "__${a}"` : `"${a}"`;
31202
+ u = this._isInLoop ? `"$" + $$count${this._count} + "_$" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
31203
+ let M = !1, O = [];
31204
+ for (const R of t) {
31205
+ R.hasMemberIndex && (M = !0);
31206
+ const T = this._parserMethodElement(R, u);
31207
+ O.push(T);
31208
+ }
31209
+ const _ = O.join(".");
31210
+ if (s === 0) {
31211
+ const R = this._getDepends(u);
31212
31212
  this._codesCol[this._blockCount].push({
31213
- code: O,
31213
+ code: _,
31214
31214
  isStmtFunc: !0,
31215
- depends: _
31215
+ depends: R
31216
31216
  });
31217
31217
  }
31218
- if (this._isInConditionalStmt && u && !this._isExperssion) {
31219
- const _ = `$$result_${this._preRunMemberFuncsCount}`;
31218
+ if (this._isInConditionalStmt && M && !this._isExperssion) {
31219
+ const R = `$$result_${this._preRunMemberFuncsCount}`;
31220
31220
  this._preRunMemberFuncsCount++;
31221
- const R = this._preRunMembersFuncs[this._blockCount] || [];
31222
- return R.push(`const ${_} = ${O}`), this._preRunMembersFuncs[this._blockCount] = R, _;
31221
+ const T = this._preRunMembersFuncs[this._blockCount] || [];
31222
+ return T.push(`const ${R} = ${_}`), this._preRunMembersFuncs[this._blockCount] = T, R;
31223
31223
  }
31224
- return O;
31224
+ return _;
31225
31225
  }
31226
31226
  _parserMethodElement(e, t) {
31227
31227
  var M, O;
@@ -64570,7 +64570,7 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
64570
64570
  s.nameList = this.visit(u), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
64571
64571
  break;
64572
64572
  case M0.RULE_singleExpression:
64573
- s.value = this.visit(u), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
64573
+ s.value = this.visit(u), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
64574
64574
  break;
64575
64575
  }
64576
64576
  }
@@ -66726,28 +66726,28 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
66726
66726
  }
66727
66727
  }
66728
66728
  _parserMethodExpression(e) {
66729
- const { exprs: t, ctx: r } = e, { column: i, line: s } = r.start, o = `${s}_${i}`;
66730
- let a = this._isInFunc ? `$posStr + "__${o}"` : `"${o}"`;
66731
- a = this._isInLoop ? `"$" + $$count${this._count} + "_$" + ${a}` : a, i === 0 && (this._dependsObj[a] = /* @__PURE__ */ new Map());
66732
- let u = !1, M = [];
66733
- for (const _ of t)
66734
- _.hasMemberIndex && (u = !0), M.push(this._parserMethodElement(_, a));
66735
- const O = M.join(".");
66736
- if (i === 0) {
66737
- const _ = this._getDepends(a);
66729
+ const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
66730
+ let u = this._isInFunc ? `$posStr + "__${a}"` : `"${a}"`;
66731
+ u = this._isInLoop ? `"$" + $$count${this._count} + "_$" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
66732
+ let M = !1, O = [];
66733
+ for (const R of t)
66734
+ R.hasMemberIndex && (M = !0), O.push(this._parserMethodElement(R, u));
66735
+ const _ = O.join(".");
66736
+ if (s === 0) {
66737
+ const R = this._getDepends(u);
66738
66738
  this._codesCol[this._blockCount].push({
66739
- code: O,
66739
+ code: _,
66740
66740
  isStmtFunc: !0,
66741
- depends: _
66741
+ depends: R
66742
66742
  });
66743
66743
  }
66744
- if (this._isInConditionalStmt && u && !this._isExperssion) {
66745
- const _ = `$$result_${this._preRunMemberFuncsCount}`;
66744
+ if (this._isInConditionalStmt && M && !this._isExperssion) {
66745
+ const R = `$$result_${this._preRunMemberFuncsCount}`;
66746
66746
  this._preRunMemberFuncsCount++;
66747
- const R = this._preRunMembersFuncs[this._blockCount] || [];
66748
- return R.push(`const ${_} = ${O}`), this._preRunMembersFuncs[this._blockCount] = R, _;
66747
+ const T = this._preRunMembersFuncs[this._blockCount] || [];
66748
+ return T.push(`const ${R} = ${_}`), this._preRunMembersFuncs[this._blockCount] = T, R;
66749
66749
  }
66750
- return O;
66750
+ return _;
66751
66751
  }
66752
66752
  _parserMethodElement(e, t) {
66753
66753
  let r = "", i = "";
@@ -81701,7 +81701,7 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
81701
81701
  s.nameList = this.visit(u), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
81702
81702
  break;
81703
81703
  case Y.RULE_singleExpression:
81704
- s.value = this.visit(u), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
81704
+ s.value = this.visit(u), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
81705
81705
  break;
81706
81706
  }
81707
81707
  }
@@ -85320,31 +85320,31 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
85320
85320
  }
85321
85321
  }
85322
85322
  _parserMethodExpression(e) {
85323
- const { exprs: t, ctx: r } = e, { column: i, line: s } = r.start, o = `${s}_${i}`;
85324
- let a = this._isInFunc ? `$posStr + "__${o}"` : `"${this._scriptType === $r.library ? `export_${this._libTitle}_` : ""}${o}"`;
85325
- a = this._isInLoop && !this._isExperssion ? `"$" + $$count${this._count} + "_$" + ${a}` : a, i === 0 && (this._dependsObj[a] = /* @__PURE__ */ new Map());
85326
- let u = !1, M = [];
85327
- for (const _ of t) {
85328
- _.hasMemberIndex && (u = !0);
85329
- let R = "";
85330
- _.selfArg ? (R = this._parserMethodElement(_, a, M.join(".")), M = []) : R = this._parserMethodElement(_, a, ""), M.push(R);
85323
+ const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
85324
+ let u = this._isInFunc ? `$posStr + "__${a}"` : `"${this._scriptType === $r.library ? `export_${this._libTitle}_` : ""}${a}"`;
85325
+ u = this._isInLoop && !this._isExperssion ? `"$" + $$count${this._count} + "_$" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
85326
+ let M = !1, O = [];
85327
+ for (const R of t) {
85328
+ R.hasMemberIndex && (M = !0);
85329
+ let T = "";
85330
+ R.selfArg ? (T = this._parserMethodElement(R, u, O.join(".")), O = []) : T = this._parserMethodElement(R, u, ""), O.push(T);
85331
85331
  }
85332
- const O = M.join(".");
85333
- if (i === 0) {
85334
- const _ = this._getDepends(a);
85332
+ const _ = O.join(".");
85333
+ if (s === 0) {
85334
+ const R = this._getDepends(u);
85335
85335
  this._codesCol[this._blockCount].push({
85336
- code: O,
85336
+ code: _,
85337
85337
  isStmtFunc: !0,
85338
- depends: _
85338
+ depends: R
85339
85339
  });
85340
85340
  }
85341
- if (this._isInConditionalStmt && u && !this._isExperssion) {
85342
- const _ = `$$result_${this._preRunMemberFuncsCount}`;
85341
+ if (this._isInConditionalStmt && M && !this._isExperssion) {
85342
+ const R = `$$result_${this._preRunMemberFuncsCount}`;
85343
85343
  this._preRunMemberFuncsCount++;
85344
- const R = this._preRunMembersFuncs[this._blockCount] || [];
85345
- return R.push(`const ${_} = ${O}`), this._preRunMembersFuncs[this._blockCount] = R, _;
85344
+ const T = this._preRunMembersFuncs[this._blockCount] || [];
85345
+ return T.push(`const ${R} = ${_}`), this._preRunMembersFuncs[this._blockCount] = T, R;
85346
85346
  }
85347
- return O;
85347
+ return _;
85348
85348
  }
85349
85349
  _parserMethodElement(e, t, r) {
85350
85350
  var _, R, T, N, B, m;
@@ -100931,7 +100931,7 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
100931
100931
  s.nameList = this.visit(u), this._inputVarName = (o = s.nameList) == null ? void 0 : o.name;
100932
100932
  break;
100933
100933
  case G.RULE_singleExpression:
100934
- s.value = this.visit(u), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
100934
+ s.value = this.visit(u), this._inputVarName && (s.value.name = this._inputVarName), this._inputVarName = void 0, ((a = s.value) == null ? void 0 : a.type) === "plot" && (s.nameList.declare = void 0);
100935
100935
  break;
100936
100936
  }
100937
100937
  }
@@ -104669,24 +104669,24 @@ ${this._prefixNameVar}.setCacheData("m${u}_" + ${M}, ${T})
104669
104669
  }
104670
104670
  }
104671
104671
  _parserMethodExpression(e) {
104672
- const { exprs: t, ctx: r } = e, { column: i, line: s } = r.start, o = `${s}_${i}`;
104673
- let a = this._isInFunc ? `$posStr + "__${o}"` : `"${this._scriptType === Fr.library ? `export_${this._libTitle}_` : ""}${o}"`;
104674
- a = this._isInLoop && !this._isExperssion ? `"($" + $$count${this._count} + "_$)" + ${a}` : a, i === 0 && (this._dependsObj[a] = /* @__PURE__ */ new Map());
104675
- let u = [];
104676
- for (const O of t) {
104677
- let _ = "";
104678
- O.selfArg ? (_ = this._parserMethodElement(O, a, u.join(".")), u = []) : _ = this._parserMethodElement(O, a, ""), u.push(_);
104679
- }
104680
- const M = u.join(".");
104681
- if (i === 0) {
104682
- const O = this._getDepends(a);
104672
+ const { exprs: t, ctx: r, name: i = "" } = e, { column: s, line: o } = r.start, a = `${i}_${o}_${s}`;
104673
+ let u = this._isInFunc ? `$posStr + "__${a}"` : `"${this._scriptType === Fr.library ? `export_${this._libTitle}_` : ""}${a}"`;
104674
+ u = this._isInLoop && !this._isExperssion ? `"($" + $$count${this._count} + "_$)" + ${u}` : u, s === 0 && (this._dependsObj[u] = /* @__PURE__ */ new Map());
104675
+ let M = [];
104676
+ for (const _ of t) {
104677
+ let R = "";
104678
+ _.selfArg ? (R = this._parserMethodElement(_, u, M.join(".")), M = []) : R = this._parserMethodElement(_, u, ""), M.push(R);
104679
+ }
104680
+ const O = M.join(".");
104681
+ if (s === 0) {
104682
+ const _ = this._getDepends(u);
104683
104683
  this._codesCol[this._blockCount].push({
104684
- code: M,
104684
+ code: O,
104685
104685
  isStmtFunc: !0,
104686
- depends: O
104686
+ depends: _
104687
104687
  });
104688
104688
  }
104689
- return M;
104689
+ return O;
104690
104690
  }
104691
104691
  _parserMethodElement(e, t, r) {
104692
104692
  var R, T, N, B, m, g, x;