--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing rotate_after_fillet.kcl --- { "Ok": { "body": [ { "commentStart": 0, "declaration": { "commentStart": 7, "end": 0, "id": { "commentStart": 7, "end": 0, "name": "boltDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 22, "end": 0, "raw": "0.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", "visibility": "export" }, { "commentStart": 28, "declaration": { "commentStart": 35, "end": 0, "id": { "commentStart": 35, "end": 0, "name": "boltLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 48, "end": 0, "raw": "2.500", "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", "visibility": "export" }, { "commentStart": 54, "declaration": { "commentStart": 61, "end": 0, "id": { "commentStart": 61, "end": 0, "name": "boltHeadLength", "start": 0, "type": "Identifier" }, "init": { "abs_path": false, "commentStart": 78, "end": 0, "name": { "commentStart": 78, "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": 91, "declaration": { "commentStart": 98, "end": 0, "id": { "commentStart": 98, "end": 0, "name": "boltHeadDiameter", "start": 0, "type": "Identifier" }, "init": { "commentStart": 117, "end": 0, "raw": "0.938", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.938, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 123, "declaration": { "commentStart": 130, "end": 0, "id": { "commentStart": 130, "end": 0, "name": "boltHexDrive", "start": 0, "type": "Identifier" }, "init": { "commentStart": 145, "end": 0, "left": { "commentStart": 145, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "operator": "/", "right": { "commentStart": 149, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.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": 151, "declaration": { "commentStart": 158, "end": 0, "id": { "commentStart": 158, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 178, "end": 0, "left": { "abs_path": false, "commentStart": 178, "end": 0, "name": { "commentStart": 178, "end": 0, "name": "boltHexDrive", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 194, "end": 0, "left": { "commentStart": 194, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "operator": "*", "right": { "arguments": [ { "arguments": [ { "commentStart": 212, "end": 0, "raw": "30", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 30.0, "suffix": "None" } } ], "callee": { "abs_path": false, "commentStart": 202, "end": 0, "name": { "commentStart": 202, "end": 0, "name": "toRadians", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 202, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "callee": { "abs_path": false, "commentStart": 198, "end": 0, "name": { "commentStart": 198, "end": 0, "name": "cos", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 198, "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": 218, "declaration": { "commentStart": 225, "end": 0, "id": { "commentStart": 225, "end": 0, "name": "boltThreadLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 244, "end": 0, "raw": "1.75", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.75, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration", "visibility": "export" }, { "commentStart": 248, "declaration": { "commentStart": 260, "end": 0, "id": { "commentStart": 260, "end": 0, "name": "bolt", "start": 0, "type": "Identifier" }, "init": { "body": { "body": [ { "commentStart": 268, "declaration": { "commentStart": 309, "end": 0, "id": { "commentStart": 309, "end": 0, "name": "boltHead", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 334, "end": 0, "raw": "'XZ'", "start": 0, "type": "Literal", "type": "Literal", "value": "XZ" } ], "callee": { "abs_path": false, "commentStart": 320, "end": 0, "name": { "commentStart": 320, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 320, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 354, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 363, "elements": [ { "commentStart": 364, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 367, "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": 371, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 380, "end": 0, "left": { "abs_path": false, "commentStart": 380, "end": 0, "name": { "commentStart": 380, "end": 0, "name": "boltHeadDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 399, "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": 402, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 408, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "topEdge" } } ], "callee": { "abs_path": false, "commentStart": 347, "end": 0, "name": { "commentStart": 347, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 347, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 433, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "abs_path": false, "commentStart": 443, "end": 0, "name": { "commentStart": 443, "end": 0, "name": "boltHeadLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 442, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 425, "end": 0, "name": { "commentStart": 425, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 425, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 473, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 482, "end": 0, "raw": "0.020", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.02, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 489, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 496, "elements": [ { "abs_path": false, "commentStart": 497, "end": 0, "name": { "commentStart": 497, "end": 0, "name": "topEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "arguments": [ { "abs_path": false, "commentStart": 522, "end": 0, "name": { "commentStart": 522, "end": 0, "name": "topEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 506, "end": 0, "name": { "commentStart": 506, "end": 0, "name": "getOppositeEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 506, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 466, "end": 0, "name": { "commentStart": 466, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 466, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 320, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "3": [ { "commentStart": 534, "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": 596, "declaration": { "commentStart": 596, "end": 0, "id": { "commentStart": 596, "end": 0, "name": "hexPatternSketch", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 629, "end": 0, "name": { "commentStart": 629, "end": 0, "name": "boltHead", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 639, "end": 0, "raw": "'start'", "start": 0, "type": "Literal", "type": "Literal", "value": "start" } ], "callee": { "abs_path": false, "commentStart": 615, "end": 0, "name": { "commentStart": 615, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 615, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 670, "elements": [ { "commentStart": 681, "end": 0, "left": { "abs_path": false, "commentStart": 681, "end": 0, "name": { "commentStart": 681, "end": 0, "name": "boltHexDrive", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 696, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 708, "end": 0, "left": { "abs_path": false, "commentStart": 708, "end": 0, "name": { "commentStart": 708, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 728, "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": 740, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 655, "end": 0, "name": { "commentStart": 655, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 655, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 761, "end": 0, "properties": [ { "commentStart": 772, "end": 0, "key": { "commentStart": 772, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 780, "end": 0, "raw": "270", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 270.0, "suffix": "None" } } }, { "commentStart": 794, "end": 0, "key": { "commentStart": 794, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 803, "end": 0, "name": { "commentStart": 803, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 831, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 750, "end": 0, "name": { "commentStart": 750, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 750, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 852, "end": 0, "properties": [ { "commentStart": 863, "end": 0, "key": { "commentStart": 863, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 871, "end": 0, "raw": "210", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 210.0, "suffix": "None" } } }, { "commentStart": 885, "end": 0, "key": { "commentStart": 885, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 894, "end": 0, "name": { "commentStart": 894, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 922, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 841, "end": 0, "name": { "commentStart": 841, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 841, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 943, "end": 0, "properties": [ { "commentStart": 954, "end": 0, "key": { "commentStart": 954, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 962, "end": 0, "raw": "150", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 150.0, "suffix": "None" } } }, { "commentStart": 976, "end": 0, "key": { "commentStart": 976, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 985, "end": 0, "name": { "commentStart": 985, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1013, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 932, "end": 0, "name": { "commentStart": 932, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 932, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1034, "end": 0, "properties": [ { "commentStart": 1045, "end": 0, "key": { "commentStart": 1045, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1053, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } }, { "commentStart": 1066, "end": 0, "key": { "commentStart": 1066, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1075, "end": 0, "name": { "commentStart": 1075, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1103, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1023, "end": 0, "name": { "commentStart": 1023, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1023, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 1124, "end": 0, "properties": [ { "commentStart": 1135, "end": 0, "key": { "commentStart": 1135, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1143, "end": 0, "raw": "30", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 30.0, "suffix": "None" } } }, { "commentStart": 1156, "end": 0, "key": { "commentStart": 1156, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1165, "end": 0, "name": { "commentStart": 1165, "end": 0, "name": "boltHexFlatLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1193, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 1113, "end": 0, "name": { "commentStart": 1113, "end": 0, "name": "angledLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1113, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [], "callee": { "abs_path": false, "commentStart": 1203, "end": 0, "name": { "commentStart": 1203, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1203, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1226, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1235, "end": 0, "left": { "argument": { "abs_path": false, "commentStart": 1236, "end": 0, "name": { "commentStart": 1236, "end": 0, "name": "boltHeadLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1235, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, "operator": "*", "right": { "commentStart": 1253, "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": 1218, "end": 0, "name": { "commentStart": 1218, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1218, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 615, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1258, "declaration": { "commentStart": 1262, "end": 0, "id": { "commentStart": 1262, "end": 0, "name": "boltBody", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 1287, "end": 0, "name": { "commentStart": 1287, "end": 0, "name": "boltHead", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "commentStart": 1297, "end": 0, "raw": "'end'", "start": 0, "type": "Literal", "type": "Literal", "value": "end" } ], "callee": { "abs_path": false, "commentStart": 1273, "end": 0, "name": { "commentStart": 1273, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1273, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1318, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1327, "elements": [ { "commentStart": 1328, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1331, "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": 1335, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1344, "end": 0, "left": { "abs_path": false, "commentStart": 1344, "end": 0, "name": { "commentStart": 1344, "end": 0, "name": "boltDiameter", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1359, "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": 1362, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1368, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "filletEdge" } } ], "callee": { "abs_path": false, "commentStart": 1311, "end": 0, "name": { "commentStart": 1311, "end": 0, "name": "circle", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1311, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1396, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1405, "end": 0, "name": { "commentStart": 1405, "end": 0, "name": "boltLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1388, "end": 0, "name": { "commentStart": 1388, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1388, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1431, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1440, "end": 0, "raw": ".020", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.02, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1446, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1453, "elements": [ { "arguments": [ { "abs_path": false, "commentStart": 1470, "end": 0, "name": { "commentStart": 1470, "end": 0, "name": "filletEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 1454, "end": 0, "name": { "commentStart": 1454, "end": 0, "name": "getOppositeEdge", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1454, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "abs_path": false, "commentStart": 1424, "end": 0, "name": { "commentStart": 1424, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1424, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1502, "end": 0, "name": "color", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1510, "end": 0, "raw": "\"#4dd043\"", "start": 0, "type": "Literal", "type": "Literal", "value": "#4dd043" } }, { "type": "LabeledArg", "label": { "commentStart": 1521, "end": 0, "name": "metalness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1533, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1537, "end": 0, "name": "roughness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1549, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 1491, "end": 0, "name": { "commentStart": 1491, "end": 0, "name": "appearance", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1491, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1273, "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": 1563, "end": 0, "name": { "commentStart": 1563, "end": 0, "name": "boltBody", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1552, "end": 0, "start": 0, "type": "ReturnStatement", "type": "ReturnStatement" } ], "commentStart": 268, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "1": [ { "commentStart": 1258, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "2": [ { "commentStart": 1552, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 }, "commentStart": 264, "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": 1573, "end": 0, "expression": { "body": [ { "arguments": [], "callee": { "abs_path": false, "commentStart": 1575, "end": 0, "name": { "commentStart": 1575, "end": 0, "name": "bolt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1575, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1594, "end": 0, "name": "roll", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1601, "end": 0, "raw": "3.14", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.14, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1607, "end": 0, "name": "pitch", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1615, "end": 0, "raw": "3.14", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.14, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1621, "end": 0, "name": "yaw", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1627, "end": 0, "raw": "3.14", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.14, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 1587, "end": 0, "name": { "commentStart": 1587, "end": 0, "name": "rotate", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1587, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1575, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "1": [ { "commentStart": 1632, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "https://www.mcmaster.com/91251a404/", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" } ], "commentStart": 0, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "6": [ { "commentStart": 248, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "7": [ { "commentStart": 1573, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 } }