--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing sketch_in_object.kcl --- { "Ok": { "body": [ { "commentStart": 0, "declaration": { "commentStart": 3, "end": 0, "id": { "commentStart": 3, "end": 0, "name": "test", "start": 0, "type": "Identifier" }, "init": { "body": { "body": [ { "argument": { "body": [ { "arguments": [ { "commentStart": 35, "end": 0, "raw": "'XY'", "start": 0, "type": "Literal", "type": "Literal", "value": "XY" } ], "callee": { "commentStart": 21, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "commentStart": 21, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 63, "elements": [ { "commentStart": 64, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 67, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 71, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 48, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "commentStart": 48, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 86, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 92, "elements": [ { "commentStart": 93, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 96, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 81, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 81, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 112, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 118, "elements": [ { "commentStart": 119, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 122, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 107, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 107, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 138, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 144, "elements": [ { "commentStart": 145, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "argument": { "commentStart": 149, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "commentStart": 148, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 133, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 133, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "commentStart": 166, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 160, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "commentStart": 160, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "commentStart": 21, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "commentStart": 14, "end": 0, "start": 0, "type": "ReturnStatement", "type": "ReturnStatement" } ], "commentStart": 10, "end": 0, "start": 0 }, "commentStart": 7, "end": 0, "params": [], "start": 0, "type": "FunctionExpression", "type": "FunctionExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "fn", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 170, "declaration": { "commentStart": 175, "end": 0, "id": { "commentStart": 175, "end": 0, "name": "test2", "start": 0, "type": "Identifier" }, "init": { "body": { "body": [ { "argument": { "commentStart": 194, "end": 0, "properties": [ { "commentStart": 200, "end": 0, "key": { "commentStart": 200, "end": 0, "name": "thing1", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 209, "end": 0, "properties": [ { "commentStart": 217, "end": 0, "key": { "commentStart": 217, "end": 0, "name": "thing2", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "body": [ { "arguments": [ { "commentStart": 240, "end": 0, "raw": "'XY'", "start": 0, "type": "Literal", "type": "Literal", "value": "XY" } ], "callee": { "commentStart": 226, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "commentStart": 226, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 272, "elements": [ { "commentStart": 273, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 276, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 280, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 257, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "commentStart": 257, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 299, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 305, "elements": [ { "commentStart": 306, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 309, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 294, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 294, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 329, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 335, "elements": [ { "commentStart": 336, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 339, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 324, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 324, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 359, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 365, "elements": [ { "commentStart": 366, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "argument": { "commentStart": 370, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "commentStart": 369, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 354, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 354, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "commentStart": 391, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 385, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "commentStart": 385, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "commentStart": 226, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, "commentStart": 187, "end": 0, "start": 0, "type": "ReturnStatement", "type": "ReturnStatement" } ], "commentStart": 183, "end": 0, "start": 0 }, "commentStart": 180, "end": 0, "params": [], "start": 0, "type": "FunctionExpression", "type": "FunctionExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "fn", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 405, "declaration": { "commentStart": 407, "end": 0, "id": { "commentStart": 407, "end": 0, "name": "x", "start": 0, "type": "Identifier" }, "init": { "arguments": [], "callee": { "commentStart": 411, "end": 0, "name": "test", "start": 0, "type": "Identifier" }, "commentStart": 411, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 418, "end": 0, "expression": { "body": [ { "commentStart": 418, "end": 0, "name": "x", "start": 0, "type": "Identifier", "type": "Identifier" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 433, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 443, "end": 0, "raw": "10", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } }, "commentStart": 442, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "commentStart": 425, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "commentStart": 425, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 418, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" }, { "commentStart": 446, "declaration": { "commentStart": 448, "end": 0, "id": { "commentStart": 448, "end": 0, "name": "x2", "start": 0, "type": "Identifier" }, "init": { "arguments": [], "callee": { "commentStart": 453, "end": 0, "name": "test2", "start": 0, "type": "Identifier" }, "commentStart": 453, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 461, "end": 0, "expression": { "body": [ { "commentStart": 461, "computed": false, "end": 0, "object": { "commentStart": 461, "computed": false, "end": 0, "object": { "commentStart": 461, "end": 0, "name": "x2", "start": 0, "type": "Identifier", "type": "Identifier" }, "property": { "commentStart": 464, "end": 0, "name": "thing1", "start": 0, "type": "Identifier", "type": "Identifier" }, "start": 0, "type": "MemberExpression", "type": "MemberExpression" }, "property": { "commentStart": 471, "end": 0, "name": "thing2", "start": 0, "type": "Identifier", "type": "Identifier" }, "start": 0, "type": "MemberExpression", "type": "MemberExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 491, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 500, "end": 0, "raw": "10", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } } } ], "callee": { "commentStart": 483, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "commentStart": 483, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 461, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" } ], "commentStart": 0, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "0": [ { "commentStart": 170, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "1": [ { "commentStart": 405, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "3": [ { "commentStart": 446, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 } }