()
| 100 | * 获得表达式值 |
| 101 | */ |
| 102 | @computed get code() { |
| 103 | if (isJSExpression(this.value)) { |
| 104 | return this.value.value; |
| 105 | } |
| 106 | // todo: JSFunction ... |
| 107 | if (this.type === 'slot') { |
| 108 | return JSON.stringify(this._slotNode!.export(IPublicEnumTransformStage.Save)); |
| 109 | } |
| 110 | return this._code != null ? this._code : JSON.stringify(this.value); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * 设置表达式值 |
nothing calls this directly
no test coverage detected