281 lines
8.8 KiB
JSON
Generated
281 lines
8.8 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"name": "",
|
|
"isFolderOnly": false,
|
|
"ast": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:0:0-5:1:73",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:0:0-5:1:73",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:0:0-0:7:7",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:0:0-0:7:7",
|
|
"value": [
|
|
{
|
|
"string": "_shape_",
|
|
"raw_string": "_shape_"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {
|
|
"double_quoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:9:9-0:16:16",
|
|
"value": [
|
|
{
|
|
"string": "shape",
|
|
"raw_string": "shape"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:17:17-5:1:73",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,1:2:21-1:18:37",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,1:2:21-1:7:26",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,1:2:21-1:7:26",
|
|
"value": [
|
|
{
|
|
"string": "shape",
|
|
"raw_string": "shape"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,1:9:28-1:18:37",
|
|
"value": [
|
|
{
|
|
"string": "sql_table",
|
|
"raw_string": "sql_table"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,3:2:41-3:19:58",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,3:2:41-3:11:50",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,3:2:41-3:11:50",
|
|
"value": [
|
|
{
|
|
"string": "GetType()",
|
|
"raw_string": "GetType()"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,3:13:52-3:19:58",
|
|
"value": [
|
|
{
|
|
"string": "string",
|
|
"raw_string": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,4:2:61-4:12:71",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,4:2:61-4:6:65",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,4:2:61-4:6:65",
|
|
"value": [
|
|
{
|
|
"string": "Is()",
|
|
"raw_string": "Is()"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,4:8:67-4:12:71",
|
|
"value": [
|
|
{
|
|
"string": "bool",
|
|
"raw_string": "bool"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"root": {
|
|
"id": "",
|
|
"id_val": "",
|
|
"attributes": {
|
|
"label": {
|
|
"value": ""
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
"edges": null,
|
|
"objects": [
|
|
{
|
|
"id": "_shape_",
|
|
"id_val": "_shape_",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:0:0-0:7:7",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/sql_paren.d2,0:0:0-0:7:7",
|
|
"value": [
|
|
{
|
|
"string": "_shape_",
|
|
"raw_string": "_shape_"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
}
|
|
],
|
|
"sql_table": {
|
|
"columns": [
|
|
{
|
|
"name": {
|
|
"label": "GetType()",
|
|
"fontSize": 0,
|
|
"fontFamily": "",
|
|
"language": "",
|
|
"color": "",
|
|
"italic": false,
|
|
"bold": false,
|
|
"underline": false,
|
|
"labelWidth": 0,
|
|
"labelHeight": 0
|
|
},
|
|
"type": {
|
|
"label": "string",
|
|
"fontSize": 0,
|
|
"fontFamily": "",
|
|
"language": "",
|
|
"color": "",
|
|
"italic": false,
|
|
"bold": false,
|
|
"underline": false,
|
|
"labelWidth": 0,
|
|
"labelHeight": 0
|
|
},
|
|
"constraint": null,
|
|
"reference": ""
|
|
},
|
|
{
|
|
"name": {
|
|
"label": "Is()",
|
|
"fontSize": 0,
|
|
"fontFamily": "",
|
|
"language": "",
|
|
"color": "",
|
|
"italic": false,
|
|
"bold": false,
|
|
"underline": false,
|
|
"labelWidth": 0,
|
|
"labelHeight": 0
|
|
},
|
|
"type": {
|
|
"label": "bool",
|
|
"fontSize": 0,
|
|
"fontFamily": "",
|
|
"language": "",
|
|
"color": "",
|
|
"italic": false,
|
|
"bold": false,
|
|
"underline": false,
|
|
"labelWidth": 0,
|
|
"labelHeight": 0
|
|
},
|
|
"constraint": null,
|
|
"reference": ""
|
|
}
|
|
]
|
|
},
|
|
"attributes": {
|
|
"label": {
|
|
"value": "shape"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "sql_table"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
]
|
|
},
|
|
"err": null
|
|
}
|