@lcap/asl
Version:
NetEase Application Specific Language
26 lines (24 loc) • 564 B
text/typescript
import { immutable } from '../../decorators';
import { ExpressionNode, LOGIC_TYPE } from '../LogicItem';
/**
* 布尔字面量
* @TODO: 当前类目前主要用于生成文档
*/
export class BooleanLiteral extends ExpressionNode {
/**
* 逻辑节点类型
*/
()
public readonly type: LOGIC_TYPE = LOGIC_TYPE.BooleanLiteral;
/**
* 字面量的值
*/
()
public readonly value: string = undefined;
/**
* 生成 JS 脚本
*/
toScript() {
return String(this.value);
}
}