FrontendVariable 前端全局变量
1. 结构声明
- TS Declaration
- JSON Schema
class FrontendVariable extends Variable {
localCache: boolean = false;
}
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"defaultValue": {
"$ref": "#/definitions/DefaultValue"
},
"localCache": {
"type": "boolean"
}
},
"required": [
"localCache",
"name",
"typeAnnotation"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "FrontendVariable",
"localCache": false,
"name": "frontendVariable1",
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "String",
"inferred": false,
"ruleMap": {}
}
}
concept: FrontendVariable
localCache: false
name: frontendVariable1
typeAnnotation:
concept: TypeAnnotation
typeKind: primitive
typeNamespace: nasl.core
typeName: String
inferred: false
ruleMap: {}