---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing error_inside_fn_also_has_source_range_of_call_site_recursive.kcl
---
{
  "Ok": {
    "body": [
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "someFunction",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "body": {
              "body": [
                {
                  "commentStart": 0,
                  "declaration": {
                    "commentStart": 0,
                    "end": 0,
                    "id": {
                      "commentStart": 0,
                      "end": 0,
                      "name": "someNestedFunction",
                      "start": 0,
                      "type": "Identifier"
                    },
                    "init": {
                      "body": {
                        "body": [
                          {
                            "commentStart": 0,
                            "end": 0,
                            "expression": {
                              "callee": {
                                "abs_path": false,
                                "commentStart": 0,
                                "end": 0,
                                "name": {
                                  "commentStart": 0,
                                  "end": 0,
                                  "name": "startSketchOn",
                                  "start": 0,
                                  "type": "Identifier"
                                },
                                "path": [],
                                "start": 0,
                                "type": "Name"
                              },
                              "commentStart": 0,
                              "end": 0,
                              "start": 0,
                              "type": "CallExpressionKw",
                              "type": "CallExpressionKw",
                              "unlabeled": {
                                "abs_path": false,
                                "commentStart": 0,
                                "end": 0,
                                "name": {
                                  "commentStart": 0,
                                  "end": 0,
                                  "name": "something2",
                                  "start": 0,
                                  "type": "Identifier"
                                },
                                "path": [],
                                "start": 0,
                                "type": "Name",
                                "type": "Name"
                              }
                            },
                            "start": 0,
                            "type": "ExpressionStatement",
                            "type": "ExpressionStatement"
                          }
                        ],
                        "commentStart": 0,
                        "end": 0,
                        "start": 0
                      },
                      "commentStart": 0,
                      "end": 0,
                      "params": [
                        {
                          "type": "Parameter",
                          "identifier": {
                            "commentStart": 0,
                            "end": 0,
                            "name": "something2",
                            "start": 0,
                            "type": "Identifier"
                          },
                          "labeled": false
                        }
                      ],
                      "start": 0,
                      "type": "FunctionExpression",
                      "type": "FunctionExpression"
                    },
                    "start": 0,
                    "type": "VariableDeclarator"
                  },
                  "end": 0,
                  "kind": "fn",
                  "start": 0,
                  "type": "VariableDeclaration",
                  "type": "VariableDeclaration"
                },
                {
                  "commentStart": 0,
                  "end": 0,
                  "expression": {
                    "callee": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "someNestedFunction",
                        "start": 0,
                        "type": "Identifier"
                      },
                      "path": [],
                      "start": 0,
                      "type": "Name"
                    },
                    "commentStart": 0,
                    "end": 0,
                    "start": 0,
                    "type": "CallExpressionKw",
                    "type": "CallExpressionKw",
                    "unlabeled": {
                      "abs_path": false,
                      "commentStart": 0,
                      "end": 0,
                      "name": {
                        "commentStart": 0,
                        "end": 0,
                        "name": "something",
                        "start": 0,
                        "type": "Identifier"
                      },
                      "path": [],
                      "start": 0,
                      "type": "Name",
                      "type": "Name"
                    }
                  },
                  "start": 0,
                  "type": "ExpressionStatement",
                  "type": "ExpressionStatement"
                }
              ],
              "commentStart": 0,
              "end": 0,
              "nonCodeMeta": {
                "nonCodeNodes": {
                  "0": [
                    {
                      "commentStart": 0,
                      "end": 0,
                      "start": 0,
                      "type": "NonCodeNode",
                      "value": {
                        "type": "newLine"
                      }
                    }
                  ]
                },
                "startNodes": []
              },
              "start": 0
            },
            "commentStart": 0,
            "end": 0,
            "params": [
              {
                "type": "Parameter",
                "identifier": {
                  "commentStart": 0,
                  "end": 0,
                  "name": "something",
                  "start": 0,
                  "type": "Identifier"
                },
                "labeled": false
              }
            ],
            "start": 0,
            "type": "FunctionExpression",
            "type": "FunctionExpression"
          },
          "start": 0,
          "type": "VariableDeclarator"
        },
        "end": 0,
        "kind": "fn",
        "start": 0,
        "type": "VariableDeclaration",
        "type": "VariableDeclaration"
      },
      {
        "commentStart": 0,
        "end": 0,
        "expression": {
          "callee": {
            "abs_path": false,
            "commentStart": 0,
            "end": 0,
            "name": {
              "commentStart": 0,
              "end": 0,
              "name": "someFunction",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": {
            "commentStart": 0,
            "end": 0,
            "raw": "'INVALID'",
            "start": 0,
            "type": "Literal",
            "type": "Literal",
            "value": "INVALID"
          }
        },
        "start": 0,
        "type": "ExpressionStatement",
        "type": "ExpressionStatement"
      }
    ],
    "commentStart": 0,
    "end": 0,
    "nonCodeMeta": {
      "nonCodeNodes": {
        "0": [
          {
            "commentStart": 0,
            "end": 0,
            "start": 0,
            "type": "NonCodeNode",
            "value": {
              "type": "newLine"
            }
          }
        ]
      },
      "startNodes": []
    },
    "start": 0
  }
}
