# middle.ts
/** a real namespace */
export namespace Real {
  /** a function in the real namespace */
  export function f(): void {}
}

# mod.ts
/** re-export of middle */
export * as Middle from "./middle.ts";

# output.txt
Defined in file:///mod.ts:1:8

namespace Middle
  re-export of middle

  namespace Real
    a real namespace


# output.json
{
  "symbols": [
    {
      "name": "Middle",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 1,
            "col": 7,
            "byteIndex": 34
          },
          "declarationKind": "export",
          "jsDoc": {
            "doc": "re-export of middle"
          },
          "kind": "namespace",
          "def": {
            "elements": [
              {
                "name": "Real",
                "declarations": [
                  {
                    "location": {
                      "filename": "file:///middle.ts",
                      "line": 1,
                      "col": 0,
                      "byteIndex": 24
                    },
                    "declarationKind": "export",
                    "jsDoc": {
                      "doc": "a real namespace"
                    },
                    "kind": "namespace",
                    "def": {
                      "elements": [
                        {
                          "name": "f",
                          "declarations": [
                            {
                              "location": {
                                "filename": "file:///middle.ts",
                                "line": 3,
                                "col": 2,
                                "byteIndex": 92
                              },
                              "declarationKind": "export",
                              "jsDoc": {
                                "doc": "a function in the real namespace"
                              },
                              "kind": "function",
                              "def": {
                                "params": [],
                                "returnType": {
                                  "repr": "void",
                                  "kind": "keyword",
                                  "value": "void"
                                },
                                "hasBody": true
                              }
                            }
                          ]
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          }
        }
      ]
    }
  ]
}
