2024-12-17 09:38:32 +13:00
|
|
|
---
|
|
|
|
source: kcl/src/simulation_tests.rs
|
|
|
|
description: Result of parsing import_whole.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-01-22 15:23:55 +13:00
|
|
|
"end": 66,
|
2025-01-29 08:28:32 +13:00
|
|
|
"path": {
|
|
|
|
"type": "Kcl",
|
|
|
|
"filename": "exported_mod.kcl"
|
|
|
|
},
|
2024-12-17 09:38:32 +13:00
|
|
|
"selector": {
|
|
|
|
"type": "None",
|
|
|
|
"alias": {
|
2025-01-22 15:23:55 +13:00
|
|
|
"end": 66,
|
2024-12-17 09:38:32 +13:00
|
|
|
"name": "foo",
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 63,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 34,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "ImportStatement",
|
|
|
|
"type": "ImportStatement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"declaration": {
|
2025-02-06 20:03:12 -06:00
|
|
|
"end": 123,
|
2024-12-17 09:38:32 +13:00
|
|
|
"id": {
|
2025-01-22 15:23:55 +13:00
|
|
|
"end": 71,
|
2024-12-17 09:38:32 +13:00
|
|
|
"name": "bar",
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 68,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-01-22 15:23:55 +13:00
|
|
|
"end": 77,
|
2024-12-17 09:38:32 +13:00
|
|
|
"name": "foo",
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 74,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-02-06 20:03:12 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"name": "faces"
|
|
|
|
},
|
|
|
|
"arg": {
|
|
|
|
"elements": [
|
|
|
|
{
|
|
|
|
"end": 103,
|
|
|
|
"raw": "'end'",
|
|
|
|
"start": 98,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-02-06 20:03:12 -06:00
|
|
|
"value": "end"
|
2024-12-17 09:38:32 +13:00
|
|
|
}
|
2025-02-06 20:03:12 -06:00
|
|
|
],
|
|
|
|
"end": 104,
|
|
|
|
"start": 97,
|
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
}
|
2024-12-17 09:38:32 +13:00
|
|
|
},
|
|
|
|
{
|
2025-02-06 20:03:12 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"name": "thickness"
|
|
|
|
},
|
|
|
|
"arg": {
|
|
|
|
"end": 122,
|
|
|
|
"raw": "0.25",
|
|
|
|
"start": 118,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.25,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
}
|
2024-12-17 09:38:32 +13:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-01-22 15:23:55 +13:00
|
|
|
"end": 88,
|
2024-12-17 09:38:32 +13:00
|
|
|
"name": "shell",
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 83,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-02-06 20:03:12 -06:00
|
|
|
"end": 123,
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 83,
|
2025-02-06 20:03:12 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2024-12-17 09:38:32 +13:00
|
|
|
}
|
|
|
|
],
|
2025-02-06 20:03:12 -06:00
|
|
|
"end": 123,
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 74,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "PipeExpression",
|
|
|
|
"type": "PipeExpression"
|
|
|
|
},
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 68,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-02-06 20:03:12 -06:00
|
|
|
"end": 123,
|
2024-12-17 09:38:32 +13:00
|
|
|
"kind": "const",
|
2025-01-22 15:23:55 +13:00
|
|
|
"start": 68,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
}
|
|
|
|
],
|
2025-02-06 20:03:12 -06:00
|
|
|
"end": 124,
|
2025-02-13 16:17:09 +13:00
|
|
|
"innerAttrs": [
|
|
|
|
{
|
|
|
|
"end": 33,
|
|
|
|
"name": {
|
|
|
|
"end": 9,
|
|
|
|
"name": "settings",
|
|
|
|
"start": 1,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"end": 32,
|
|
|
|
"key": {
|
|
|
|
"end": 27,
|
|
|
|
"name": "defaultLengthUnit",
|
|
|
|
"start": 10,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"start": 10,
|
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
|
|
|
"end": 32,
|
|
|
|
"name": "mm",
|
|
|
|
"start": 30,
|
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"start": 0,
|
|
|
|
"type": "Annotation"
|
|
|
|
}
|
|
|
|
],
|
2024-12-17 09:38:32 +13:00
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"0": [
|
|
|
|
{
|
2025-01-22 15:23:55 +13:00
|
|
|
"end": 68,
|
|
|
|
"start": 66,
|
2024-12-17 09:38:32 +13:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-02-13 16:17:09 +13:00
|
|
|
"startNodes": []
|
2024-12-17 09:38:32 +13:00
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|