2025-02-28 11:52:14 -08:00
|
|
|
---
|
2025-03-04 22:53:31 +13:00
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
2025-02-28 11:52:14 -08:00
|
|
|
description: Result of parsing flush_batch_on_end.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 33,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 84,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 84,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "innerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 100,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "0.364",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.364,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"// Set units in inches (in)",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Define constants"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 106,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 106,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 106,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "outerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 122,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 122,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "35",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 35.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 127,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "64",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 64.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 130,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 130,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 130,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 139,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 139,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "1",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"operator": "+",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 143,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 143,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "1",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 147,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 148,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 187,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 187,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "sketch000",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 213,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"raw": "'XY'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "XY"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 199,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "startSketchOn",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 199,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a sketch on the 'XY' plane"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 218,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 267,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 267,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "outerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 305,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "center",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 314,
|
2025-02-28 17:40:01 -08:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 315,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"raw": "0.0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
2025-02-28 17:40:01 -08:00
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 320,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"raw": "0.0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
}
|
2025-02-28 17:40:01 -08:00
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 328,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "radius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 337,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 337,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"name": "outerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
2025-02-28 17:40:01 -08:00
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 353,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-02-28 11:52:14 -08:00
|
|
|
"value": {
|
2025-02-28 17:40:01 -08:00
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
2025-02-28 11:52:14 -08:00
|
|
|
}
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
|
|
|
{
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 358,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "tag",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 364,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "TagDeclarator",
|
|
|
|
"type": "TagDeclarator",
|
|
|
|
"value": "arc000"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 282,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "circle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 282,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 292,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"name": "sketch000",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a profile of the outside of the pipe"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 374,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 422,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 422,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "innerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 460,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "center",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 469,
|
2025-02-28 17:40:01 -08:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 470,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"raw": "0.0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
2025-02-28 17:40:01 -08:00
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 475,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"raw": "0.0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
}
|
2025-02-28 17:40:01 -08:00
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 483,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "radius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 492,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 492,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"name": "innerDiameter",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
2025-02-28 17:40:01 -08:00
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 508,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-02-28 11:52:14 -08:00
|
|
|
"value": {
|
2025-02-28 17:40:01 -08:00
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
2025-02-28 11:52:14 -08:00
|
|
|
}
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
|
|
|
{
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 513,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "tag",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 17:40:01 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 519,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "TagDeclarator",
|
|
|
|
"type": "TagDeclarator",
|
|
|
|
"value": "arc001"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 437,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "circle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 437,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 447,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"name": "sketch000",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 17:40:01 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a profile of the inside of the pipe"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 529,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 587,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 587,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "pipeProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 601,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "outerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 624,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "innerProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 638,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "PipeSubstitution",
|
|
|
|
"type": "PipeSubstitution"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 619,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "hole",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 619,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 601,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"1": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 640,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "extrude the pipe profile to create the pipe",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"startNodes": []
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "PipeExpression",
|
|
|
|
"type": "PipeExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// create a profile with holes sketch000Profile000Holes"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 689,
|
2025-02-28 11:52:14 -08:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 689,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 689,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "pipe",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 717,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-04 22:53:31 +13:00
|
|
|
"type": "Identifier"
|
2025-02-28 11:52:14 -08:00
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 726,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 696,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "extrude",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 696,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 704,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "pipeProfile",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08: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-02-28 11:52:14 -08:00
|
|
|
"innerAttrs": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "settings",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 10,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"key": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 10,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "defaultLengthUnit",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 30,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"name": "in",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"start": 0,
|
|
|
|
"type": "Annotation"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"nonCodeMeta": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"nonCodeNodes": {},
|
2025-02-28 11:52:14 -08:00
|
|
|
"startNodes": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 33,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-02-28 11:52:14 -08:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|