2022-11-03 13:54:49 +00:00
|
|
|
{
|
|
|
|
|
"graph": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"name": "",
|
2023-02-27 22:33:33 +00:00
|
|
|
"isFolderOnly": false,
|
2022-11-03 13:54:49 +00:00
|
|
|
"ast": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:0:0-6:1:81",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:0:0-6:1:81",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:0:0-0:7:7",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:0:0-0:7:7",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "_shape_",
|
|
|
|
|
"raw_string": "_shape_"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {
|
|
|
|
|
"double_quoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:9:9-0:16:16",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "shape",
|
|
|
|
|
"raw_string": "shape"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-06-06 22:48:14 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:17:17-6:1:81",
|
2022-11-03 13:54:49 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,1:2:21-1:14:33",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,1:2:21-1:7:26",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,1:2:21-1:7:26",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "shape",
|
|
|
|
|
"raw_string": "shape"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,1:9:28-1:14:33",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "class",
|
|
|
|
|
"raw_string": "class"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,3:1:36-3:11:46",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,3:1:36-3:11:46",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,3:1:36-3:11:46",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "field here",
|
|
|
|
|
"raw_string": "field here"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,4:2:49-4:19:66",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,4:2:49-4:11:58",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,4:2:49-4:11:58",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "GetType()",
|
|
|
|
|
"raw_string": "GetType()"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,4:13:60-4:19:66",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "string",
|
|
|
|
|
"raw_string": "string"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,5:2:69-5:12:79",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,5:2:69-5:6:73",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,5:2:69-5:6:73",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "Is()",
|
|
|
|
|
"raw_string": "Is()"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,5:8:75-5:12:79",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "bool",
|
|
|
|
|
"raw_string": "bool"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"root": {
|
|
|
|
|
"id": "",
|
|
|
|
|
"id_val": "",
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
2023-01-24 11:09:40 +00:00
|
|
|
"edges": null,
|
2022-11-03 13:54:49 +00:00
|
|
|
"objects": [
|
|
|
|
|
{
|
|
|
|
|
"id": "_shape_",
|
|
|
|
|
"id_val": "_shape_",
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:0:0-0:7:7",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/class_paren.d2,0:0:0-0:7:7",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "_shape_",
|
|
|
|
|
"raw_string": "_shape_"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
2023-01-24 11:09:40 +00:00
|
|
|
"map_key_edge_index": -1
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"class": {
|
|
|
|
|
"fields": [
|
|
|
|
|
{
|
|
|
|
|
"name": "field here",
|
|
|
|
|
"type": "",
|
|
|
|
|
"visibility": "public"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"methods": [
|
|
|
|
|
{
|
|
|
|
|
"name": "GetType()",
|
|
|
|
|
"return": "string",
|
|
|
|
|
"visibility": "public"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Is()",
|
|
|
|
|
"return": "bool",
|
|
|
|
|
"visibility": "public"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "shape"
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": "class"
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"err": null
|
|
|
|
|
}
|