feat: decode Analysis v2 and v3 through a shared statement view
This commit is contained in:
1 parent
58cea75bab
commit
bcd07a43af
13 files changed
+1622
-72
No files matched your search
+263
@@ -0,0 +1,263 @@
|
||||
{
|
||||
"diagnostics": [],
|
||||
"modules": [
|
||||
{
|
||||
"calls": [],
|
||||
"functions": [
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"arms": [
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"kind": "continue",
|
||||
"span": {
|
||||
"end": 183,
|
||||
"start": 173
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"condition_span": {
|
||||
"end": 127,
|
||||
"start": 117
|
||||
},
|
||||
"span": {
|
||||
"end": 127,
|
||||
"start": 117
|
||||
}
|
||||
},
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"kind": "break",
|
||||
"span": {
|
||||
"end": 313,
|
||||
"start": 306
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
"condition_span": {
|
||||
"end": 264,
|
||||
"start": 252
|
||||
},
|
||||
"kind": "loop",
|
||||
"span": {
|
||||
"end": 264,
|
||||
"start": 252
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
"condition_span": {
|
||||
"end": 204,
|
||||
"start": 190
|
||||
},
|
||||
"span": {
|
||||
"end": 204,
|
||||
"start": 190
|
||||
}
|
||||
},
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"kind": "continue",
|
||||
"span": {
|
||||
"end": 483,
|
||||
"start": 473
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"condition_span": {
|
||||
"end": 428,
|
||||
"start": 415
|
||||
},
|
||||
"kind": "loop",
|
||||
"span": {
|
||||
"end": 428,
|
||||
"start": 415
|
||||
}
|
||||
},
|
||||
{
|
||||
"kind": "break",
|
||||
"span": {
|
||||
"end": 511,
|
||||
"start": 504
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "bool",
|
||||
"value": true
|
||||
},
|
||||
"condition_span": {
|
||||
"end": 340,
|
||||
"start": 334
|
||||
},
|
||||
"span": {
|
||||
"end": 340,
|
||||
"start": 334
|
||||
}
|
||||
}
|
||||
],
|
||||
"kind": "branch",
|
||||
"span": {
|
||||
"end": 127,
|
||||
"start": 117
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "bool",
|
||||
"value": false
|
||||
},
|
||||
"condition_span": {
|
||||
"end": 83,
|
||||
"start": 70
|
||||
},
|
||||
"kind": "loop",
|
||||
"span": {
|
||||
"end": 83,
|
||||
"start": 70
|
||||
}
|
||||
},
|
||||
{
|
||||
"kind": "return",
|
||||
"span": {
|
||||
"end": 541,
|
||||
"start": 531
|
||||
},
|
||||
"value": {
|
||||
"kind": "literal",
|
||||
"span": {
|
||||
"end": 0,
|
||||
"start": 0
|
||||
},
|
||||
"type": "int",
|
||||
"value": "0"
|
||||
}
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"unknown"
|
||||
],
|
||||
"heading_span": {
|
||||
"end": 13,
|
||||
"start": 0
|
||||
},
|
||||
"id": "root:default::loop-jumps.mq.md::main",
|
||||
"local_name": "main",
|
||||
"namespace": null,
|
||||
"signature": {
|
||||
"kind": "inferred",
|
||||
"params": []
|
||||
},
|
||||
"span": {
|
||||
"end": 564,
|
||||
"start": 0
|
||||
},
|
||||
"unit_id": "root:default::loop-jumps.mq.md#main"
|
||||
}
|
||||
],
|
||||
"id": "root:default::loop-jumps.mq.md",
|
||||
"imports": [],
|
||||
"package_instance_id": "root:default",
|
||||
"references": [],
|
||||
"relative_path": "loop-jumps.mq.md",
|
||||
"resources": [],
|
||||
"source_digest": "d80d0b20f64e49679204c4adff7829e14199645e0a4ea14fb72289aa30b4aa4e",
|
||||
"units": [
|
||||
{
|
||||
"function": null,
|
||||
"id": "root:default::loop-jumps.mq.md#",
|
||||
"kind": "root",
|
||||
"level": 0,
|
||||
"name": "",
|
||||
"span": {
|
||||
"end": 564,
|
||||
"start": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"function": "root:default::loop-jumps.mq.md::main",
|
||||
"id": "root:default::loop-jumps.mq.md#main",
|
||||
"kind": "function",
|
||||
"level": 2,
|
||||
"name": "main",
|
||||
"span": {
|
||||
"end": 13,
|
||||
"start": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"producer": {
|
||||
"markdown_profile": "marqdo.md.v1",
|
||||
"name": "marqdo",
|
||||
"version": "3.0.0-rc.2"
|
||||
},
|
||||
"project": {
|
||||
"identity_kind": "workspace_snapshot",
|
||||
"lock_digest": "",
|
||||
"root_id": "sha256:752dbbeecd08cab15611883971c53d36e4e0ed4346108c86d45a1028e065ee1e",
|
||||
"stdlib": {
|
||||
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
|
||||
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
},
|
||||
"schema": "marqdo.analysis",
|
||||
"schema_version": 3
|
||||
}
|
||||
Reference in new issue
Block a user