{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/source.converter.ts",
          "name": "relationsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        },
        {
          "file": "core/converters/source.converter.ts",
          "name": "relationsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "fileLinks",
      "signature": "const fileLinks = function fileLinks("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/source.converter.ts",
          "name": "sourceFiles",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "filesOf",
      "signature": "const filesOf = function filesOf(folder: AnatomyFolder): readonly AnatomyFile[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/source.converter.ts",
          "name": "sourceFiles",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "summaryOf",
      "signature": "export const summaryOf = function summaryOf(file: Pick<AnatomyFile, \"definitions\" | \"stats\">): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/source.converter.ts",
          "name": "definitionsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "signatureAt",
      "signature": "const signatureAt = function signatureAt(lines: readonly string[] | null, line: number): string | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/coordinators/catalog.coordinator.ts",
          "name": "buildCatalog",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-catalog-coordinator-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/catalog.coordinator.ts",
            "label": "core/coordinators/catalog.coordinator.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/catalog.coordinator.ts.md",
            "ref": "anatomy:file-build-scripts-core-coordinators-catalog-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 135,
      "name": "sourceLeaves",
      "signature": "export const sourceLeaves = async function sourceLeaves("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/source.converter.ts",
          "name": "filesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        },
        {
          "file": "core/converters/source.converter.ts",
          "name": "summaryOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        },
        {
          "file": "core/resolvers/catalog.resolver.ts",
          "name": "sourceLeaf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-resolvers-catalog-resolver-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/resolvers/catalog.resolver.ts",
            "label": "core/resolvers/catalog.resolver.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/resolvers/catalog.resolver.ts.md",
            "ref": "anatomy:file-build-scripts-core-resolvers-catalog-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "sourceFiles",
      "signature": "export const sourceFiles = function sourceFiles("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/link.converter.ts",
          "name": "relationGroups",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-link-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/link.converter.ts",
            "label": "core/converters/link.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/link.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-link-converter-ts"
          }
        },
        {
          "file": "core/converters/source.converter.ts",
          "name": "fileLinks",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        },
        {
          "file": "core/converters/source.converter.ts",
          "name": "fileLinks",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 118,
      "name": "relationsOf",
      "signature": "const relationsOf = async function relationsOf("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/source.converter.ts",
          "name": "signatureAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.converter.ts",
            "label": "core/converters/source.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-source-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "definitionsOf",
      "signature": "const definitionsOf = function definitionsOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "LINE_END",
      "signature": "const LINE_END = \"\\n\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "FILE_KIND",
      "signature": "const FILE_KIND = \"file\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "FRAGMENT",
      "signature": "const FRAGMENT = \"#\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "toolsOf",
      "signature": "export const toolsOf = function toolsOf("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "canonicalOf",
      "signature": "export const canonicalOf = function canonicalOf(site: string, tools: SourceTools): (href: string) => string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "local",
      "signature": "const local = href.startsWith(site) ? href.slice(site.length) : href;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "cut",
      "signature": "const cut = local.indexOf(FRAGMENT);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "infix",
      "signature": "const infix = cut === -1 ? -1 : local.indexOf(tools.lineInfix, cut);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "anchor",
      "signature": "const anchor = local.slice(cut + 1, infix);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "definitions",
      "signature": "const definitions = file.definitions.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "files",
      "signature": "const files = [...new Set(refs.map((ref) => ref.file))].filter((file) => file !== own);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "held",
      "signature": "const held = line < 1 || lines === null ? undefined : lines.at(line - 1);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 100,
      "name": "named",
      "signature": "const named = (ref: DefinitionRef): object => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 122,
      "name": "callees",
      "signature": "const callees = file.definitions.flatMap((definition) => definition.callees);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 123,
      "name": "callers",
      "signature": "const callers = file.definitions.flatMap((definition) => definition.callers);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "containedIn",
      "signature": "const containedIn = sources.folder(identity.ref)?.containedIn ?? null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 141,
      "name": "{ file, identity, tree }",
      "signature": "const { file, identity, tree } = source;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 142,
      "name": "path",
      "signature": "const path = sources.tools.localPath(file.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 143,
      "name": "text",
      "signature": "const text = file.source === null || file.generated ? null : sources.textOf(file.source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 144,
      "name": "textAddress",
      "signature": "const textAddress = text === null ? null : sourceText(tree.tab, path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 145,
      "name": "relations",
      "signature": "const relations = await relationsOf(source, sources);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 146,
      "name": "data",
      "signature": "const data = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 165,
      "name": "markdown",
      "signature": "const markdown = renderSourceLeaf(data, tree.label, text);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "source.converter.ts",
  "path": "core/converters/source.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-source-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#file-build-scripts-core-converters-link-converter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/converters/link.converter.ts",
          "label": "core/converters/link.converter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/converters/link.converter.ts.md",
          "ref": "anatomy:file-build-scripts-core-converters-link-converter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-resolvers-catalog-resolver-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/resolvers/catalog.resolver.ts",
          "label": "core/resolvers/catalog.resolver.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/resolvers/catalog.resolver.ts.md",
          "ref": "anatomy:file-build-scripts-core-resolvers-catalog-resolver-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-catalog-coordinator-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/catalog.coordinator.ts",
          "label": "core/coordinators/catalog.coordinator.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/catalog.coordinator.ts.md",
          "ref": "anatomy:file-build-scripts-core-coordinators-catalog-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "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"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-coordinators"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-resolvers",
          "label": "core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-resolvers.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-resolvers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "source",
    "variant": null
  },
  "stats": {
    "bytes": 7341,
    "callable": 11,
    "definitions": 31,
    "edges": 7,
    "exported": 17,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 5,
      "entry": 3,
      "isolated": 23
    },
    "lines": {
      "blank": 11,
      "code": 160,
      "total": 171
    }
  },
  "summary": "160 lines of code and 31 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/source.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-source-route-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/source.route.converter.ts",
      "label": "core/converters/source.route.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/source.route.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-source-route-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-snapshot-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/snapshot.converter.ts",
      "label": "core/converters/snapshot.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/snapshot.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-snapshot-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"
  }
}
