--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing bracket.kcl --- { "Ok": { "body": [ { "commentStart": 0, "declaration": { "commentStart": 423, "end": 0, "id": { "commentStart": 423, "end": 0, "name": "sigmaAllow", "start": 0, "type": "Identifier" }, "init": { "commentStart": 436, "end": 0, "raw": "35000", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 35000.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "// Shelf Bracket", "// This is a bracket that holds a shelf. It is made of aluminum and is designed to hold a force of 300 lbs. The bracket is 6 inches wide and the force is applied at the end of the shelf, 12 inches from the wall. The bracket has a factor of safety of 1.2. The legs of the bracket are 5 inches and 2 inches long. The thickness of the bracket is calculated from the constraints provided.", "", "", "// Define constants" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 441, "declaration": { "commentStart": 468, "end": 0, "id": { "commentStart": 468, "end": 0, "name": "width", "start": 0, "type": "Identifier" }, "init": { "commentStart": 476, "end": 0, "raw": "6", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 6.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 477, "declaration": { "commentStart": 486, "end": 0, "id": { "commentStart": 486, "end": 0, "name": "p", "start": 0, "type": "Identifier" }, "init": { "commentStart": 490, "end": 0, "raw": "300", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 300.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 493, "declaration": { "commentStart": 518, "end": 0, "id": { "commentStart": 518, "end": 0, "name": "factorOfSafety", "start": 0, "type": "Identifier" }, "init": { "commentStart": 535, "end": 0, "raw": "1.2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.2, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 538, "declaration": { "commentStart": 553, "end": 0, "id": { "commentStart": 553, "end": 0, "name": "shelfMountL", "start": 0, "type": "Identifier" }, "init": { "commentStart": 567, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 568, "declaration": { "commentStart": 579, "end": 0, "id": { "commentStart": 579, "end": 0, "name": "wallMountL", "start": 0, "type": "Identifier" }, "init": { "commentStart": 592, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 593, "declaration": { "commentStart": 604, "end": 0, "id": { "commentStart": 604, "end": 0, "name": "shelfDepth", "start": 0, "type": "Identifier" }, "init": { "commentStart": 617, "end": 0, "raw": "12", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 12.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 619, "declaration": { "commentStart": 665, "end": 0, "id": { "commentStart": 665, "end": 0, "name": "moment", "start": 0, "type": "Identifier" }, "init": { "commentStart": 674, "end": 0, "left": { "abs_path": false, "commentStart": 674, "end": 0, "name": { "commentStart": 674, "end": 0, "name": "shelfDepth", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "*", "right": { "abs_path": false, "commentStart": 687, "end": 0, "name": { "commentStart": 687, "end": 0, "name": "p", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 688, "declaration": { "commentStart": 816, "end": 0, "id": { "commentStart": 816, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "commentStart": 833, "end": 0, "left": { "commentStart": 833, "end": 0, "left": { "commentStart": 833, "end": 0, "left": { "abs_path": false, "commentStart": 833, "end": 0, "name": { "commentStart": 833, "end": 0, "name": "moment", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "*", "right": { "abs_path": false, "commentStart": 842, "end": 0, "name": { "commentStart": 842, "end": 0, "name": "factorOfSafety", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "operator": "*", "right": { "commentStart": 859, "end": 0, "raw": "6", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 6.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "operator": "/", "right": { "commentStart": 864, "end": 0, "left": { "abs_path": false, "commentStart": 864, "end": 0, "name": { "commentStart": 864, "end": 0, "name": "sigmaAllow", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "*", "right": { "abs_path": false, "commentStart": 877, "end": 0, "name": { "commentStart": 877, "end": 0, "name": "width", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } ], "callee": { "abs_path": false, "commentStart": 828, "end": 0, "name": { "commentStart": 828, "end": 0, "name": "sqrt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 828, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "// Calculate required thickness of bracket" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 884, "declaration": { "commentStart": 960, "end": 0, "id": { "commentStart": 960, "end": 0, "name": "filletRadius", "start": 0, "type": "Identifier" }, "init": { "commentStart": 975, "end": 0, "raw": ".25", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.25, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 979, "declaration": { "commentStart": 979, "end": 0, "id": { "commentStart": 979, "end": 0, "name": "extFilletRadius", "start": 0, "type": "Identifier" }, "init": { "commentStart": 997, "end": 0, "left": { "abs_path": false, "commentStart": 997, "end": 0, "name": { "commentStart": 997, "end": 0, "name": "filletRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "+", "right": { "abs_path": false, "commentStart": 1012, "end": 0, "name": { "commentStart": 1012, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1022, "declaration": { "commentStart": 1022, "end": 0, "id": { "commentStart": 1022, "end": 0, "name": "mountingHoleDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 1045, "end": 0, "raw": "0.5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.5, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1048, "declaration": { "commentStart": 1050, "end": 0, "id": { "commentStart": 1050, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1076, "end": 0, "name": { "commentStart": 1076, "end": 0, "name": "XZ", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1062, "end": 0, "name": { "commentStart": 1062, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1062, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1100, "elements": [ { "commentStart": 1101, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1104, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 1108, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1085, "end": 0, "name": { "commentStart": 1085, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1085, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1122, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1131, "end": 0, "left": { "abs_path": false, "commentStart": 1131, "end": 0, "name": { "commentStart": 1131, "end": 0, "name": "shelfMountL", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "-", "right": { "abs_path": false, "commentStart": 1145, "end": 0, "name": { "commentStart": 1145, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1156, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1162, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg01" } } ], "callee": { "abs_path": false, "commentStart": 1116, "end": 0, "name": { "commentStart": 1116, "end": 0, "name": "xLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1116, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1181, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1190, "end": 0, "name": { "commentStart": 1190, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1201, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1207, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg02" } } ], "callee": { "abs_path": false, "commentStart": 1175, "end": 0, "name": { "commentStart": 1175, "end": 0, "name": "yLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1175, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1226, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "abs_path": false, "commentStart": 1236, "end": 0, "name": { "commentStart": 1236, "end": 0, "name": "shelfMountL", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1235, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1249, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1255, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg03" } } ], "callee": { "abs_path": false, "commentStart": 1220, "end": 0, "name": { "commentStart": 1220, "end": 0, "name": "xLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1220, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1274, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "abs_path": false, "commentStart": 1284, "end": 0, "name": { "commentStart": 1284, "end": 0, "name": "wallMountL", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1283, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1296, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1302, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg04" } } ], "callee": { "abs_path": false, "commentStart": 1268, "end": 0, "name": { "commentStart": 1268, "end": 0, "name": "yLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1268, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1321, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1330, "end": 0, "name": { "commentStart": 1330, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1341, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1347, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg05" } } ], "callee": { "abs_path": false, "commentStart": 1315, "end": 0, "name": { "commentStart": 1315, "end": 0, "name": "xLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1315, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1365, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1379, "elements": [ { "arguments": [ { "commentStart": 1394, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1380, "end": 0, "name": { "commentStart": 1380, "end": 0, "name": "profileStartX", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1380, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1412, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1398, "end": 0, "name": { "commentStart": 1398, "end": 0, "name": "profileStartY", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1398, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1417, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1423, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg06" } } ], "callee": { "abs_path": false, "commentStart": 1360, "end": 0, "name": { "commentStart": 1360, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1360, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [], "callee": { "abs_path": false, "commentStart": 1436, "end": 0, "name": { "commentStart": 1436, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1436, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1460, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1469, "end": 0, "name": { "commentStart": 1469, "end": 0, "name": "width", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1449, "end": 0, "name": { "commentStart": 1449, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1449, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "commentStart": 1457, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1488, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1497, "end": 0, "name": { "commentStart": 1497, "end": 0, "name": "extFilletRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1514, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1521, "elements": [ { "arguments": [ { "abs_path": false, "commentStart": 1542, "end": 0, "name": { "commentStart": 1542, "end": 0, "name": "seg03", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1522, "end": 0, "name": { "commentStart": 1522, "end": 0, "name": "getNextAdjacentEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1522, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1481, "end": 0, "name": { "commentStart": 1481, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1481, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1563, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1572, "end": 0, "name": { "commentStart": 1572, "end": 0, "name": "filletRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1586, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1593, "elements": [ { "arguments": [ { "abs_path": false, "commentStart": 1614, "end": 0, "name": { "commentStart": 1614, "end": 0, "name": "seg06", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1594, "end": 0, "name": { "commentStart": 1594, "end": 0, "name": "getNextAdjacentEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1594, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1556, "end": 0, "name": { "commentStart": 1556, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1556, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1635, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1644, "end": 0, "name": { "commentStart": 1644, "end": 0, "name": "filletRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1658, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1665, "elements": [ { "abs_path": false, "commentStart": 1666, "end": 0, "name": { "commentStart": 1666, "end": 0, "name": "seg02", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "arguments": [ { "abs_path": false, "commentStart": 1689, "end": 0, "name": { "commentStart": 1689, "end": 0, "name": "seg02", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1673, "end": 0, "name": { "commentStart": 1673, "end": 0, "name": "getOppositeEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1673, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1628, "end": 0, "name": { "commentStart": 1628, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1628, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1710, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1719, "end": 0, "name": { "commentStart": 1719, "end": 0, "name": "filletRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1733, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1740, "elements": [ { "abs_path": false, "commentStart": 1741, "end": 0, "name": { "commentStart": 1741, "end": 0, "name": "seg05", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "arguments": [ { "abs_path": false, "commentStart": 1764, "end": 0, "name": { "commentStart": 1764, "end": 0, "name": "seg05", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1748, "end": 0, "name": { "commentStart": 1748, "end": 0, "name": "getOppositeEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1748, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1703, "end": 0, "name": { "commentStart": 1703, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1703, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1062, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1772, "declaration": { "commentStart": 1774, "end": 0, "id": { "commentStart": 1774, "end": 0, "name": "sketch002", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1800, "end": 0, "name": { "commentStart": 1800, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "abs_path": false, "commentStart": 1811, "end": 0, "name": { "commentStart": 1811, "end": 0, "name": "seg03", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1786, "end": 0, "name": { "commentStart": 1786, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1786, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1830, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1839, "elements": [ { "argument": { "commentStart": 1841, "end": 0, "raw": "1.25", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.25, "suffix": "None" } }, "commentStart": 1840, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, { "commentStart": 1847, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1851, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1860, "end": 0, "left": { "abs_path": false, "commentStart": 1860, "end": 0, "name": { "commentStart": 1860, "end": 0, "name": "mountingHoleDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1883, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 1823, "end": 0, "name": { "commentStart": 1823, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1823, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1907, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1919, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1922, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1933, "end": 0, "raw": "2.5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.5, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1938, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1945, "elements": [ { "argument": { "commentStart": 1947, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "commentStart": 1946, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, { "commentStart": 1950, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1891, "end": 0, "name": { "commentStart": 1891, "end": 0, "name": "patternLinear2d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1891, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1975, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1987, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1990, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2001, "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 2004, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2011, "elements": [ { "commentStart": 2012, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 2015, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1959, "end": 0, "name": { "commentStart": 1959, "end": 0, "name": "patternLinear2d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1959, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2035, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2044, "end": 0, "left": { "argument": { "abs_path": false, "commentStart": 2045, "end": 0, "name": { "commentStart": 2045, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 2044, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, "operator": "-", "right": { "commentStart": 2057, "end": 0, "raw": ".01", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.01, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 2024, "end": 0, "name": { "commentStart": 2024, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2024, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "commentStart": 2032, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } } ], "commentStart": 1786, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 2061, "declaration": { "commentStart": 2063, "end": 0, "id": { "commentStart": 2063, "end": 0, "name": "sketch003", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 2089, "end": 0, "name": { "commentStart": 2089, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "abs_path": false, "commentStart": 2100, "end": 0, "name": { "commentStart": 2100, "end": 0, "name": "seg04", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 2075, "end": 0, "name": { "commentStart": 2075, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2075, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2119, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2128, "elements": [ { "commentStart": 2129, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "argument": { "commentStart": 2133, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "commentStart": 2132, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 2137, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2146, "end": 0, "left": { "abs_path": false, "commentStart": 2146, "end": 0, "name": { "commentStart": 2146, "end": 0, "name": "mountingHoleDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 2169, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 2112, "end": 0, "name": { "commentStart": 2112, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2112, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2193, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2205, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 2208, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2219, "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 2222, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2229, "elements": [ { "commentStart": 2230, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 2233, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 2177, "end": 0, "name": { "commentStart": 2177, "end": 0, "name": "patternLinear2d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2177, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2253, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2262, "end": 0, "left": { "argument": { "abs_path": false, "commentStart": 2263, "end": 0, "name": { "commentStart": 2263, "end": 0, "name": "thickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 2262, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, "operator": "-", "right": { "commentStart": 2275, "end": 0, "raw": "0.1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.1, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 2242, "end": 0, "name": { "commentStart": 2242, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2242, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "commentStart": 2250, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } } ], "commentStart": 2075, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "commentStart": 0, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "0": [ { "commentStart": 441, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "psi (6061-T6 aluminum)", "style": "line" } } ], "1": [ { "commentStart": 477, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "inch", "style": "line" } } ], "2": [ { "commentStart": 493, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "Force on shelf - lbs", "style": "line" } } ], "3": [ { "commentStart": 538, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "FOS of 1.2", "style": "line" } } ], "4": [ { "commentStart": 568, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "inches", "style": "line" } } ], "5": [ { "commentStart": 593, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "inches", "style": "line" } } ], "6": [ { "commentStart": 619, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "Shelf is 12 inches in depth from the wall", "style": "line" } } ], "7": [ { "commentStart": 688, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "assume the force is applied at the end of the shelf to be conservative (lb-in)", "style": "line" } }, { "commentStart": 770, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "8": [ { "commentStart": 884, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "inlineComment", "value": "this is the calculation of two brackets holding up the shelf (inches)", "style": "line" } }, { "commentStart": 957, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "11": [ { "commentStart": 1048, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "12": [ { "commentStart": 1772, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "13": [ { "commentStart": 2061, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 } }