--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing artifact_graph_example_code1.kcl --- { "Ok": { "body": [ { "commentStart": 0, "declaration": { "commentStart": 0, "end": 0, "id": { "commentStart": 0, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 26, "end": 0, "raw": "'XY'", "start": 0, "type": "Literal", "type": "Literal", "value": "XY" } ], "callee": { "commentStart": 12, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "commentStart": 12, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 52, "elements": [ { "argument": { "commentStart": 54, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } }, "commentStart": 53, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, { "argument": { "commentStart": 58, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } }, "commentStart": 57, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 62, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 37, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "commentStart": 37, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 75, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 81, "elements": [ { "commentStart": 82, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 85, "end": 0, "raw": "10", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 70, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 70, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 100, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 106, "elements": [ { "commentStart": 107, "end": 0, "raw": "10.55", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.55, "suffix": "None" } }, { "commentStart": 114, "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": 118, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 124, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg01" } } ], "callee": { "commentStart": 95, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 95, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 142, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 148, "elements": [ { "commentStart": 149, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "argument": { "commentStart": 153, "end": 0, "raw": "10", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } }, "commentStart": 152, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 158, "end": 0, "name": "tag", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 164, "end": 0, "start": 0, "type": "TagDeclarator", "type": "TagDeclarator", "value": "seg02" } } ], "callee": { "commentStart": 137, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 137, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 182, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 196, "elements": [ { "arguments": [ { "commentStart": 211, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 197, "end": 0, "name": "profileStartX", "start": 0, "type": "Identifier" }, "commentStart": 197, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 229, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 215, "end": 0, "name": "profileStartY", "start": 0, "type": "Identifier" }, "commentStart": 215, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 177, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 177, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [], "callee": { "commentStart": 239, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "commentStart": 239, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "commentStart": 12, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 247, "declaration": { "commentStart": 247, "end": 0, "id": { "commentStart": 247, "end": 0, "name": "extrude001", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 279, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 289, "end": 0, "raw": "10", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 10.0, "suffix": "None" } }, "commentStart": 288, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "commentStart": 260, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "commentStart": 260, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "commentStart": 268, "end": 0, "name": "sketch001", "start": 0, "type": "Identifier", "type": "Identifier" } }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 305, "end": 0, "name": "radius", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 314, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 317, "end": 0, "name": "tags", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 324, "elements": [ { "commentStart": 325, "end": 0, "name": "seg01", "start": 0, "type": "Identifier", "type": "Identifier" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 298, "end": 0, "name": "fillet", "start": 0, "type": "Identifier" }, "commentStart": 298, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 260, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 333, "declaration": { "commentStart": 333, "end": 0, "id": { "commentStart": 333, "end": 0, "name": "sketch002", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "commentStart": 359, "end": 0, "name": "extrude001", "start": 0, "type": "Identifier", "type": "Identifier" }, { "commentStart": 371, "end": 0, "name": "seg02", "start": 0, "type": "Identifier", "type": "Identifier" } ], "callee": { "commentStart": 345, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "commentStart": 345, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 398, "elements": [ { "argument": { "commentStart": 400, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "commentStart": 399, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" }, { "argument": { "commentStart": 404, "end": 0, "raw": "6", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 6.0, "suffix": "None" } }, "commentStart": 403, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 408, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 383, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "commentStart": 383, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 421, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 427, "elements": [ { "commentStart": 428, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, { "commentStart": 431, "end": 0, "raw": "3", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 416, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 416, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 445, "end": 0, "name": "end", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 451, "elements": [ { "commentStart": 452, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, { "argument": { "commentStart": 456, "end": 0, "raw": "3", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.0, "suffix": "None" } }, "commentStart": 455, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 440, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 440, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 470, "end": 0, "name": "endAbsolute", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 484, "elements": [ { "arguments": [ { "commentStart": 499, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 485, "end": 0, "name": "profileStartX", "start": 0, "type": "Identifier" }, "commentStart": 485, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 517, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "commentStart": 503, "end": 0, "name": "profileStartY", "start": 0, "type": "Identifier" }, "commentStart": 503, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "callee": { "commentStart": 465, "end": 0, "name": "line", "start": 0, "type": "Identifier" }, "commentStart": 465, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [], "callee": { "commentStart": 527, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "commentStart": 527, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "commentStart": 345, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 535, "declaration": { "commentStart": 535, "end": 0, "id": { "commentStart": 535, "end": 0, "name": "extrude002", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 567, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 576, "end": 0, "raw": "5", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 5.0, "suffix": "None" } } } ], "callee": { "commentStart": 548, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "commentStart": 548, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "commentStart": 556, "end": 0, "name": "sketch002", "start": 0, "type": "Identifier", "type": "Identifier" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "commentStart": 0, "end": 0, "start": 0 } }