2025-03-06 18:01:24 -05:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of parsing pipe.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 94,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 117,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 117,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "pipeInnerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 137,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "2.0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"value": 2.0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
2025-04-04 11:03:13 -07:00
|
|
|
"// Define parameters"
|
2025-03-20 16:23:20 +13:00
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 141,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 141,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 141,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "pipeOuterDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 161,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "2.375",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"value": 2.375,
|
2025-03-06 18:01:24 -05:00
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 167,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 167,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 167,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "pipeLength",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 180,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "6",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"value": 6.0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 181,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 207,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 207,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "pipeBase",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-26 08:53:34 -07:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 232,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-26 08:53:34 -07:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 232,
|
2025-03-26 08:53:34 -07:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "XZ",
|
2025-03-26 08:53:34 -07:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-26 08:53:34 -07:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 218,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 218,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
|
|
|
"name": "startSketchOn",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 218,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 251,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "center",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 260,
|
2025-03-06 18:01:24 -05:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 261,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 264,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
}
|
2025-04-04 11:03:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
|
|
|
"commentStart": 268,
|
|
|
|
"end": 0,
|
|
|
|
"name": "radius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
|
|
|
"commentStart": 277,
|
|
|
|
"end": 0,
|
|
|
|
"left": {
|
|
|
|
"abs_path": false,
|
|
|
|
"commentStart": 277,
|
|
|
|
"end": 0,
|
|
|
|
"name": {
|
|
|
|
"commentStart": 277,
|
|
|
|
"end": 0,
|
|
|
|
"name": "pipeOuterDiameter",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
|
|
|
"start": 0,
|
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
|
|
|
"commentStart": 297,
|
|
|
|
"end": 0,
|
|
|
|
"raw": "2",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"start": 0,
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 241,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 241,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "circle",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 241,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
2025-04-04 11:03:13 -07:00
|
|
|
"unlabeled": {
|
|
|
|
"commentStart": 248,
|
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 316,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"abs_path": false,
|
|
|
|
"commentStart": 325,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": {
|
|
|
|
"commentStart": 325,
|
|
|
|
"end": 0,
|
|
|
|
"name": "pipeLength",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 305,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 305,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "extrude",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 305,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
2025-04-04 11:03:13 -07:00
|
|
|
"unlabeled": {
|
|
|
|
"commentStart": 313,
|
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"commentStart": 218,
|
|
|
|
"end": 0,
|
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"2": [
|
|
|
|
{
|
|
|
|
"commentStart": 336,
|
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "Extrude a hole through the length of the pipe",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"startNodes": []
|
|
|
|
},
|
|
|
|
"start": 0,
|
|
|
|
"type": "PipeExpression",
|
|
|
|
"type": "PipeExpression"
|
|
|
|
},
|
|
|
|
"start": 0,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
|
|
|
"end": 0,
|
|
|
|
"kind": "const",
|
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Create the pipe base"
|
|
|
|
],
|
|
|
|
"start": 0,
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"commentStart": 387,
|
|
|
|
"declaration": {
|
|
|
|
"commentStart": 387,
|
|
|
|
"end": 0,
|
|
|
|
"id": {
|
|
|
|
"commentStart": 387,
|
|
|
|
"end": 0,
|
|
|
|
"name": "pipe",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": [
|
2025-03-06 18:01:24 -05:00
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"abs_path": false,
|
|
|
|
"commentStart": 408,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": {
|
|
|
|
"commentStart": 408,
|
|
|
|
"end": 0,
|
|
|
|
"name": "pipeBase",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 418,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "'end'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "end"
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 394,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 394,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "startSketchOn",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 394,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 437,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "center",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 446,
|
2025-03-06 18:01:24 -05:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 447,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 450,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
}
|
2025-04-04 11:03:13 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
|
|
|
"commentStart": 454,
|
|
|
|
"end": 0,
|
|
|
|
"name": "radius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
|
|
|
"commentStart": 463,
|
|
|
|
"end": 0,
|
|
|
|
"left": {
|
|
|
|
"abs_path": false,
|
|
|
|
"commentStart": 463,
|
|
|
|
"end": 0,
|
|
|
|
"name": {
|
|
|
|
"commentStart": 463,
|
|
|
|
"end": 0,
|
|
|
|
"name": "pipeInnerDiameter",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
|
|
|
"start": 0,
|
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
|
|
|
"commentStart": 483,
|
|
|
|
"end": 0,
|
|
|
|
"raw": "2",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"start": 0,
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 430,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 430,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "circle",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 430,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 502,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-07 22:07:16 -06:00
|
|
|
"arg": {
|
|
|
|
"argument": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 512,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 512,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "pipeLength",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-07 22:07:16 -06:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 511,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"operator": "-",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "UnaryExpression",
|
|
|
|
"type": "UnaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 491,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 491,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "extrude",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 491,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
2025-04-04 11:03:13 -07:00
|
|
|
"unlabeled": {
|
|
|
|
"commentStart": 499,
|
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 540,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "color",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 548,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"raw": "\"#a24ed0\"",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "#a24ed0"
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 529,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 529,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
2025-04-04 11:03:13 -07:00
|
|
|
"name": "appearance",
|
2025-03-24 20:58:55 +13:00
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 529,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
|
|
|
}
|
|
|
|
],
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 394,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "PipeExpression",
|
|
|
|
"type": "PipeExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"innerAttrs": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 62,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "settings",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"// Pipe",
|
2025-04-04 11:03:13 -07:00
|
|
|
"// Piping for the pipe flange assembly",
|
2025-03-20 16:23:20 +13:00
|
|
|
"",
|
|
|
|
"",
|
2025-04-04 11:03:13 -07:00
|
|
|
"// Set units"
|
2025-03-20 16:23:20 +13:00
|
|
|
],
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 71,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 71,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "defaultLengthUnit",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 91,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 91,
|
2025-03-24 20:58:55 +13:00
|
|
|
"end": 0,
|
|
|
|
"name": "in",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Annotation"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"nonCodeMeta": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"nonCodeNodes": {},
|
2025-03-06 18:01:24 -05:00
|
|
|
"startNodes": [
|
|
|
|
{
|
2025-04-04 11:03:13 -07:00
|
|
|
"commentStart": 94,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|