---
source: kcl/src/simulation_tests.rs
description: Result of parsing argument_error.kcl
---
{
  "Ok": {
    "body": [
      {
        "declaration": {
          "end": 22,
          "id": {
            "end": 4,
            "name": "f",
            "start": 3,
            "type": "Identifier"
          },
          "init": {
            "body": {
              "body": [
                {
                  "argument": {
                    "end": 20,
                    "raw": "5",
                    "start": 19,
                    "type": "Literal",
                    "type": "Literal",
                    "value": {
                      "value": 5.0,
                      "suffix": "None"
                    }
                  },
                  "end": 20,
                  "start": 12,
                  "type": "ReturnStatement",
                  "type": "ReturnStatement"
                }
              ],
              "end": 22,
              "start": 8
            },
            "end": 22,
            "params": [
              {
                "type": "Parameter",
                "identifier": {
                  "end": 6,
                  "name": "i",
                  "start": 5,
                  "type": "Identifier"
                }
              }
            ],
            "start": 4,
            "type": "FunctionExpression",
            "type": "FunctionExpression"
          },
          "start": 3,
          "type": "VariableDeclarator"
        },
        "end": 22,
        "kind": "fn",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "end": 38,
        "expression": {
          "arguments": [
            {
              "end": 29,
              "name": "f",
              "start": 28,
              "type": "Identifier",
              "type": "Identifier"
            },
            {
              "elements": [
                {
                  "end": 33,
                  "raw": "0",
                  "start": 32,
                  "type": "Literal",
                  "type": "Literal",
                  "value": {
                    "value": 0.0,
                    "suffix": "None"
                  }
                },
                {
                  "end": 36,
                  "raw": "1",
                  "start": 35,
                  "type": "Literal",
                  "type": "Literal",
                  "value": {
                    "value": 1.0,
                    "suffix": "None"
                  }
                }
              ],
              "end": 37,
              "start": 31,
              "type": "ArrayExpression",
              "type": "ArrayExpression"
            }
          ],
          "callee": {
            "end": 27,
            "name": "map",
            "start": 24,
            "type": "Identifier"
          },
          "end": 38,
          "start": 24,
          "type": "CallExpression",
          "type": "CallExpression"
        },
        "start": 24,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      }
    ],
    "end": 39,
    "nonCodeMeta": {
      "nonCodeNodes": {
        "0": [
          {
            "end": 24,
            "start": 22,
            "type": "NonCodeNode",
            "value": {
              "type": "newLine"
            }
          }
        ]
      },
      "startNodes": []
    },
    "start": 0
  }
}
