{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/specifier.converter.ts",
          "name": "importEdgesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-specifier-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/specifier.converter.ts",
            "label": "core/converters/specifier.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/specifier.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-specifier-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "edgeOf",
      "signature": "const edgeOf = function edgeOf(key: string, count: number): ImportEdge {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/specifier.converter.ts",
          "name": "edgeOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-specifier-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/specifier.converter.ts",
            "label": "core/converters/specifier.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/specifier.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-specifier-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "importEdgesOf",
      "signature": "export const importEdgesOf = async function importEdgesOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "KEY_SEPARATOR",
      "signature": "const KEY_SEPARATOR = \"::\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "PATH_SEPARATOR",
      "signature": "const PATH_SEPARATOR = \"/\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "containerOfPath",
      "signature": "const containerOfPath = function containerOfPath(path: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "fileEdges",
      "signature": "const fileEdges = async function fileEdges(file: DiskFile, resolve: SpecifierResolver): Promise<string[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "from",
      "signature": "const from = containerOfPath(file.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "bindings",
      "signature": "const bindings = await ingestImports(file.text, file.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "target",
      "signature": "const target = resolve(binding.source, file.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "to",
      "signature": "const to = target === null ? \"\" : containerOfPath(target);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "cut",
      "signature": "const cut = key.indexOf(KEY_SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "resolve",
      "signature": "const resolve = resolverOf(new Set(files.map((file) => file.path)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "counts",
      "signature": "const counts = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "keys",
      "signature": "const keys = await Promise.all(files.map(async (file) => fileEdges(file, resolve)));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-specifier-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "specifier.converter.ts",
  "path": "core/converters/specifier.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-specifier-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "specifier",
    "variant": null
  },
  "stats": {
    "bytes": 1831,
    "callable": 4,
    "definitions": 14,
    "edges": 1,
    "exported": 4,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 12
    },
    "lines": {
      "blank": 5,
      "code": 37,
      "total": 42
    }
  },
  "summary": "37 lines of code and 14 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/specifier.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-structure-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/structure.converter.ts",
      "label": "core/converters/structure.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/structure.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-structure-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-segment-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.segment.converter.ts",
      "label": "core/converters/source.segment.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.segment.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-source-segment-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
