--- source: kcl/src/simulation_tests.rs description: Result of parsing array_elem_pop_fail.kcl --- { "Ok": { "body": [ { "declaration": { "end": 15, "id": { "end": 3, "name": "arr", "start": 0, "type": "Identifier" }, "init": { "elements": [ { "end": 8, "raw": "1", "start": 7, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "end": 11, "raw": "2", "start": 10, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, { "end": 14, "raw": "3", "start": 13, "type": "Literal", "type": "Literal", "value": { "value": 3.0, "suffix": "None" } } ], "end": 15, "start": 6, "type": "ArrayExpression", "type": "ArrayExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 15, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "declaration": { "end": 36, "id": { "end": 25, "name": "pushedArr", "start": 16, "type": "Identifier" }, "init": { "arguments": [ { "end": 35, "name": "arr", "start": 32, "type": "Identifier", "type": "Identifier" } ], "callee": { "end": 31, "name": "pop", "start": 28, "type": "Identifier" }, "end": 36, "start": 28, "type": "CallExpression", "type": "CallExpression" }, "start": 16, "type": "VariableDeclarator" }, "end": 36, "kind": "const", "start": 16, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "declaration": { "end": 56, "id": { "end": 41, "name": "fail", "start": 37, "type": "Identifier" }, "init": { "computed": false, "end": 56, "object": { "end": 53, "name": "pushedArr", "start": 44, "type": "Identifier", "type": "Identifier" }, "property": { "end": 55, "raw": "2", "start": 54, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 44, "type": "MemberExpression", "type": "MemberExpression" }, "start": 37, "type": "VariableDeclarator" }, "end": 56, "kind": "const", "start": 37, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "end": 57, "start": 0 } }