--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing multiple-foreign-imports-all-render.kcl --- { "Ok": { "body": [ { "commentStart": 0, "end": 0, "path": { "type": "Foreign", "path": "../inputs/cube.step" }, "selector": { "type": "None", "alias": { "commentStart": 0, "end": 0, "name": "cube", "start": 0, "type": "Identifier" } }, "start": 0, "type": "ImportStatement", "type": "ImportStatement" }, { "commentStart": 0, "end": 0, "path": { "type": "Kcl", "filename": "othercube.kcl" }, "selector": { "type": "None", "alias": { "commentStart": 0, "end": 0, "name": "othercube", "start": 0, "type": "Identifier" } }, "start": 0, "type": "ImportStatement", "type": "ImportStatement" }, { "commentStart": 0, "end": 0, "path": { "type": "Kcl", "filename": "anothercube.kcl" }, "selector": { "type": "None", "alias": { "commentStart": 0, "end": 0, "name": "anothercube", "start": 0, "type": "Identifier" } }, "start": 0, "type": "ImportStatement", "type": "ImportStatement" }, { "commentStart": 0, "declaration": { "commentStart": 0, "end": 0, "id": { "commentStart": 0, "end": 0, "name": "model", "start": 0, "type": "Identifier" }, "init": { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "cube", "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" }, { "commentStart": 0, "end": 0, "expression": { "body": [ { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "othercube", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "x", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "1020", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1020.0, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "translate", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 0, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "color", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "\"#ff001f\"", "start": 0, "type": "Literal", "type": "Literal", "value": "#ff001f" } }, { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "metalness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "50", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 50.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "roughness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "50", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 50.0, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "appearance", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 0, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 0, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" }, { "commentStart": 0, "end": 0, "expression": { "body": [ { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "anothercube", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "x", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 0, "end": 0, "raw": "1020", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1020.0, "suffix": "None" } }, "commentStart": 0, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "translate", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 0, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "color", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "\"#ff0000\"", "start": 0, "type": "Literal", "type": "Literal", "value": "#ff0000" } }, { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "metalness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "50", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 50.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 0, "end": 0, "name": "roughness", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 0, "end": 0, "raw": "50", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 50.0, "suffix": "None" } } } ], "callee": { "abs_path": false, "commentStart": 0, "end": 0, "name": { "commentStart": 0, "end": 0, "name": "appearance", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 0, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 0, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "ExpressionStatement", "type": "ExpressionStatement" } ], "commentStart": 0, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "2": [ { "commentStart": 0, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "3": [ { "commentStart": 0, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "4": [ { "commentStart": 0, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ], "5": [ { "commentStart": 0, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 } }