--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing flange.kcl --- { "Ok": { "body": [ { "commentStart": 333, "declaration": { "commentStart": 355, "end": 0, "id": { "commentStart": 355, "end": 0, "name": "mountingHoleDia", "start": 0, "type": "Identifier" }, "init": { "commentStart": 373, "end": 0, "raw": ".625", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.625, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "// Define constants" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 378, "declaration": { "commentStart": 378, "end": 0, "id": { "commentStart": 378, "end": 0, "name": "baseDia", "start": 0, "type": "Identifier" }, "init": { "commentStart": 388, "end": 0, "raw": "4.625", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.625, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 394, "declaration": { "commentStart": 394, "end": 0, "id": { "commentStart": 394, "end": 0, "name": "pipeDia", "start": 0, "type": "Identifier" }, "init": { "commentStart": 404, "end": 0, "raw": "1.25", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.25, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 409, "declaration": { "commentStart": 409, "end": 0, "id": { "commentStart": 409, "end": 0, "name": "totalThickness", "start": 0, "type": "Identifier" }, "init": { "commentStart": 426, "end": 0, "raw": "0.813", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.813, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 432, "declaration": { "commentStart": 432, "end": 0, "id": { "commentStart": 432, "end": 0, "name": "topTotalDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 451, "end": 0, "raw": "2.313", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.313, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 457, "declaration": { "commentStart": 457, "end": 0, "id": { "commentStart": 457, "end": 0, "name": "bottomThickness", "start": 0, "type": "Identifier" }, "init": { "commentStart": 475, "end": 0, "raw": "0.06", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.06, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 480, "declaration": { "commentStart": 480, "end": 0, "id": { "commentStart": 480, "end": 0, "name": "bottomTotalDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 502, "end": 0, "raw": "2.5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.5, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 506, "declaration": { "commentStart": 506, "end": 0, "id": { "commentStart": 506, "end": 0, "name": "mountingHolePlacementDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 538, "end": 0, "raw": "3.5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.5, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 542, "declaration": { "commentStart": 542, "end": 0, "id": { "commentStart": 542, "end": 0, "name": "baseThickness", "start": 0, "type": "Identifier" }, "init": { "commentStart": 558, "end": 0, "raw": ".625", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.625, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 563, "declaration": { "commentStart": 563, "end": 0, "id": { "commentStart": 563, "end": 0, "name": "topTotalThickness", "start": 0, "type": "Identifier" }, "init": { "commentStart": 583, "end": 0, "left": { "abs_path": false, "commentStart": 583, "end": 0, "name": { "commentStart": 583, "end": 0, "name": "totalThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "-", "right": { "commentStart": 601, "end": 0, "left": { "abs_path": false, "commentStart": 601, "end": 0, "name": { "commentStart": 601, "end": 0, "name": "bottomThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "+", "right": { "abs_path": false, "commentStart": 619, "end": 0, "name": { "commentStart": 619, "end": 0, "name": "baseThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 634, "declaration": { "commentStart": 634, "end": 0, "id": { "commentStart": 634, "end": 0, "name": "nHoles", "start": 0, "type": "Identifier" }, "init": { "commentStart": 643, "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 644, "end": 0, "expression": { "arguments": [ { "abs_path": false, "commentStart": 717, "end": 0, "name": { "commentStart": 717, "end": 0, "name": "nHoles", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 725, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 728, "end": 0, "raw": "\"nHoles must be greater than 1\"", "start": 0, "type": "Literal", "type": "Literal", "value": "nHoles must be greater than 1" } ], "callee": { "abs_path": false, "commentStart": 699, "end": 0, "name": { "commentStart": 699, "end": 0, "name": "assertGreaterThan", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 699, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "preComments": [ "", "", "// Add assertion so nHoles are always greater than 1" ], "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" }, { "commentStart": 760, "declaration": { "commentStart": 816, "end": 0, "id": { "commentStart": 816, "end": 0, "name": "circles", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 840, "end": 0, "raw": "'XY'", "start": 0, "type": "Literal", "type": "Literal", "value": "XY" } ], "callee": { "abs_path": false, "commentStart": 826, "end": 0, "name": { "commentStart": 826, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 826, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 866, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 875, "elements": [ { "commentStart": 876, "end": 0, "left": { "abs_path": false, "commentStart": 876, "end": 0, "name": { "commentStart": 876, "end": 0, "name": "mountingHolePlacementDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 908, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 911, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 922, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 931, "end": 0, "left": { "abs_path": false, "commentStart": 931, "end": 0, "name": { "commentStart": 931, "end": 0, "name": "mountingHoleDia", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 949, "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": 851, "end": 0, "name": { "commentStart": 851, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 851, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 989, "end": 0, "name": "arcDegrees", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1002, "end": 0, "raw": "360", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 360.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1014, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1023, "elements": [ { "commentStart": 1024, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1027, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1038, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1050, "end": 0, "name": { "commentStart": 1050, "end": 0, "name": "nHoles", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 1065, "end": 0, "name": "rotateDuplicates", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1084, "end": 0, "raw": "true", "start": 0, "type": "Literal", "type": "Literal", "value": true } } ], "callee": { "abs_path": false, "commentStart": 963, "end": 0, "name": { "commentStart": 963, "end": 0, "name": "patternCircular2d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 963, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 826, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "2": [ { "commentStart": 1095, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "Create the base of the flange and add the mounting holes", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// Create the circular pattern for the mounting holes" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1157, "declaration": { "commentStart": 1157, "end": 0, "id": { "commentStart": 1157, "end": 0, "name": "flangeBase", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 1184, "end": 0, "raw": "'XY'", "start": 0, "type": "Literal", "type": "Literal", "value": "XY" } ], "callee": { "abs_path": false, "commentStart": 1170, "end": 0, "name": { "commentStart": 1170, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1170, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1210, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1219, "elements": [ { "commentStart": 1220, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1223, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1234, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1243, "end": 0, "left": { "abs_path": false, "commentStart": 1243, "end": 0, "name": { "commentStart": 1243, "end": 0, "name": "baseDia", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1253, "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": 1195, "end": 0, "name": { "commentStart": 1195, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1195, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "abs_path": false, "commentStart": 1272, "end": 0, "name": { "commentStart": 1272, "end": 0, "name": "circles", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1281, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1267, "end": 0, "name": { "commentStart": 1267, "end": 0, "name": "hole", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1267, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1297, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1306, "end": 0, "name": { "commentStart": 1306, "end": 0, "name": "baseThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1289, "end": 0, "name": { "commentStart": 1289, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1289, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1170, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "3": [ { "commentStart": 1320, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "Create the extrusion on the top of the flange base", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1376, "declaration": { "commentStart": 1376, "end": 0, "id": { "commentStart": 1376, "end": 0, "name": "topExtrusion", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1405, "end": 0, "name": { "commentStart": 1405, "end": 0, "name": "flangeBase", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1417, "end": 0, "raw": "'end'", "start": 0, "type": "Literal", "type": "Literal", "value": "end" } ], "callee": { "abs_path": false, "commentStart": 1391, "end": 0, "name": { "commentStart": 1391, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1391, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1444, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1453, "elements": [ { "commentStart": 1454, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1457, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1468, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1477, "end": 0, "left": { "abs_path": false, "commentStart": 1477, "end": 0, "name": { "commentStart": 1477, "end": 0, "name": "topTotalDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1496, "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": 1429, "end": 0, "name": { "commentStart": 1429, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1429, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1518, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1527, "end": 0, "name": { "commentStart": 1527, "end": 0, "name": "topTotalThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1510, "end": 0, "name": { "commentStart": 1510, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1510, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1391, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "2": [ { "commentStart": 1545, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "Create the extrusion on the bottom of the flange base", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1604, "declaration": { "commentStart": 1604, "end": 0, "id": { "commentStart": 1604, "end": 0, "name": "bottomExtrusion", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1636, "end": 0, "name": { "commentStart": 1636, "end": 0, "name": "flangeBase", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1648, "end": 0, "raw": "'start'", "start": 0, "type": "Literal", "type": "Literal", "value": "start" } ], "callee": { "abs_path": false, "commentStart": 1622, "end": 0, "name": { "commentStart": 1622, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1622, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1677, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1686, "elements": [ { "commentStart": 1687, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1690, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1701, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1710, "end": 0, "left": { "abs_path": false, "commentStart": 1710, "end": 0, "name": { "commentStart": 1710, "end": 0, "name": "bottomTotalDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1732, "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": 1662, "end": 0, "name": { "commentStart": 1662, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1662, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1754, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1763, "end": 0, "name": { "commentStart": 1763, "end": 0, "name": "bottomThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1746, "end": 0, "name": { "commentStart": 1746, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1746, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1622, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "2": [ { "commentStart": 1779, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "Cut a hole through the entire body", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1819, "declaration": { "commentStart": 1819, "end": 0, "id": { "commentStart": 1819, "end": 0, "name": "pipeHole", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1844, "end": 0, "name": { "commentStart": 1844, "end": 0, "name": "topExtrusion", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1858, "end": 0, "raw": "'end'", "start": 0, "type": "Literal", "type": "Literal", "value": "end" } ], "callee": { "abs_path": false, "commentStart": 1830, "end": 0, "name": { "commentStart": 1830, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1830, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1877, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1886, "elements": [ { "commentStart": 1887, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1890, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1894, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1903, "end": 0, "left": { "abs_path": false, "commentStart": 1903, "end": 0, "name": { "commentStart": 1903, "end": 0, "name": "pipeDia", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1911, "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": 1870, "end": 0, "name": { "commentStart": 1870, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1870, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1930, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 1941, "end": 0, "left": { "commentStart": 1941, "end": 0, "left": { "abs_path": false, "commentStart": 1941, "end": 0, "name": { "commentStart": 1941, "end": 0, "name": "topTotalThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "+", "right": { "abs_path": false, "commentStart": 1961, "end": 0, "name": { "commentStart": 1961, "end": 0, "name": "baseThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "operator": "+", "right": { "abs_path": false, "commentStart": 1977, "end": 0, "name": { "commentStart": 1977, "end": 0, "name": "bottomThickness", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "commentStart": 1939, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 1919, "end": 0, "name": { "commentStart": 1919, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1919, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "commentStart": 1927, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } } ], "commentStart": 1830, "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, "innerAttrs": [ { "commentStart": 0, "end": 0, "name": { "commentStart": 301, "end": 0, "name": "settings", "start": 0, "type": "Identifier" }, "preComments": [ "// Flange", "// A flange is a flat rim, collar, or rib, typically forged or cast, that is used to strengthen an object, guide it, or attach it to another object. Flanges are known for their use in various applications, including piping, plumbing, and mechanical engineering, among others.", "", "", "// Set units" ], "properties": [ { "commentStart": 310, "end": 0, "key": { "commentStart": 310, "end": 0, "name": "defaultLengthUnit", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 330, "end": 0, "name": { "commentStart": 330, "end": 0, "name": "in", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "Annotation" } ], "nonCodeMeta": { "nonCodeNodes": {}, "startNodes": [ { "commentStart": 333, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "start": 0 } }