Skip to main content
Version: Latest(3.11)

DefaultValue 默认值

1. 结构声明

class DefaultValue extends BaseNode {
expression?: LogicItem;
playground: Array<LogicItem>;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "DefaultValue",
"expression": {
"concept": "NumericLiteral",
"value": "120",
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "Long",
"inferred": false,
"ruleMap": {}
}
},
"playground": []
}

对应的代码如下:

120