--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing tangential_arc.kcl --- { "Ok": { "body": [ { "declaration": { "end": 188, "id": { "end": 9, "name": "boxSketch", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "end": 28, "name": "XY", "start": 26, "type": "Identifier", "type": "Identifier" } ], "callee": { "end": 25, "name": "startSketchOn", "start": 12, "type": "Identifier" }, "end": 29, "start": 12, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "elements": [ { "end": 52, "raw": "0", "start": 51, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "end": 55, "raw": "0", "start": 54, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 56, "start": 50, "type": "ArrayExpression", "type": "ArrayExpression" }, { "end": 59, "start": 58, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "end": 49, "name": "startProfileAt", "start": 35, "type": "Identifier" }, "end": 60, "start": 35, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "type": "Identifier", "name": "end" }, "arg": { "elements": [ { "end": 79, "raw": "0", "start": 78, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "end": 83, "raw": "10", "start": 81, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } } ], "end": 84, "start": 77, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "end": 70, "name": "line", "start": 66, "type": "Identifier" }, "end": 85, "start": 66, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "end": 132, "properties": [ { "end": 117, "key": { "end": 113, "name": "radius", "start": 107, "type": "Identifier" }, "start": 107, "type": "ObjectProperty", "value": { "end": 117, "raw": "5", "start": 116, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } } }, { "end": 130, "key": { "end": 125, "name": "offset", "start": 119, "type": "Identifier" }, "start": 119, "type": "ObjectProperty", "value": { "end": 130, "raw": "90", "start": 128, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } } } ], "start": 105, "type": "ObjectExpression", "type": "ObjectExpression" }, { "end": 135, "start": 134, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "end": 104, "name": "tangentialArc", "start": 91, "type": "Identifier" }, "end": 136, "start": 91, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "type": "Identifier", "name": "end" }, "arg": { "elements": [ { "end": 155, "raw": "5", "start": 154, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } }, { "argument": { "end": 160, "raw": "15", "start": 158, "type": "Literal", "type": "Literal", "value": { "value": 15.0, "suffix": "None" } }, "end": 160, "operator": "-", "start": 157, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 161, "start": 153, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "end": 146, "name": "line", "start": 142, "type": "Identifier" }, "end": 162, "start": 142, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "type": "Identifier", "name": "length" }, "arg": { "end": 187, "raw": "10", "start": 185, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } } } ], "callee": { "end": 175, "name": "extrude", "start": 168, "type": "Identifier" }, "end": 188, "start": 168, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "end": 188, "start": 12, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 188, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "end": 189, "start": 0 } }