--- source: kcl/src/simulation_tests.rs description: Result of parsing double_map_fn.kcl --- { "Ok": { "body": [ { "declaration": { "end": 34, "id": { "end": 12, "name": "increment", "start": 3, "type": "Identifier" }, "init": { "body": { "body": [ { "argument": { "end": 32, "left": { "end": 28, "name": "i", "start": 27, "type": "Identifier", "type": "Identifier" }, "operator": "+", "right": { "end": 32, "raw": "1", "start": 31, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, "start": 27, "type": "BinaryExpression", "type": "BinaryExpression" }, "end": 32, "start": 20, "type": "ReturnStatement", "type": "ReturnStatement" } ], "end": 34, "start": 16 }, "end": 34, "params": [ { "type": "Parameter", "identifier": { "end": 14, "name": "i", "start": 13, "type": "Identifier" } } ], "start": 12, "type": "FunctionExpression", "type": "FunctionExpression" }, "start": 3, "type": "VariableDeclarator" }, "end": 34, "kind": "fn", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "declaration": { "end": 47, "id": { "end": 38, "name": "xs", "start": 36, "type": "Identifier" }, "init": { "end": 47, "endElement": { "end": 46, "raw": "2", "start": 45, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "endInclusive": true, "start": 41, "startElement": { "end": 43, "raw": "0", "start": 42, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, "type": "ArrayRangeExpression", "type": "ArrayRangeExpression" }, "start": 36, "type": "VariableDeclarator" }, "end": 47, "kind": "const", "start": 36, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "declaration": { "end": 101, "id": { "end": 50, "name": "ys", "start": 48, "type": "Identifier" }, "init": { "body": [ { "end": 55, "name": "xs", "start": 53, "type": "Identifier", "type": "Identifier" }, { "arguments": [ { "end": 66, "start": 65, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { "end": 77, "name": "increment", "start": 68, "type": "Identifier", "type": "Identifier" } ], "callee": { "end": 64, "name": "map", "start": 61, "type": "Identifier" }, "end": 78, "start": 61, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "end": 89, "start": 88, "type": "PipeSubstitution", "type": "PipeSubstitution" }, { "end": 100, "name": "increment", "start": 91, "type": "Identifier", "type": "Identifier" } ], "callee": { "end": 87, "name": "map", "start": 84, "type": "Identifier" }, "end": 101, "start": 84, "type": "CallExpression", "type": "CallExpression" } ], "end": 101, "start": 53, "type": "PipeExpression", "type": "PipeExpression" }, "start": 48, "type": "VariableDeclarator" }, "end": 101, "kind": "const", "start": 48, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "end": 102, "nonCodeMeta": { "nonCodeNodes": { "0": [ { "end": 36, "start": 34, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "startNodes": [] }, "start": 0 } }