{ "private": true }
# mod.ts
export function a() {}
function b() {}
export class C {}
class D {}
export interface E {}
interface F {}
export namespace G {}
namespace H {}

# diagnostics
error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:1:1
  | 
1 | export function a() {}
  | ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:3:1
  | 
3 | export class C {}
  | ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:5:1
  | 
5 | export interface E {}
  | ^


error[missing-jsdoc]: exported symbol is missing JSDoc documentation
 --> /mod.ts:7:1
  | 
7 | export namespace G {}
  | ^

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

function a(): void

Defined in file:///mod.ts:1:1

private function b(): void

Defined in file:///mod.ts:2:1

class C


Defined in file:///mod.ts:3:1

private class D


Defined in file:///mod.ts:4:1

interface E


Defined in file:///mod.ts:5:1

private interface F


Defined in file:///mod.ts:6:1

namespace G


Defined in file:///mod.ts:7:1

private namespace H



# output.json
{
  "symbols": [
    {
      "name": "a",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 0,
            "col": 0,
            "byteIndex": 0
          },
          "declarationKind": "export",
          "kind": "function",
          "def": {
            "params": [],
            "returnType": {
              "repr": "void",
              "kind": "keyword",
              "value": "void"
            },
            "hasBody": true
          }
        }
      ]
    },
    {
      "name": "C",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 2,
            "col": 0,
            "byteIndex": 39
          },
          "declarationKind": "export",
          "kind": "class",
          "def": {}
        }
      ]
    },
    {
      "name": "E",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 4,
            "col": 0,
            "byteIndex": 68
          },
          "declarationKind": "export",
          "kind": "interface",
          "def": {}
        }
      ]
    },
    {
      "name": "G",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 6,
            "col": 0,
            "byteIndex": 105
          },
          "declarationKind": "export",
          "kind": "namespace",
          "def": {
            "elements": []
          }
        }
      ]
    },
    {
      "name": "b",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 1,
            "col": 0,
            "byteIndex": 23
          },
          "declarationKind": "private",
          "kind": "function",
          "def": {
            "params": [],
            "returnType": {
              "repr": "void",
              "kind": "keyword",
              "value": "void"
            },
            "hasBody": true
          }
        }
      ]
    },
    {
      "name": "D",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 3,
            "col": 0,
            "byteIndex": 57
          },
          "declarationKind": "private",
          "kind": "class",
          "def": {}
        }
      ]
    },
    {
      "name": "F",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 5,
            "col": 0,
            "byteIndex": 90
          },
          "declarationKind": "private",
          "kind": "interface",
          "def": {}
        }
      ]
    },
    {
      "name": "H",
      "declarations": [
        {
          "location": {
            "filename": "file:///mod.ts",
            "line": 7,
            "col": 0,
            "byteIndex": 127
          },
          "declarationKind": "private",
          "kind": "namespace",
          "def": {
            "elements": []
          }
        }
      ]
    }
  ]
}
