Files
modeling-app/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ast.snap
Nick Cameron dddcd5ff46 Support paths to names rather than just raw idents (#5778)
* Support paths to names rather than just raw idents

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-24 20:58:55 +13:00

269 lines
6.1 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing multi-axis-robot.kcl
---
{
"Ok": {
"body": [
{
"commentStart": 212,
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-arm-base.kcl"
},
"selector": {
"type": "None",
"alias": {
"commentStart": 245,
"end": 0,
"name": "robotArmBase",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 258,
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-rotating-base.kcl"
},
"selector": {
"type": "None",
"alias": {
"commentStart": 294,
"end": 0,
"name": "rotatingBase",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 307,
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-arm-j2.kcl"
},
"selector": {
"type": "None",
"alias": {
"commentStart": 336,
"end": 0,
"name": "j2RobotArm",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 347,
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-arm-j3.kcl"
},
"selector": {
"type": "None",
"alias": {
"commentStart": 376,
"end": 0,
"name": "j3RobotArm",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"commentStart": 386,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 388,
"end": 0,
"name": {
"commentStart": 388,
"end": 0,
"name": "robotArmBase",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"commentStart": 401,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 401,
"end": 0,
"name": {
"commentStart": 401,
"end": 0,
"name": "rotatingBase",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"commentStart": 414,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 414,
"end": 0,
"name": {
"commentStart": 414,
"end": 0,
"name": "j2RobotArm",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"commentStart": 425,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 425,
"end": 0,
"name": {
"commentStart": 425,
"end": 0,
"name": "j3RobotArm",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
"commentStart": 0,
"end": 0,
"innerAttrs": [
{
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 180,
"end": 0,
"name": "settings",
"start": 0,
"type": "Identifier"
},
"preComments": [
"// Robot Arm",
"// A 4 axis robotic arm for industrial use. These machines can be used for assembly, packaging, organization of goods, and quality inspection processes",
"",
"",
"// Set Units"
],
"properties": [
{
"commentStart": 189,
"end": 0,
"key": {
"commentStart": 189,
"end": 0,
"name": "defaultLengthUnit",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"abs_path": false,
"commentStart": 209,
"end": 0,
"name": {
"commentStart": 209,
"end": 0,
"name": "in",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
],
"start": 0,
"type": "Annotation"
}
],
"nonCodeMeta": {
"nonCodeNodes": {
"3": [
{
"commentStart": 386,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"startNodes": [
{
"commentStart": 212,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"start": 0
}
}