---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing import_only_at_top_level.kcl
---
{
  "Ok": {
    "body": [
      {
        "commentStart": 0,
        "declaration": {
          "commentStart": 0,
          "end": 0,
          "id": {
            "commentStart": 0,
            "end": 0,
            "name": "main",
            "start": 0,
            "type": "Identifier"
          },
          "init": {
            "body": {
              "body": [
                {
                  "commentStart": 0,
                  "end": 0,
                  "path": {
                    "type": "Kcl",
                    "filename": "empty.kcl"
                  },
                  "selector": {
                    "type": "None",
                    "alias": null
                  },
                  "start": 0,
                  "type": "ImportStatement",
                  "type": "ImportStatement"
                },
                {
                  "argument": {
                    "commentStart": 0,
                    "end": 0,
                    "raw": "0",
                    "start": 0,
                    "type": "Literal",
                    "type": "Literal",
                    "value": {
                      "value": 0.0,
                      "suffix": "None"
                    }
                  },
                  "commentStart": 0,
                  "end": 0,
                  "start": 0,
                  "type": "ReturnStatement",
                  "type": "ReturnStatement"
                }
              ],
              "commentStart": 0,
              "end": 0,
              "start": 0
            },
            "commentStart": 0,
            "end": 0,
            "params": [],
            "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": "main",
              "start": 0,
              "type": "Identifier"
            },
            "path": [],
            "start": 0,
            "type": "Name"
          },
          "commentStart": 0,
          "end": 0,
          "start": 0,
          "type": "CallExpressionKw",
          "type": "CallExpressionKw",
          "unlabeled": null
        },
        "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
  }
}
