--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing array_elem_push_fail.kcl --- { "Ok": { "body": [ { "declaration": { "end": 0, "id": { "end": 0, "name": "arr", "start": 0, "type": "Identifier" }, "init": { "elements": [ { "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, { "end": 0, "raw": "3", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "declaration": { "end": 0, "id": { "end": 0, "name": "pushedArr", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "end": 0, "name": "arr", "start": 0, "type": "Identifier", "type": "Identifier" }, { "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } } ], "callee": { "end": 0, "name": "push", "start": 0, "type": "Identifier" }, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "declaration": { "end": 0, "id": { "end": 0, "name": "fail", "start": 0, "type": "Identifier" }, "init": { "computed": false, "end": 0, "object": { "end": 0, "name": "arr", "start": 0, "type": "Identifier", "type": "Identifier" }, "property": { "end": 0, "raw": "3", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.0, "suffix": "None" } }, "start": 0, "type": "MemberExpression", "type": "MemberExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "end": 0, "start": 0 } }