2025-03-06 18:01:24 -05:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of parsing pipe-with-bend.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 210,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 232,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 232,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "innerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 248,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "10",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 10.0,
|
|
|
|
"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": [
|
|
|
|
"// Define constants"
|
|
|
|
],
|
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 09:22:17 -07:00
|
|
|
"commentStart": 251,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 251,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 251,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "outerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 267,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "20",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 20.0,
|
|
|
|
"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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 270,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 270,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 270,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "bendRadius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 283,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "30",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 30.0,
|
|
|
|
"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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 286,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 286,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 286,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "bendAngle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 298,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "90",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 90.0,
|
|
|
|
"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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 300,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 339,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 339,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "sketch000",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 365,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "\"XZ\"",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "XZ"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 351,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "startSketchOn",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 351,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
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": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a sketch in the 'XZ' plane"
|
|
|
|
],
|
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 09:22:17 -07:00
|
|
|
"commentStart": 370,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 415,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 415,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "outerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 448,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05: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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 457,
|
2025-03-06 18:01:24 -05:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 458,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "bendRadius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 470,
|
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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 474,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "radius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 483,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"left": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 483,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "outerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 499,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 430,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "circle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 09:22:17 -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": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 437,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "sketch000",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
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": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a profile for the outer diameter"
|
|
|
|
],
|
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 09:22:17 -07:00
|
|
|
"commentStart": 501,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 546,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 546,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "innerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 579,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05: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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 588,
|
2025-03-06 18:01:24 -05:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 589,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "bendRadius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 601,
|
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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 605,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "radius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 614,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"left": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 614,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "innerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 630,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 561,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "circle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 561,
|
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": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 568,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "sketch000",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
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": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a profile for the inner diameter"
|
|
|
|
],
|
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 09:22:17 -07:00
|
|
|
"commentStart": 632,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 668,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 668,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "pipeProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 682,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "outerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 705,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "innerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 719,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 700,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "hole",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 700,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 682,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"1": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 721,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "revolve the pipe profile at the desired angle",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"startNodes": []
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"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 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create the profile of the pipe"
|
|
|
|
],
|
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 09:22:17 -07:00
|
|
|
"commentStart": 772,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 772,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 772,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "pipe",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 800,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"name": "axis",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 807,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-20 09:22:17 -07:00
|
|
|
"raw": "'Y'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Y"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 812,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"name": "angle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 820,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"name": "bendAngle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 779,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "revolve",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 779,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 787,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"name": "pipeProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-18 20:34:44 -07:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
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": "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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 178,
|
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 with bend",
|
|
|
|
"// A tubular section or hollow cylinder, usually but not necessarily of circular cross-section, used mainly to convey substances that can flow.",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Set units"
|
|
|
|
],
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 187,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 09:22:17 -07:00
|
|
|
"commentStart": 187,
|
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-20 09:22:17 -07:00
|
|
|
"commentStart": 207,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "in",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
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-03-20 09:22:17 -07:00
|
|
|
"commentStart": 210,
|
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
|
|
|
|
}
|
|
|
|
}
|