StringLiteral 字符串字面量
1. 结构声明
- TS Declaration
- JSON Schema
class StringLiteral extends LogicItem {
value: string = '';
}
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"folded": {
"type": "boolean"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
},
"value": {
"type": "string"
}
},
"required": [
"value"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "StringLiteral",
"value": "这是一段文本"
}
concept: StringLiteral
value: 这是一段文本