Skip to main content
Version: 3.3

UnaryExpression 一元表达式

1. 结构声明

class UnaryExpression extends LogicItem {
argument: LogicItem;
operator: '!' | 'isNull';
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "UnaryExpression",
"operator": "!",
"argument": {
"concept": "Identifier",
"namespace": "",
"name": "condition"
}
}

(2) 数据查询中的一元表达式

AST 如下:

{
"concept": "UnaryExpression",
"operator": "isNull",
"argument": {
"concept": "Identifier",
"namespace": "",
"name": "condition"
}
}