Argument 实际参数
1. 结构声明
- TS Declaration
- JSON Schema
class Argument extends LogicItem {
keyword: string;
spread?: boolean;
expression: LogicItem;
}
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"folded": {
"type": "boolean"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
},
"keyword": {
"type": "string"
},
"spread": {
"type": "boolean"
},
"expression": {
"$ref": "#/definitions/LogicItem"
}
},
"required": [
"keyword",
"expression"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "Argument",
"keyword": "",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "list1"
}
}
concept: Argument
keyword: ""
expression:
concept: Identifier
namespace: ""
name: list1
(2) 示例
AST 如下:
- JSON
- YAML
{
"concept": "Argument",
"keyword": "list",
"expression": {
"concept": "Identifier",
"namespace": "",
"name": "list1"
}
}
concept: Argument
keyword: list
expression:
concept: Identifier
namespace: ""
name: list1