2025-03-06 18:01:24 -05:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of parsing i-beam.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 143,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 170,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 170,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamLength",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 183,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "24",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 24.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 Beam Dimensions"
|
|
|
|
],
|
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": 186,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 186,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 186,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamWidth",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 198,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "2.663",
|
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.663,
|
|
|
|
"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 16:23:20 +13:00
|
|
|
"commentStart": 204,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 204,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 204,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamHeight",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 217,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "4",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 4.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 16:23:20 +13:00
|
|
|
"commentStart": 219,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 219,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 219,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "wallThickness",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 235,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "0.293",
|
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.293,
|
|
|
|
"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 16:23:20 +13:00
|
|
|
"commentStart": 240,
|
2025-03-06 18:01:24 -05:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 367,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 367,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "sketch001",
|
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-20 16:23:20 +13:00
|
|
|
"commentStart": 393,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 379,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 379,
|
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": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 420,
|
2025-03-06 18:01:24 -05:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 421,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 424,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 424,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamHeight",
|
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 16:23:20 +13:00
|
|
|
"commentStart": 435,
|
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"
|
|
|
|
}
|
|
|
|
],
|
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-03-20 16:23:20 +13:00
|
|
|
"commentStart": 439,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 405,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "startProfileAt",
|
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
|
|
|
"commentStart": 405,
|
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": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 453,
|
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": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 462,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 462,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "beamWidth",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 472,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 447,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "xLine",
|
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
|
|
|
"commentStart": 447,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 486,
|
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-20 16:23:20 +13:00
|
|
|
"commentStart": 496,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "wallThickness",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 495,
|
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-20 16:23:20 +13:00
|
|
|
"commentStart": 480,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "yLine",
|
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
|
|
|
"commentStart": 480,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 522,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "endAbsolute",
|
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": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 536,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"left": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 536,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "wallThickness",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 550,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 516,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "xLine",
|
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
|
|
|
"commentStart": 516,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 564,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "endAbsolute",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 578,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2025-03-06 18:01:24 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 558,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"name": "yLine",
|
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
|
|
|
"commentStart": 558,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-07 22:07:16 -06:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
2025-03-06 18:01:24 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 595,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 597,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 597,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "axis",
|
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 16:23:20 +13:00
|
|
|
"commentStart": 604,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "'X'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "X"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectExpression",
|
|
|
|
"type": "ObjectExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 611,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 586,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "mirror2d",
|
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
|
|
|
"commentStart": 586,
|
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": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 628,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 630,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 630,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "axis",
|
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 16:23:20 +13:00
|
|
|
"commentStart": 637,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"raw": "'Y'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Y"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "ObjectExpression",
|
|
|
|
"type": "ObjectExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 644,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 619,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "mirror2d",
|
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
|
|
|
"commentStart": 619,
|
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-03-20 16:23:20 +13:00
|
|
|
"commentStart": 660,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05: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-03-20 16:23:20 +13:00
|
|
|
"commentStart": 669,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "beamLength",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 652,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"name": "extrude",
|
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
|
|
|
"commentStart": 652,
|
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-03-20 16:23:20 +13:00
|
|
|
"commentStart": 379,
|
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 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Sketch a quadrant of the beam cross section, then mirror for symmetry across each axis. Extrude to the appropriate length"
|
|
|
|
],
|
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 16:23:20 +13:00
|
|
|
"commentStart": 111,
|
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": [
|
|
|
|
"// I-beam",
|
|
|
|
"// A structural metal beam with an I shaped cross section. Often used in construction",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Set Units"
|
|
|
|
],
|
2025-03-06 18:01:24 -05:00
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 120,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-06 18:01:24 -05:00
|
|
|
"key": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 120,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 140,
|
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 16:23:20 +13:00
|
|
|
"commentStart": 143,
|
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
|
|
|
|
}
|
|
|
|
}
|