@guihz/trading-vue-editor-tes 0.0.146 → 0.0.148
Sign up to get free protection for your applications and to get access to all the features.
@@ -78,9 +78,9 @@ ${this._prefixNameVar}.againAssignParse(${E}, ${F});
|
|
78
78
|
${b}
|
79
79
|
}`;n||this._codesCol[this._blockCount].push({code:T,depends:this._getDepends(h)});const x=n?this._functionalProcess(T):T;return this._isSwitch=p,x}_parserCases(e,n=!1){const r=[];for(const a of e)r.push(this._parserCase(a,n));return r.join(`
|
80
80
|
`)}_parserDefaultCase(e,n=!1){return`default:
|
81
|
-
${this._parserBlock(e.block,n)}
|
81
|
+
{ ${this._parserBlock(e.block,n)} }
|
82
82
|
break;`}_parserCase(e,n=!1){const{condition:r,block:a}=e;return`case ${this._parserSingleExpression(r)}:
|
83
|
-
${this._parserBlock(a,n)}
|
83
|
+
{ ${this._parserBlock(a,n)} }
|
84
84
|
break;`}_parserWhileStatement(e,n=!1){const{condition:r,block:a}=e;let c=`$while${this._blockCount}`;n||(this._dependsObj[c]=new Map);const h=this._isInLoop;this._isInLoop=!0;const p=`$start${this._count++}`,E=`const ${p} = Date.now()`,b=`$$count${this._count}`;let T=`while (${this._parserSingleExpression(r)}) {
|
85
85
|
if (Date.now() - ${p} > 500) {
|
86
86
|
throw new Error('${xe.loopRuntimeErr}')
|
@@ -8,6 +8,7 @@ export default class InitEditor {
|
|
8
8
|
private _originalScript?;
|
9
9
|
private _onActionTrigger?;
|
10
10
|
private _onLinkOpen?;
|
11
|
+
private _registerList;
|
11
12
|
constructor(editor: editor.IStandaloneCodeEditor, monaco: Monaco, onActionTrigger?: (actionId: string) => void);
|
12
13
|
addLinkOpenFunc(onLinkOpen: (source: string, index?: number) => void): void;
|
13
14
|
updateActionTrigger(onActionTrigger?: (actionId: string) => void): void;
|