2025-05-19 19:42:25 -07:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of parsing nested_main_kcl.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"path": {
|
|
|
|
"type": "Kcl",
|
|
|
|
"filename": "nested/foo/bar/main.kcl"
|
|
|
|
},
|
|
|
|
"selector": {
|
|
|
|
"type": "None",
|
|
|
|
"alias": {
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"name": "bar",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"start": 0,
|
|
|
|
"type": "ImportStatement",
|
|
|
|
"type": "ImportStatement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
|
|
|
"expression": {
|
|
|
|
"abs_path": false,
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"name": {
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"name": "bar",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
|
|
|
"start": 0,
|
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
|
|
|
},
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"start": 0,
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"0": [
|
|
|
|
{
|
|
|
|
"commentStart": 0,
|
|
|
|
"end": 0,
|
2025-06-24 14:38:43 -04:00
|
|
|
"moduleId": 0,
|
2025-05-19 19:42:25 -07:00
|
|
|
"start": 0,
|
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"startNodes": []
|
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|