Skip to main content
Version: Latest(3.11)

Argument 实际参数

1. 结构声明

class Argument extends LogicItem {
keyword: string;
spread?: boolean;
expression?: LogicItem;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Argument",
"keyword": "",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "list1"
}
}

对应的代码如下:

list1

(2) 示例

AST 如下:

{
"concept": "Argument",
"keyword": "list",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "list1"
}
}

对应的代码如下:

list1