2025-03-06 18:01:24 -05:00
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing socket-head-cap-screw.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 443,
"id": {
"end": 437,
"name": "screwLength",
"start": 426,
"type": "Identifier"
},
"init": {
"end": 443,
"raw": "1.0",
"start": 440,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 426,
"type": "VariableDeclarator"
},
"end": 443,
"kind": "const",
"start": 426,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 464,
"id": {
"end": 457,
"name": "screwDiameter",
"start": 444,
"type": "Identifier"
},
"init": {
"end": 464,
"raw": ".190",
"start": 460,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.19,
"suffix": "None"
}
},
"start": 444,
"type": "VariableDeclarator"
},
"end": 464,
"kind": "const",
"start": 444,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 484,
"id": {
"end": 477,
"name": "headDiameter",
"start": 465,
"type": "Identifier"
},
"init": {
"end": 484,
"raw": ".313",
"start": 480,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.313,
"suffix": "None"
}
},
"start": 465,
"type": "VariableDeclarator"
},
"end": 484,
"kind": "const",
"start": 465,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 511,
"id": {
"end": 495,
"name": "headLength",
"start": 485,
"type": "Identifier"
},
"init": {
"end": 511,
"name": "screwDiameter",
"start": 498,
"type": "Identifier",
"type": "Identifier"
},
"start": 485,
"type": "VariableDeclarator"
},
"end": 511,
"kind": "const",
"start": 485,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 534,
"id": {
"end": 525,
"name": "hexWallToWall",
"start": 512,
"type": "Identifier"
},
"init": {
"end": 534,
"left": {
"end": 529,
"raw": "5",
"start": 528,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
"operator": "/",
"right": {
"end": 534,
"raw": "32",
"start": 532,
"type": "Literal",
"type": "Literal",
"value": {
"value": 32.0,
"suffix": "None"
}
},
"start": 528,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 512,
"type": "VariableDeclarator"
},
"end": 534,
"kind": "const",
"start": 512,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 574,
"id": {
"end": 543,
"name": "capRatio",
"start": 535,
"type": "Identifier"
},
"init": {
"end": 574,
"left": {
"end": 559,
"name": "screwDiameter",
"start": 546,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 574,
"name": "headDiameter",
"start": 562,
"type": "Identifier",
"type": "Identifier"
},
"start": 546,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 535,
"type": "VariableDeclarator"
},
"end": 574,
"kind": "const",
"start": 535,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 614,
"id": {
"end": 583,
"name": "hexRatio",
"start": 575,
"type": "Identifier"
},
"init": {
"end": 614,
"left": {
"end": 599,
"name": "hexWallToWall",
"start": 586,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 614,
"name": "headDiameter",
"start": 602,
"type": "Identifier",
"type": "Identifier"
},
"start": 586,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 575,
"type": "VariableDeclarator"
},
"end": 614,
"kind": "const",
"start": 575,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 673,
"id": {
"end": 628,
"name": "hexWallLength",
"start": 615,
"type": "Identifier"
},
"init": {
"end": 673,
"left": {
"end": 652,
"left": {
"end": 648,
"left": {
"end": 644,
"name": "hexWallToWall",
"start": 631,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 648,
"raw": "2",
"start": 647,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 631,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"end": 652,
"raw": "1",
"start": 651,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 631,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"arguments": [
{
"arguments": [
{
"end": 671,
"raw": "30",
"start": 669,
"type": "Literal",
"type": "Literal",
"value": {
"value": 30.0,
"suffix": "None"
}
}
],
"callee": {
"end": 668,
"name": "toRadians",
"start": 659,
"type": "Identifier"
},
"end": 672,
"start": 659,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"end": 658,
"name": "cos",
"start": 655,
"type": "Identifier"
},
"end": 673,
"start": 655,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 631,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 615,
"type": "VariableDeclarator"
},
"end": 673,
"kind": "const",
"start": 615,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 696,
"id": {
"end": 690,
"name": "hexStartingAngle",
"start": 674,
"type": "Identifier"
},
"init": {
"end": 696,
"raw": "210",
"start": 693,
"type": "Literal",
"type": "Literal",
"value": {
"value": 210.0,
"suffix": "None"
}
},
"start": 674,
"type": "VariableDeclarator"
},
"end": 696,
"kind": "const",
"start": 674,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 749,
"id": {
"end": 743,
"name": "hexInteriorAngle",
"start": 727,
"type": "Identifier"
},
"init": {
"end": 749,
"raw": "120",
"start": 746,
"type": "Literal",
"type": "Literal",
"value": {
"value": 120.0,
"suffix": "None"
}
},
"start": 727,
"type": "VariableDeclarator"
},
"end": 749,
"kind": "const",
"start": 727,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 789,
"id": {
"end": 764,
"name": "hexChangeAngle",
"start": 750,
"type": "Identifier"
},
"init": {
"end": 789,
"left": {
"end": 770,
"raw": "180",
"start": 767,
"type": "Literal",
"type": "Literal",
"value": {
"value": 180.0,
"suffix": "None"
}
},
"operator": "-",
"right": {
"end": 789,
"name": "hexInteriorAngle",
"start": 773,
"type": "Identifier",
"type": "Identifier"
},
"start": 767,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 750,
"type": "VariableDeclarator"
},
"end": 789,
"kind": "const",
"start": 750,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-07 22:07:16 -06:00
"end": 2274,
2025-03-06 18:01:24 -05:00
"id": {
"end": 861,
"name": "capScrew",
"start": 853,
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
"declaration": {
"end": 1113,
"id": {
"end": 954,
"name": "screwHeadSketch",
"start": 939,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 975,
"raw": "'XZ'",
"start": 971,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 970,
"name": "startSketchOn",
"start": 957,
"type": "Identifier"
},
"end": 976,
"start": 957,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1007,
"name": "center",
"start": 1001,
"type": "Identifier"
},
"arg": {
"elements": [
{
"computed": false,
"end": 1019,
"object": {
"end": 1016,
"name": "start",
"start": 1011,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1018,
"raw": "0",
"start": 1017,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 1011,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
"end": 1029,
"object": {
"end": 1026,
"name": "start",
"start": 1021,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 1028,
"raw": "1",
"start": 1027,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 1021,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 1030,
"start": 1010,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1047,
"name": "radius",
"start": 1041,
"type": "Identifier"
},
"arg": {
"end": 1068,
"left": {
"end": 1064,
"left": {
"end": 1053,
"name": "dia",
"start": 1050,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1064,
"name": "capRatio",
"start": 1056,
"type": "Identifier",
"type": "Identifier"
},
"start": 1050,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
"end": 1068,
"raw": "2",
"start": 1067,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1050,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 990,
"name": "circle",
"start": 984,
"type": "Identifier"
},
"end": 1077,
"start": 984,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 1113,
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"end": 1113,
"start": 1079,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Extrude the screw head sketch",
"style": "line"
}
}
]
},
"startNodes": []
},
"start": 957,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 939,
"type": "VariableDeclarator"
},
"end": 1113,
"kind": "const",
"start": 939,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1176,
"id": {
"end": 1125,
"name": "screwHead",
"start": 1116,
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1159,
"name": "length",
"start": 1153,
"type": "Identifier"
},
"arg": {
"end": 1175,
"name": "capHeadLength",
"start": 1162,
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
"end": 1135,
"name": "extrude",
"start": 1128,
"type": "Identifier"
},
"end": 1176,
"start": 1128,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 1151,
"name": "screwHeadSketch",
"start": 1136,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 1116,
"type": "VariableDeclarator"
},
"end": 1176,
"kind": "const",
"start": 1116,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-07 22:07:16 -06:00
"end": 1982,
2025-03-06 18:01:24 -05:00
"id": {
"end": 1256,
"name": "hexPatternSketch",
"start": 1240,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 1282,
"name": "screwHead",
"start": 1273,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 1289,
"raw": "'end'",
"start": 1284,
"type": "Literal",
"type": "Literal",
"value": "end"
}
],
"callee": {
"end": 1272,
"name": "startSketchOn",
"start": 1259,
"type": "Identifier"
},
"end": 1290,
"start": 1259,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 1331,
"left": {
"end": 1327,
"name": "hexWallToWall",
"start": 1314,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1331,
"raw": "2",
"start": 1330,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1314,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 1334,
"raw": "0",
"start": 1333,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 1335,
"start": 1313,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 1338,
"start": 1337,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 1312,
"name": "startProfileAt",
"start": 1298,
"type": "Identifier"
},
"end": 1339,
"start": 1298,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
2025-03-07 22:07:16 -06:00
"type": "LabeledArg",
"label": {
"end": 1359,
"name": "length",
2025-03-06 18:01:24 -05:00
"start": 1353,
2025-03-07 22:07:16 -06:00
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-03-07 22:07:16 -06:00
"arg": {
"end": 1380,
"left": {
"argument": {
"end": 1376,
"name": "hexWallLength",
"start": 1363,
"type": "Identifier",
"type": "Identifier"
},
"end": 1376,
"operator": "-",
"start": 1362,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"end": 1380,
"raw": "2",
"start": 1379,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1362,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
"end": 1352,
"name": "yLine",
"start": 1347,
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1381,
2025-03-06 18:01:24 -05:00
"start": 1347,
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
"end": 1477,
2025-03-06 18:01:24 -05:00
"properties": [
{
2025-03-07 22:07:16 -06:00
"end": 1435,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1416,
2025-03-06 18:01:24 -05:00
"name": "angle",
2025-03-07 22:07:16 -06:00
"start": 1411,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1411,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1435,
2025-03-06 18:01:24 -05:00
"name": "hexStartingAngle",
2025-03-07 22:07:16 -06:00
"start": 1419,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
},
{
2025-03-07 22:07:16 -06:00
"end": 1468,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1452,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 1446,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1446,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1468,
2025-03-06 18:01:24 -05:00
"name": "hexWallLength",
2025-03-07 22:07:16 -06:00
"start": 1455,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
2025-03-07 22:07:16 -06:00
"start": 1400,
2025-03-06 18:01:24 -05:00
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
2025-03-07 22:07:16 -06:00
"end": 1480,
"start": 1479,
2025-03-06 18:01:24 -05:00
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 1399,
2025-03-06 18:01:24 -05:00
"name": "angledLine",
2025-03-07 22:07:16 -06:00
"start": 1389,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1481,
"start": 1389,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
2025-03-07 22:07:16 -06:00
"end": 1594,
2025-03-06 18:01:24 -05:00
"properties": [
{
2025-03-07 22:07:16 -06:00
"end": 1552,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1516,
2025-03-06 18:01:24 -05:00
"name": "angle",
2025-03-07 22:07:16 -06:00
"start": 1511,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1511,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1552,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1535,
2025-03-06 18:01:24 -05:00
"name": "hexStartingAngle",
2025-03-07 22:07:16 -06:00
"start": 1519,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1552,
2025-03-06 18:01:24 -05:00
"name": "hexChangeAngle",
2025-03-07 22:07:16 -06:00
"start": 1538,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1519,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
2025-03-07 22:07:16 -06:00
"end": 1585,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1569,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 1563,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1563,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1585,
2025-03-06 18:01:24 -05:00
"name": "hexWallLength",
2025-03-07 22:07:16 -06:00
"start": 1572,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
2025-03-07 22:07:16 -06:00
"start": 1500,
2025-03-06 18:01:24 -05:00
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
2025-03-07 22:07:16 -06:00
"end": 1597,
"start": 1596,
2025-03-06 18:01:24 -05:00
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 1499,
2025-03-06 18:01:24 -05:00
"name": "angledLine",
2025-03-07 22:07:16 -06:00
"start": 1489,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1598,
"start": 1489,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
2025-03-07 22:07:16 -06:00
"end": 1717,
2025-03-06 18:01:24 -05:00
"properties": [
{
2025-03-07 22:07:16 -06:00
"end": 1674,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1633,
2025-03-06 18:01:24 -05:00
"name": "angle",
2025-03-07 22:07:16 -06:00
"start": 1628,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1628,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1674,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1652,
2025-03-06 18:01:24 -05:00
"name": "hexStartingAngle",
2025-03-07 22:07:16 -06:00
"start": 1636,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1674,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1657,
2025-03-06 18:01:24 -05:00
"raw": "2",
2025-03-07 22:07:16 -06:00
"start": 1656,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1674,
2025-03-06 18:01:24 -05:00
"name": "hexChangeAngle",
2025-03-07 22:07:16 -06:00
"start": 1660,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1656,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-03-07 22:07:16 -06:00
"start": 1636,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
2025-03-07 22:07:16 -06:00
"end": 1708,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1692,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 1686,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1686,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1708,
2025-03-06 18:01:24 -05:00
"name": "hexWallLength",
2025-03-07 22:07:16 -06:00
"start": 1695,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
2025-03-07 22:07:16 -06:00
"start": 1617,
2025-03-06 18:01:24 -05:00
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
2025-03-07 22:07:16 -06:00
"end": 1720,
"start": 1719,
2025-03-06 18:01:24 -05:00
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 1616,
2025-03-06 18:01:24 -05:00
"name": "angledLine",
2025-03-07 22:07:16 -06:00
"start": 1606,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1721,
"start": 1606,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
2025-03-07 22:07:16 -06:00
"end": 1840,
2025-03-06 18:01:24 -05:00
"properties": [
{
2025-03-07 22:07:16 -06:00
"end": 1797,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1756,
2025-03-06 18:01:24 -05:00
"name": "angle",
2025-03-07 22:07:16 -06:00
"start": 1751,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1751,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1797,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1775,
2025-03-06 18:01:24 -05:00
"name": "hexStartingAngle",
2025-03-07 22:07:16 -06:00
"start": 1759,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1797,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1780,
2025-03-06 18:01:24 -05:00
"raw": "3",
2025-03-07 22:07:16 -06:00
"start": 1779,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1797,
2025-03-06 18:01:24 -05:00
"name": "hexChangeAngle",
2025-03-07 22:07:16 -06:00
"start": 1783,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1779,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-03-07 22:07:16 -06:00
"start": 1759,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
2025-03-07 22:07:16 -06:00
"end": 1831,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1815,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 1809,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1809,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1831,
2025-03-06 18:01:24 -05:00
"name": "hexWallLength",
2025-03-07 22:07:16 -06:00
"start": 1818,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
2025-03-07 22:07:16 -06:00
"start": 1740,
2025-03-06 18:01:24 -05:00
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
2025-03-07 22:07:16 -06:00
"end": 1843,
"start": 1842,
2025-03-06 18:01:24 -05:00
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 1739,
2025-03-06 18:01:24 -05:00
"name": "angledLine",
2025-03-07 22:07:16 -06:00
"start": 1729,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1844,
"start": 1729,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
2025-03-07 22:07:16 -06:00
"end": 1963,
2025-03-06 18:01:24 -05:00
"properties": [
{
2025-03-07 22:07:16 -06:00
"end": 1920,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1879,
2025-03-06 18:01:24 -05:00
"name": "angle",
2025-03-07 22:07:16 -06:00
"start": 1874,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1874,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1920,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1898,
2025-03-06 18:01:24 -05:00
"name": "hexStartingAngle",
2025-03-07 22:07:16 -06:00
"start": 1882,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1920,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 1903,
2025-03-06 18:01:24 -05:00
"raw": "4",
2025-03-07 22:07:16 -06:00
"start": 1902,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
},
"operator": "*",
"right": {
2025-03-07 22:07:16 -06:00
"end": 1920,
2025-03-06 18:01:24 -05:00
"name": "hexChangeAngle",
2025-03-07 22:07:16 -06:00
"start": 1906,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1902,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-03-07 22:07:16 -06:00
"start": 1882,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
2025-03-07 22:07:16 -06:00
"end": 1954,
2025-03-06 18:01:24 -05:00
"key": {
2025-03-07 22:07:16 -06:00
"end": 1938,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 1932,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"start": 1932,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-07 22:07:16 -06:00
"end": 1954,
2025-03-06 18:01:24 -05:00
"name": "hexWallLength",
2025-03-07 22:07:16 -06:00
"start": 1941,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
2025-03-07 22:07:16 -06:00
"start": 1863,
2025-03-06 18:01:24 -05:00
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
2025-03-07 22:07:16 -06:00
"end": 1966,
"start": 1965,
2025-03-06 18:01:24 -05:00
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 1862,
2025-03-06 18:01:24 -05:00
"name": "angledLine",
2025-03-07 22:07:16 -06:00
"start": 1852,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1967,
"start": 1852,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 1980,
2025-03-06 18:01:24 -05:00
"name": "close",
2025-03-07 22:07:16 -06:00
"start": 1975,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 1982,
"start": 1975,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
}
],
2025-03-07 22:07:16 -06:00
"end": 1982,
2025-03-06 18:01:24 -05:00
"start": 1259,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 1240,
"type": "VariableDeclarator"
},
2025-03-07 22:07:16 -06:00
"end": 1982,
2025-03-06 18:01:24 -05:00
"kind": "const",
"start": 1240,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-07 22:07:16 -06:00
"end": 2052,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-07 22:07:16 -06:00
"end": 1995,
2025-03-06 18:01:24 -05:00
"name": "hexPattern",
2025-03-07 22:07:16 -06:00
"start": 1985,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-07 22:07:16 -06:00
"end": 2030,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 2024,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-07 22:07:16 -06:00
"end": 2051,
2025-03-06 18:01:24 -05:00
"left": {
"argument": {
2025-03-07 22:07:16 -06:00
"end": 2044,
2025-03-06 18:01:24 -05:00
"name": "headLength",
2025-03-07 22:07:16 -06:00
"start": 2034,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2044,
2025-03-06 18:01:24 -05:00
"operator": "-",
2025-03-07 22:07:16 -06:00
"start": 2033,
2025-03-06 18:01:24 -05:00
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "*",
"right": {
2025-03-07 22:07:16 -06:00
"end": 2051,
2025-03-06 18:01:24 -05:00
"raw": "0.75",
2025-03-07 22:07:16 -06:00
"start": 2047,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.75,
"suffix": "None"
}
},
2025-03-07 22:07:16 -06:00
"start": 2033,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 2005,
2025-03-06 18:01:24 -05:00
"name": "extrude",
2025-03-07 22:07:16 -06:00
"start": 1998,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2052,
"start": 1998,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
2025-03-07 22:07:16 -06:00
"end": 2022,
2025-03-06 18:01:24 -05:00
"name": "hexPatternSketch",
2025-03-07 22:07:16 -06:00
"start": 2006,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
},
2025-03-07 22:07:16 -06:00
"start": 1985,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-07 22:07:16 -06:00
"end": 2052,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-07 22:07:16 -06:00
"start": 1985,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-07 22:07:16 -06:00
"end": 2197,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-07 22:07:16 -06:00
"end": 2071,
2025-03-06 18:01:24 -05:00
"name": "screwBodySketch",
2025-03-07 22:07:16 -06:00
"start": 2056,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
2025-03-07 22:07:16 -06:00
"end": 2097,
2025-03-06 18:01:24 -05:00
"name": "screwHead",
2025-03-07 22:07:16 -06:00
"start": 2088,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
{
2025-03-07 22:07:16 -06:00
"end": 2106,
2025-03-06 18:01:24 -05:00
"raw": "\"start\"",
2025-03-07 22:07:16 -06:00
"start": 2099,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": "start"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 2087,
2025-03-06 18:01:24 -05:00
"name": "startSketchOn",
2025-03-07 22:07:16 -06:00
"start": 2074,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2107,
"start": 2074,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-07 22:07:16 -06:00
"end": 2138,
2025-03-06 18:01:24 -05:00
"name": "center",
2025-03-07 22:07:16 -06:00
"start": 2132,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
"computed": false,
2025-03-07 22:07:16 -06:00
"end": 2150,
2025-03-06 18:01:24 -05:00
"object": {
2025-03-07 22:07:16 -06:00
"end": 2147,
2025-03-06 18:01:24 -05:00
"name": "start",
2025-03-07 22:07:16 -06:00
"start": 2142,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"property": {
2025-03-07 22:07:16 -06:00
"end": 2149,
2025-03-06 18:01:24 -05:00
"raw": "0",
2025-03-07 22:07:16 -06:00
"start": 2148,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
2025-03-07 22:07:16 -06:00
"start": 2142,
2025-03-06 18:01:24 -05:00
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"computed": false,
2025-03-07 22:07:16 -06:00
"end": 2160,
2025-03-06 18:01:24 -05:00
"object": {
2025-03-07 22:07:16 -06:00
"end": 2157,
2025-03-06 18:01:24 -05:00
"name": "start",
2025-03-07 22:07:16 -06:00
"start": 2152,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"property": {
2025-03-07 22:07:16 -06:00
"end": 2159,
2025-03-06 18:01:24 -05:00
"raw": "1",
2025-03-07 22:07:16 -06:00
"start": 2158,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
2025-03-07 22:07:16 -06:00
"start": 2152,
2025-03-06 18:01:24 -05:00
"type": "MemberExpression",
"type": "MemberExpression"
}
],
2025-03-07 22:07:16 -06:00
"end": 2161,
"start": 2141,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
2025-03-07 22:07:16 -06:00
"end": 2178,
2025-03-06 18:01:24 -05:00
"name": "radius",
2025-03-07 22:07:16 -06:00
"start": 2172,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-07 22:07:16 -06:00
"end": 2188,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-07 22:07:16 -06:00
"end": 2184,
2025-03-06 18:01:24 -05:00
"name": "dia",
2025-03-07 22:07:16 -06:00
"start": 2181,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
2025-03-07 22:07:16 -06:00
"end": 2188,
2025-03-06 18:01:24 -05:00
"raw": "2",
2025-03-07 22:07:16 -06:00
"start": 2187,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
2025-03-07 22:07:16 -06:00
"start": 2181,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 2121,
2025-03-06 18:01:24 -05:00
"name": "circle",
2025-03-07 22:07:16 -06:00
"start": 2115,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2197,
"start": 2115,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
2025-03-07 22:07:16 -06:00
"end": 2197,
"start": 2074,
2025-03-06 18:01:24 -05:00
"type": "PipeExpression",
"type": "PipeExpression"
},
2025-03-07 22:07:16 -06:00
"start": 2056,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-07 22:07:16 -06:00
"end": 2197,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-07 22:07:16 -06:00
"start": 2056,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-07 22:07:16 -06:00
"end": 2253,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-07 22:07:16 -06:00
"end": 2209,
2025-03-06 18:01:24 -05:00
"name": "screwBody",
2025-03-07 22:07:16 -06:00
"start": 2200,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-07 22:07:16 -06:00
"end": 2243,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 2237,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-07 22:07:16 -06:00
"end": 2252,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-07 22:07:16 -06:00
"start": 2246,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 2219,
2025-03-06 18:01:24 -05:00
"name": "extrude",
2025-03-07 22:07:16 -06:00
"start": 2212,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2253,
"start": 2212,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
2025-03-07 22:07:16 -06:00
"end": 2235,
2025-03-06 18:01:24 -05:00
"name": "screwBodySketch",
2025-03-07 22:07:16 -06:00
"start": 2220,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
},
2025-03-07 22:07:16 -06:00
"start": 2200,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-07 22:07:16 -06:00
"end": 2253,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-07 22:07:16 -06:00
"start": 2200,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
2025-03-07 22:07:16 -06:00
"end": 2272,
2025-03-06 18:01:24 -05:00
"name": "screwBody",
2025-03-07 22:07:16 -06:00
"start": 2263,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2272,
"start": 2256,
2025-03-06 18:01:24 -05:00
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
2025-03-07 22:07:16 -06:00
"end": 2274,
2025-03-06 18:01:24 -05:00
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"end": 1237,
"start": 1178,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Define the sketch of the hex pattern on the screw head",
"style": "line"
}
}
],
"3": [
{
2025-03-07 22:07:16 -06:00
"end": 2056,
"start": 2052,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"startNodes": [
{
"end": 937,
"start": 898,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Create the head of the cap screw",
"style": "line"
}
}
]
},
"start": 898
},
2025-03-07 22:07:16 -06:00
"end": 2274,
2025-03-06 18:01:24 -05:00
"params": [
{
"type": "Parameter",
"identifier": {
"end": 867,
"name": "start",
"start": 862,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 875,
"name": "length",
"start": 869,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 880,
"name": "dia",
"start": 877,
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
"end": 895,
"name": "capHeadLength",
"start": 882,
"type": "Identifier"
}
}
],
"start": 861,
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"start": 853,
"type": "VariableDeclarator"
},
2025-03-07 22:07:16 -06:00
"end": 2274,
2025-03-06 18:01:24 -05:00
"kind": "fn",
"start": 850,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
2025-03-07 22:07:16 -06:00
"end": 2335,
2025-03-06 18:01:24 -05:00
"expression": {
"arguments": [
{
"elements": [
{
2025-03-07 22:07:16 -06:00
"end": 2287,
2025-03-06 18:01:24 -05:00
"raw": "0",
2025-03-07 22:07:16 -06:00
"start": 2286,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
2025-03-07 22:07:16 -06:00
"end": 2290,
2025-03-06 18:01:24 -05:00
"raw": "0",
2025-03-07 22:07:16 -06:00
"start": 2289,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
2025-03-07 22:07:16 -06:00
"end": 2291,
"start": 2285,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
2025-03-07 22:07:16 -06:00
"end": 2304,
2025-03-06 18:01:24 -05:00
"name": "screwLength",
2025-03-07 22:07:16 -06:00
"start": 2293,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
{
2025-03-07 22:07:16 -06:00
"end": 2319,
2025-03-06 18:01:24 -05:00
"name": "screwDiameter",
2025-03-07 22:07:16 -06:00
"start": 2306,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
{
2025-03-07 22:07:16 -06:00
"end": 2334,
2025-03-06 18:01:24 -05:00
"name": "screwDiameter",
2025-03-07 22:07:16 -06:00
"start": 2321,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
2025-03-07 22:07:16 -06:00
"end": 2284,
2025-03-06 18:01:24 -05:00
"name": "capScrew",
2025-03-07 22:07:16 -06:00
"start": 2276,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-07 22:07:16 -06:00
"end": 2335,
"start": 2276,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
2025-03-07 22:07:16 -06:00
"start": 2276,
2025-03-06 18:01:24 -05:00
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
2025-03-07 22:07:16 -06:00
"end": 2336,
2025-03-06 18:01:24 -05:00
"innerAttrs": [
{
"end": 404,
"name": {
"end": 380,
"name": "settings",
"start": 372,
"type": "Identifier"
},
"properties": [
{
"end": 403,
"key": {
"end": 398,
"name": "defaultLengthUnit",
"start": 381,
"type": "Identifier"
},
"start": 381,
"type": "ObjectProperty",
"value": {
"end": 403,
"name": "in",
"start": 401,
"type": "Identifier",
"type": "Identifier"
}
}
],
"start": 371,
"type": "Annotation"
}
],
"nonCodeMeta": {
"nonCodeNodes": {
"8": [
{
"end": 726,
"start": 696,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "first angle of hex pattern",
"style": "line"
}
}
],
"10": [
{
"end": 849,
"start": 789,
"type": "NonCodeNode",
"value": {
"type": "newLineBlockComment",
"value": "Write a function that defines the Socket Head Cap Screw",
"style": "line"
}
}
],
"11": [
{
2025-03-07 22:07:16 -06:00
"end": 2276,
"start": 2274,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"startNodes": [
{
"end": 24,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Socket Head Cap Screw",
"style": "line"
}
},
{
"end": 356,
"start": 25,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "This is for a #10-24 screw that is 1.00 inches long. A socket head cap screw is a type of fastener that is widely used in a variety of applications requiring a high strength fastening solution. It is characterized by its cylindrical head and internal hexagonal drive, which allows for tightening with an Allen wrench or hex key.",
"style": "line"
}
},
{
"end": 358,
"start": 356,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 370,
"start": 358,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Set units",
"style": "line"
}
},
{
"end": 406,
"start": 404,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
"end": 425,
"start": 406,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Define constants",
"style": "line"
}
}
]
},
"start": 0
}
}