--- source: kcl/src/simulation_tests.rs description: Result of parsing tangential_arc.kcl --- { "Ok": { "body": [ { "declaration": { "end": 161, "id": { "end": 9, "name": "boxSketch", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "elements": [ { "end": 28, "raw": "0", "start": 27, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "end": 31, "raw": "0", "start": 30, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 32, "start": 26, "type": "ArrayExpression", "type": "ArrayExpression" } ], "callee": { "end": 25, "name": "startSketchAt", "start": 12, "type": "Identifier" }, "end": 33, "start": 12, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "type": "Identifier", "name": "end" }, "arg": { "elements": [ { "end": 52, "raw": "0", "start": 51, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "end": 56, "raw": "10", "start": 54, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } } ], "end": 57, "start": 50, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "end": 43, "name": "line", "start": 39, "type": "Identifier" }, "end": 58, "start": 39, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "end": 105, "properties": [ { "end": 90, "key": { "end": 86, "name": "radius", "start": 80, "type": "Identifier" }, "start": 80, "type": "ObjectProperty", "value": { "end": 90, "raw": "5", "start": 89, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } } }, { "end": 103, "key": { "end": 98, "name": "offset", "start": 92, "type": "Identifier" }, "start": 92, "type": "ObjectProperty", "value": { "end": 103, "raw": "90", "start": 101, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } } ], "start": 78, "type": "ObjectExpression", "type": "ObjectExpression" }, { "end": 108, "start": 107, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "end": 77, "name": "tangentialArc", "start": 64, "type": "Identifier" }, "end": 109, "start": 64, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "type": "Identifier", "name": "end" }, "arg": { "elements": [ { "end": 128, "raw": "5", "start": 127, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } }, { "argument": { "end": 133, "raw": "15", "start": 131, "type": "Literal", "type": "Literal", "value": { "value": 15.0, "suffix": "None" } }, "end": 133, "operator": "-", "start": 130, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 134, "start": 126, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "end": 119, "name": "line", "start": 115, "type": "Identifier" }, "end": 135, "start": 115, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "type": "Identifier", "name": "length" }, "arg": { "end": 160, "raw": "10", "start": 158, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } } } ], "callee": { "end": 148, "name": "extrude", "start": 141, "type": "Identifier" }, "end": 161, "start": 141, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "end": 161, "start": 12, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 161, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "end": 162, "start": 0 } }