@guihz/trading-vue-editor-tes 0.1.27 → 0.1.29

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.
@@ -25841,8 +25841,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
25841
25841
  p.join(".") === "session" && p.push("session"), p.unshift(e.isConst ? this._prefixNameConst : this._prefixNameVar);
25842
25842
  else {
25843
25843
  jr.includes(p[0]) && (p[0] = `$${p[0]}`);
25844
- const b = { name: p[0], scope: i || s?.varScope || 0, isAgainAssign: t, isArg: s?.isArg, functionName: this._currentFuncName };
25845
- this._setDepend(b);
25844
+ const b = s?.isArg ? 1 : 0, f = { name: p[0], scope: i || s?.varScope || b, isAgainAssign: t, isArg: s?.isArg, functionName: this._currentFuncName };
25845
+ this._setDepend(f);
25846
25846
  }
25847
25847
  return e.isBuiltIn || e.isAgainAssign || t ? p.join(".") : p.join("?.");
25848
25848
  }
@@ -60776,8 +60776,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
60776
60776
  p.unshift(e.isConst ? this._prefixNameConst : this._prefixNameVar);
60777
60777
  else {
60778
60778
  Kr.includes(p[0]) && (p[0] = `$${p[0]}`);
60779
- const b = { name: p[0], scope: i || s?.varScope || 0, isAgainAssign: t, isArg: s?.isArg, functionName: this._currentFuncName };
60780
- this._setDepend(b);
60779
+ const b = s?.isArg ? 1 : 0, f = { name: p[0], scope: i || s?.varScope || b, isAgainAssign: t, isArg: s?.isArg, functionName: this._currentFuncName };
60780
+ this._setDepend(f);
60781
60781
  }
60782
60782
  return e.isBuiltIn || e.isAgainAssign || t ? p.join(".") : p.join("?.");
60783
60783
  }
@@ -79398,8 +79398,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
79398
79398
  const f = b.join(".");
79399
79399
  f === "strategy.opentrades" ? b.push("opentrades") : f === "chart.left_visible_bar_time" ? this._hasLeftVisibleBarTime = !0 : f === "chart.right_visible_bar_time" && (this._hasRightVisibleBarTime = !0), b.unshift(e.isConst ? this._prefixNameConst : this._prefixNameVar);
79400
79400
  } else if (Fe.includes(b[0]) && (b[0] = `$${b[0]}`), !s) {
79401
- const f = { name: b[0], scope: i || o?.varScope || 0, isAgainAssign: t, isArg: o?.isArg, functionName: this._currentFuncName };
79402
- this._setDepend(f);
79401
+ const f = o?.isArg ? 1 : 0, y = { name: b[0], scope: i || o?.varScope || f, isAgainAssign: t, isArg: o?.isArg, functionName: this._currentFuncName };
79402
+ this._setDepend(y);
79403
79403
  }
79404
79404
  return e.isBuiltIn || e.isAgainAssign || t ? b.join(".") : b.join("?.");
79405
79405
  }
@@ -98357,6 +98357,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
98357
98357
  _hasLeftVisibleBarTime = !1;
98358
98358
  _hasRightVisibleBarTime = !1;
98359
98359
  _isExperssion = !1;
98360
+ _hasAlert = !1;
98360
98361
  constructor(e) {
98361
98362
  this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._userTypes = [], this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._enums = /* @__PURE__ */ new Map(), this._preRunMembers = [], this._preRunMembersFuncs = [];
98362
98363
  }
@@ -98392,7 +98393,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
98392
98393
  code: t.join(`;
98393
98394
  `).replace(/;+/g, ";"),
98394
98395
  hasLeftVisibleBarTime: this._hasLeftVisibleBarTime,
98395
- hasRightVisibleBarTime: this._hasRightVisibleBarTime
98396
+ hasRightVisibleBarTime: this._hasRightVisibleBarTime,
98397
+ hasAlert: this._hasAlert
98396
98398
  };
98397
98399
  }
98398
98400
  _parserStmt(e, t = !1) {
@@ -98992,8 +98994,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
98992
98994
  const f = b.join(".");
98993
98995
  f === "strategy.closedtrades" ? b.push("closedtrades") : f === "strategy.opentrades" ? b.push("opentrades") : f === "chart.left_visible_bar_time" ? this._hasLeftVisibleBarTime = !0 : f === "chart.right_visible_bar_time" && (this._hasRightVisibleBarTime = !0), b.unshift(e.isConst ? this._prefixNameConst : this._prefixNameVar);
98994
98996
  } else if (ln.includes(b[0]) && (b[0] = `$${b[0]}`), !s) {
98995
- const f = { name: b[0], scope: i || o?.varScope || 0, isAgainAssign: t, isArg: o?.isArg, functionName: this._currentFuncName };
98996
- this._setDepend(f);
98997
+ const f = o?.isArg ? 1 : 0, y = { name: b[0], scope: i || o?.varScope || f, isAgainAssign: t, isArg: o?.isArg, functionName: this._currentFuncName };
98998
+ this._setDepend(y);
98997
98999
  }
98998
99000
  return e.isBuiltIn || e.isAgainAssign || t ? b.join(".") : b.join("?.");
98999
99001
  }
@@ -99040,7 +99042,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
99040
99042
  s = `var_name: "${E ? `${m}_${E.lineNumber}_${E.column}` : m}"`;
99041
99043
  } else
99042
99044
  ["array.new", "matrix.new"].includes(i) ? s = `type: "${e.type[0]}"` : i === "map.new" && (s = `type: "${e.type}"`);
99043
- i.startsWith(P.INPUT) ? (s = `index: ${this._inputCount}`, this._inputCount++) : i.startsWith("request.") && (b = !0), i = `${this._prefixNameFunc}.${i}`;
99045
+ i.startsWith(P.INPUT) ? (s = `index: ${this._inputCount}`, this._inputCount++) : i.startsWith("request.") ? b = !0 : i === "alert" && (this._hasAlert = !0), i = `${this._prefixNameFunc}.${i}`;
99044
99046
  } else {
99045
99047
  const m = i.split(".");
99046
99048
  let E = m[0];