import { immutable } from '../../decorators'; import { ExpressionNode, LOGIC_TYPE } from '../LogicItem'; /** * 注释 * @TODO: 当前类目前主要用于生成文档 */ export class Comment extends ExpressionNode { /** * 逻辑节点类型 */ @immutable() public readonly type: LOGIC_TYPE = LOGIC_TYPE.Comment; /** * 注释内容 */ @immutable() public readonly value: string = undefined; /** * 生成 JS 脚本 */ toScript() { return `/* ${this.value} */`; } }