221 lines
4.9 KiB
Plaintext
221 lines
4.9 KiB
Plaintext
![]() |
---
|
||
|
source: kcl-lib/src/simulation_tests.rs
|
||
|
description: Result of parsing axial-fan.kcl
|
||
|
---
|
||
|
{
|
||
|
"Ok": {
|
||
|
"body": [
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"path": {
|
||
|
"type": "Kcl",
|
||
|
"filename": "fan-housing.kcl"
|
||
|
},
|
||
|
"preComments": [
|
||
|
"// Import all parts into assembly file"
|
||
|
],
|
||
|
"selector": {
|
||
|
"type": "None",
|
||
|
"alias": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "fanHousing",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
}
|
||
|
},
|
||
|
"start": 0,
|
||
|
"type": "ImportStatement",
|
||
|
"type": "ImportStatement"
|
||
|
},
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"path": {
|
||
|
"type": "Kcl",
|
||
|
"filename": "motor.kcl"
|
||
|
},
|
||
|
"selector": {
|
||
|
"type": "None",
|
||
|
"alias": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "motor",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
}
|
||
|
},
|
||
|
"start": 0,
|
||
|
"type": "ImportStatement",
|
||
|
"type": "ImportStatement"
|
||
|
},
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"path": {
|
||
|
"type": "Kcl",
|
||
|
"filename": "fan.kcl"
|
||
|
},
|
||
|
"selector": {
|
||
|
"type": "None",
|
||
|
"alias": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "fan",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
}
|
||
|
},
|
||
|
"start": 0,
|
||
|
"type": "ImportStatement",
|
||
|
"type": "ImportStatement"
|
||
|
},
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"expression": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "fanHousing",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name",
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"preComments": [
|
||
|
"",
|
||
|
"",
|
||
|
"// Produce the model for each imported part"
|
||
|
],
|
||
|
"start": 0,
|
||
|
"type": "ExpressionStatement",
|
||
|
"type": "ExpressionStatement"
|
||
|
},
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"expression": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "motor",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name",
|
||
|
"type": "Name"
|
||
|
},
|
||
|
"start": 0,
|
||
|
"type": "ExpressionStatement",
|
||
|
"type": "ExpressionStatement"
|
||
|
},
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"expression": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "fan",
|
||
|
"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": 0,
|
||
|
"end": 0,
|
||
|
"name": "settings",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"preComments": [
|
||
|
"// PC Fan",
|
||
|
"// A small axial fan, used to push or draw airflow over components to remove excess heat",
|
||
|
"",
|
||
|
"",
|
||
|
"// Set units"
|
||
|
],
|
||
|
"properties": [
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"key": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "defaultLengthUnit",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"start": 0,
|
||
|
"type": "ObjectProperty",
|
||
|
"value": {
|
||
|
"abs_path": false,
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": {
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"name": "mm",
|
||
|
"start": 0,
|
||
|
"type": "Identifier"
|
||
|
},
|
||
|
"path": [],
|
||
|
"start": 0,
|
||
|
"type": "Name",
|
||
|
"type": "Name"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"start": 0,
|
||
|
"type": "Annotation"
|
||
|
}
|
||
|
],
|
||
|
"nonCodeMeta": {
|
||
|
"nonCodeNodes": {},
|
||
|
"startNodes": [
|
||
|
{
|
||
|
"commentStart": 0,
|
||
|
"end": 0,
|
||
|
"start": 0,
|
||
|
"type": "NonCodeNode",
|
||
|
"value": {
|
||
|
"type": "newLine"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"start": 0
|
||
|
}
|
||
|
}
|