Skip to main content
Version: 3.5

Assignment 赋值语句

1. 结构声明

class Assignment extends LogicItem {
left: LogicItem;
right: LogicItem;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Assignment",
"label": "赋值",
"left": {
"concept": "Identifier",
"namespace": "",
"name": "result"
},
"right": {
"concept": "MemberExpression",
"object": {
"concept": "Identifier",
"namespace": "",
"name": "product"
},
"property": {
"concept": "Identifier",
"namespace": "",
"name": "price"
}
}
}