@lcap/asl
Version:
NetEase Application Specific Language
31 lines (29 loc) • 730 B
text/typescript
import { immutable } from '../../decorators';
import { ExpressionNode, LOGIC_TYPE } from '../LogicItem';
/**
* 调用接口参数
* @TODO: 当前类目前主要用于生成文档
*/
export class CallInterParam extends ExpressionNode {
/**
* 逻辑节点类型
*/
()
public readonly type: LOGIC_TYPE = LOGIC_TYPE.CallInterParam;
/**
* 参数名
*/
()
public readonly name: string = undefined;
/**
* 参数值
*/
()
public readonly callInterParamValue: ExpressionNode = undefined;
/**
* 生成 JS 脚本
*/
toScript() {
return this.callInterParamValue ? this.callInterParamValue.toScript() : null;
}
}