--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing socket-head-cap-screw.kcl --- { "Ok": { "body": [ { "commentStart": 428, "declaration": { "commentStart": 437, "end": 0, "id": { "commentStart": 437, "end": 0, "name": "boltDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 452, "end": 0, "raw": "0.190", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.19, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 458, "declaration": { "commentStart": 465, "end": 0, "id": { "commentStart": 465, "end": 0, "name": "boltLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 478, "end": 0, "raw": "1.00", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 483, "declaration": { "commentStart": 490, "end": 0, "id": { "commentStart": 490, "end": 0, "name": "boltHeadLength", "start": 0, "type": "Identifier" }, "init": { "abs_path": false, "commentStart": 507, "end": 0, "name": { "commentStart": 507, "end": 0, "name": "boltDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 520, "declaration": { "commentStart": 527, "end": 0, "id": { "commentStart": 527, "end": 0, "name": "boltHeadDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 546, "end": 0, "raw": "0.313", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.313, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 552, "declaration": { "commentStart": 559, "end": 0, "id": { "commentStart": 559, "end": 0, "name": "boltHexDrive", "start": 0, "type": "Identifier" }, "init": { "commentStart": 574, "end": 0, "left": { "commentStart": 574, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } }, "operator": "/", "right": { "commentStart": 576, "end": 0, "raw": "32", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 32.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 579, "declaration": { "commentStart": 586, "end": 0, "id": { "commentStart": 586, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 606, "end": 0, "left": { "abs_path": false, "commentStart": 606, "end": 0, "name": { "commentStart": 606, "end": 0, "name": "boltHexDrive", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 622, "end": 0, "left": { "commentStart": 622, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "operator": "*", "right": { "arguments": [ { "arguments": [ { "commentStart": 640, "end": 0, "raw": "30", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 30.0, "suffix": "None" } } ], "callee": { "abs_path": false, "commentStart": 630, "end": 0, "name": { "commentStart": 630, "end": 0, "name": "toRadians", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 630, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "callee": { "abs_path": false, "commentStart": 626, "end": 0, "name": { "commentStart": 626, "end": 0, "name": "cos", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 626, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "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", "visibility": "export" }, { "commentStart": 645, "declaration": { "commentStart": 657, "end": 0, "id": { "commentStart": 657, "end": 0, "name": "bolt", "start": 0, "type": "Identifier" }, "init": { "body": { "body": [ { "commentStart": 666, "declaration": { "commentStart": 710, "end": 0, "id": { "commentStart": 710, "end": 0, "name": "boltHead", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 735, "end": 0, "raw": "'XZ'", "start": 0, "type": "Literal", "type": "Literal", "value": "XZ" } ], "callee": { "abs_path": false, "commentStart": 721, "end": 0, "name": { "commentStart": 721, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 721, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 765, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 774, "elements": [ { "commentStart": 775, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 778, "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": 791, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 800, "end": 0, "left": { "abs_path": false, "commentStart": 800, "end": 0, "name": { "commentStart": 800, "end": 0, "name": "boltHeadDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 819, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 831, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 837, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "topEdge" } } ], "callee": { "abs_path": false, "commentStart": 748, "end": 0, "name": { "commentStart": 748, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 748, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 870, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "abs_path": false, "commentStart": 880, "end": 0, "name": { "commentStart": 880, "end": 0, "name": "boltHeadLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 879, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 862, "end": 0, "name": { "commentStart": 862, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 862, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 910, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 919, "end": 0, "raw": "0.020", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.02, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 926, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 933, "elements": [ { "abs_path": false, "commentStart": 934, "end": 0, "name": { "commentStart": 934, "end": 0, "name": "topEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "arguments": [ { "abs_path": false, "commentStart": 959, "end": 0, "name": { "commentStart": 959, "end": 0, "name": "topEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 943, "end": 0, "name": { "commentStart": 943, "end": 0, "name": "getOppositeEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 943, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 903, "end": 0, "name": { "commentStart": 903, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 903, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 721, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "3": [ { "commentStart": 973, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "Define the sketch of the hex pattern on the screw head", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// Create the head of the cap screw" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1035, "declaration": { "commentStart": 1035, "end": 0, "id": { "commentStart": 1035, "end": 0, "name": "hexPatternSketch", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1068, "end": 0, "name": { "commentStart": 1068, "end": 0, "name": "boltHead", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1078, "end": 0, "raw": "'start'", "start": 0, "type": "Literal", "type": "Literal", "value": "start" } ], "callee": { "abs_path": false, "commentStart": 1054, "end": 0, "name": { "commentStart": 1054, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1054, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1109, "elements": [ { "commentStart": 1120, "end": 0, "left": { "abs_path": false, "commentStart": 1120, "end": 0, "name": { "commentStart": 1120, "end": 0, "name": "boltHexDrive", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1135, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 1147, "end": 0, "left": { "abs_path": false, "commentStart": 1147, "end": 0, "name": { "commentStart": 1147, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1167, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 1179, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1094, "end": 0, "name": { "commentStart": 1094, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1094, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1200, "end": 0, "properties": [ { "commentStart": 1211, "end": 0, "key": { "commentStart": 1211, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1219, "end": 0, "raw": "270", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 270.0, "suffix": "None" } } }, { "commentStart": 1233, "end": 0, "key": { "commentStart": 1233, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1242, "end": 0, "name": { "commentStart": 1242, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1270, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1189, "end": 0, "name": { "commentStart": 1189, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1189, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1291, "end": 0, "properties": [ { "commentStart": 1302, "end": 0, "key": { "commentStart": 1302, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1310, "end": 0, "raw": "210", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 210.0, "suffix": "None" } } }, { "commentStart": 1324, "end": 0, "key": { "commentStart": 1324, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1333, "end": 0, "name": { "commentStart": 1333, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1361, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1280, "end": 0, "name": { "commentStart": 1280, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1280, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1382, "end": 0, "properties": [ { "commentStart": 1393, "end": 0, "key": { "commentStart": 1393, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1401, "end": 0, "raw": "150", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 150.0, "suffix": "None" } } }, { "commentStart": 1415, "end": 0, "key": { "commentStart": 1415, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1424, "end": 0, "name": { "commentStart": 1424, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1452, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1371, "end": 0, "name": { "commentStart": 1371, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1371, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1473, "end": 0, "properties": [ { "commentStart": 1484, "end": 0, "key": { "commentStart": 1484, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1492, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } }, { "commentStart": 1505, "end": 0, "key": { "commentStart": 1505, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1514, "end": 0, "name": { "commentStart": 1514, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1542, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1462, "end": 0, "name": { "commentStart": 1462, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1462, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1563, "end": 0, "properties": [ { "commentStart": 1574, "end": 0, "key": { "commentStart": 1574, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1582, "end": 0, "raw": "30", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 30.0, "suffix": "None" } } }, { "commentStart": 1595, "end": 0, "key": { "commentStart": 1595, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1604, "end": 0, "name": { "commentStart": 1604, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1632, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1552, "end": 0, "name": { "commentStart": 1552, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1552, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [], "callee": { "abs_path": false, "commentStart": 1642, "end": 0, "name": { "commentStart": 1642, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1642, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1665, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1674, "end": 0, "left": { "argument": { "abs_path": false, "commentStart": 1675, "end": 0, "name": { "commentStart": 1675, "end": 0, "name": "boltHeadLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1674, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, "operator": "*", "right": { "commentStart": 1692, "end": 0, "raw": "0.75", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.75, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 1657, "end": 0, "name": { "commentStart": 1657, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1657, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1054, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1703, "declaration": { "commentStart": 1703, "end": 0, "id": { "commentStart": 1703, "end": 0, "name": "boltBody", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1728, "end": 0, "name": { "commentStart": 1728, "end": 0, "name": "boltHead", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1738, "end": 0, "raw": "'end'", "start": 0, "type": "Literal", "type": "Literal", "value": "end" } ], "callee": { "abs_path": false, "commentStart": 1714, "end": 0, "name": { "commentStart": 1714, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1714, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1759, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1768, "elements": [ { "commentStart": 1769, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1772, "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": 1776, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1785, "end": 0, "left": { "abs_path": false, "commentStart": 1785, "end": 0, "name": { "commentStart": 1785, "end": 0, "name": "boltDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1800, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1803, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1809, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "filletEdge" } } ], "callee": { "abs_path": false, "commentStart": 1752, "end": 0, "name": { "commentStart": 1752, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1752, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1837, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1846, "end": 0, "name": { "commentStart": 1846, "end": 0, "name": "boltLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1829, "end": 0, "name": { "commentStart": 1829, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1829, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1872, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1881, "end": 0, "raw": ".020", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.02, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1887, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1894, "elements": [ { "arguments": [ { "abs_path": false, "commentStart": 1911, "end": 0, "name": { "commentStart": 1911, "end": 0, "name": "filletEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1895, "end": 0, "name": { "commentStart": 1895, "end": 0, "name": "getOppositeEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1895, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1865, "end": 0, "name": { "commentStart": 1865, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1865, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1943, "end": 0, "name": "color", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1951, "end": 0, "raw": "\"#4dd043\"", "start": 0, "type": "Literal", "type": "Literal", "value": "#4dd043" } }, { "type": "LabeledArg", "label": { "commentStart": 1962, "end": 0, "name": "metalness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1974, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1978, "end": 0, "name": "roughness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1990, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 1932, "end": 0, "name": { "commentStart": 1932, "end": 0, "name": "appearance", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1932, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1714, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "argument": { "abs_path": false, "commentStart": 2004, "end": 0, "name": { "commentStart": 2004, "end": 0, "name": "boltBody", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1993, "end": 0, "start": 0, "type": "ReturnStatement", "type": "ReturnStatement" } ], "commentStart": 666, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "2": [ { "commentStart": 1993, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 }, "commentStart": 662, "end": 0, "params": [], "start": 0, "type": "FunctionExpression", "type": "FunctionExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "fn", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 2014, "end": 0, "expression": { "arguments": [], "callee": { "abs_path": false, "commentStart": 2016, "end": 0, "name": { "commentStart": 2016, "end": 0, "name": "bolt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2016, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" } ], "commentStart": 0, "end": 0, "innerAttrs": [ { "commentStart": 0, "end": 0, "name": { "commentStart": 372, "end": 0, "name": "settings", "start": 0, "type": "Identifier" }, "preComments": [ "// Socket Head Cap Screw", "// 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.", "", "", "// set units" ], "properties": [ { "commentStart": 381, "end": 0, "key": { "commentStart": 381, "end": 0, "name": "defaultLengthUnit", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 401, "end": 0, "name": { "commentStart": 401, "end": 0, "name": "in", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "commentStart": 405, "end": 0, "key": { "commentStart": 405, "end": 0, "name": "defaultAngleUnit", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 424, "end": 0, "name": { "commentStart": 424, "end": 0, "name": "deg", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "Annotation" } ], "nonCodeMeta": { "nonCodeNodes": { "5": [ { "commentStart": 645, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "6": [ { "commentStart": 2014, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [ { "commentStart": 428, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "start": 0 } }