# mod.ts
export * from "https://localhost/mod.ts";
export * from "http://localhost/mod.ts";

# https://localhost/mod.ts
export function myFunction() {
  return Math.random();
}

export class PublicType {
  prop: NonExportedType;
}

class NonExportedType {
}

# http://localhost/mod.ts
export function myFunction2() {
  return Math.random();
}

export class PublicType2 {
  prop: NonExportedType2;
}

class NonExportedType2 {
}

# output.txt
Defined in https://localhost/mod.ts:1:1

function myFunction()

Defined in http://localhost/mod.ts:1:1

function myFunction2()

Defined in https://localhost/mod.ts:5:1

class PublicType

  prop: NonExportedType

Defined in http://localhost/mod.ts:5:1

class PublicType2

  prop: NonExportedType2


# output.json
[
  {
    "name": "myFunction",
    "isDefault": false,
    "location": {
      "filename": "https://localhost/mod.ts",
      "line": 1,
      "col": 0,
      "byteIndex": 0
    },
    "declarationKind": "export",
    "kind": "function",
    "functionDef": {
      "params": [],
      "returnType": null,
      "hasBody": true,
      "isAsync": false,
      "isGenerator": false,
      "typeParams": []
    }
  },
  {
    "name": "PublicType",
    "isDefault": false,
    "location": {
      "filename": "https://localhost/mod.ts",
      "line": 5,
      "col": 0,
      "byteIndex": 58
    },
    "declarationKind": "export",
    "kind": "class",
    "classDef": {
      "isAbstract": false,
      "constructors": [],
      "properties": [
        {
          "tsType": {
            "repr": "NonExportedType",
            "kind": "typeRef",
            "typeRef": {
              "typeParams": null,
              "typeName": "NonExportedType"
            }
          },
          "readonly": false,
          "accessibility": null,
          "optional": false,
          "isAbstract": false,
          "isStatic": false,
          "name": "prop",
          "location": {
            "filename": "https://localhost/mod.ts",
            "line": 6,
            "col": 2,
            "byteIndex": 86
          }
        }
      ],
      "indexSignatures": [],
      "methods": [],
      "extends": null,
      "implements": [],
      "typeParams": [],
      "superTypeParams": []
    }
  },
  {
    "name": "myFunction2",
    "isDefault": false,
    "location": {
      "filename": "http://localhost/mod.ts",
      "line": 1,
      "col": 0,
      "byteIndex": 0
    },
    "declarationKind": "export",
    "kind": "function",
    "functionDef": {
      "params": [],
      "returnType": null,
      "hasBody": true,
      "isAsync": false,
      "isGenerator": false,
      "typeParams": []
    }
  },
  {
    "name": "PublicType2",
    "isDefault": false,
    "location": {
      "filename": "http://localhost/mod.ts",
      "line": 5,
      "col": 0,
      "byteIndex": 59
    },
    "declarationKind": "export",
    "kind": "class",
    "classDef": {
      "isAbstract": false,
      "constructors": [],
      "properties": [
        {
          "tsType": {
            "repr": "NonExportedType2",
            "kind": "typeRef",
            "typeRef": {
              "typeParams": null,
              "typeName": "NonExportedType2"
            }
          },
          "readonly": false,
          "accessibility": null,
          "optional": false,
          "isAbstract": false,
          "isStatic": false,
          "name": "prop",
          "location": {
            "filename": "http://localhost/mod.ts",
            "line": 6,
            "col": 2,
            "byteIndex": 88
          }
        }
      ],
      "indexSignatures": [],
      "methods": [],
      "extends": null,
      "implements": [],
      "typeParams": [],
      "superTypeParams": []
    }
  }
]
