Files
modeling-app/rust/kcl-lib/tests/kcl_samples/multi-axis-robot/ast.snap
Nick Cameron a7e09a89ef Improve snapshot testing (#5856)
* Improve snapshot testing

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

* 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-19 15:06:27 -07:00

236 lines
5.1 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing multi-axis-robot.kcl
---
{
"Ok": {
"body": [
{
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-arm-base.kcl"
},
"selector": {
"type": "None",
"alias": {
"end": 0,
"name": "robotArmBase",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-rotating-base.kcl"
},
"selector": {
"type": "None",
"alias": {
"end": 0,
"name": "rotatingBase",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-arm-j2.kcl"
},
"selector": {
"type": "None",
"alias": {
"end": 0,
"name": "j2RobotArm",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"end": 0,
"path": {
"type": "Kcl",
"filename": "robot-arm-j3.kcl"
},
"selector": {
"type": "None",
"alias": {
"end": 0,
"name": "j3RobotArm",
"start": 0,
"type": "Identifier"
}
},
"start": 0,
"type": "ImportStatement",
"type": "ImportStatement"
},
{
"end": 0,
"expression": {
"end": 0,
"name": "robotArmBase",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"end": 0,
"expression": {
"end": 0,
"name": "rotatingBase",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"end": 0,
"expression": {
"end": 0,
"name": "j2RobotArm",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
},
{
"end": 0,
"expression": {
"end": 0,
"name": "j3RobotArm",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"start": 0,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
"end": 0,
"innerAttrs": [
{
"end": 0,
"name": {
"end": 0,
"name": "settings",
"start": 0,
"type": "Identifier"
},
"properties": [
{
"end": 0,
"key": {
"end": 0,
"name": "defaultLengthUnit",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"end": 0,
"name": "in",
"start": 0,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 0,
"type": "Annotation"
}
],
"nonCodeMeta": {
"nonCodeNodes": {
"3": [
{
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"startNodes": [
{
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Robot Arm",
"style": "line"
}
},
{
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "A 4 axis robotic arm for industrial use. These machines can be used for assembly, packaging, organization of goods, and quality inspection processes",
"style": "line"
}
},
{
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Set Units",
"style": "line"
}
},
{
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"start": 0
}
}