Skip to main content
Version: 3.7

NumericLiteral 数字字面量

1. 结构声明

class NumericLiteral extends LogicItem {
value: string;
typeAnnotation: TypeAnnotation;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "NumericLiteral",
"value": "24",
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeNamespace": "nasl.core",
"typeKind": "primitive",
"typeName": "Long",
"inferred": false,
"ruleMap": {}
}
}

对应的代码如下:

24