{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/binding.converter.ts",
          "name": "siteTargetsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-converters-binding-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/core/converters/binding.converter.ts",
            "label": "core/converters/binding.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/core/converters/binding.converter.ts.md",
            "ref": "anatomy:file-core-converters-binding-converter-ts"
          }
        },
        {
          "file": "presentation/components/source.component.ts",
          "name": "markLine",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-source-component-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/components/source.component.ts",
            "label": "presentation/components/source.component.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/components/source.component.ts.md",
            "ref": "anatomy:file-presentation-components-source-component-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "siteKey",
      "signature": "export const siteKey = function siteKey(line: number, column: number): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/folder.converter.ts",
          "name": "localPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-converters-folder-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/core/converters/folder.converter.ts",
            "label": "core/converters/folder.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/core/converters/folder.converter.ts.md",
            "ref": "anatomy:file-core-converters-folder-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "codeFilesOf",
      "signature": "export const codeFilesOf = function codeFilesOf("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/binding.converter.ts",
          "name": "siteKey",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-converters-binding-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/core/converters/binding.converter.ts",
            "label": "core/converters/binding.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/core/converters/binding.converter.ts.md",
            "ref": "anatomy:file-core-converters-binding-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "siteTargetsOf",
      "signature": "export const siteTargetsOf = function siteTargetsOf(references: SourceReferences): ReadonlyMap<string, CodeTarget> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "SITE_JOINER",
      "signature": "const SITE_JOINER = \":\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "SITE_WIDTH",
      "signature": "const SITE_WIDTH = 3;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "filesOf",
      "signature": "const filesOf = function filesOf(folder: AnatomyFolder): readonly AnatomyFile[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "root",
      "signature": "const root = file.inherited ? null : rootOf(treeOf(file.path));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "targetOf",
      "signature": "const targetOf = function targetOf(index: DefinitionIndex, binding: Binding): CodeTarget {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "held",
      "signature": "const held = index"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "exact",
      "signature": "const exact = held.find((location) => location.line === binding.target);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "[only]",
      "signature": "const [only] = held;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "location",
      "signature": "const location = exact ?? (held.length === 1 && only !== undefined ? only : null);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "found",
      "signature": "const found = new Map<string, CodeTarget>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "[line, column, index]",
      "signature": "const [line, column, index] = references.sites.slice(at, at + SITE_WIDTH);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "bindingSitesOf",
      "signature": "export const bindingSitesOf = function bindingSitesOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "targets",
      "signature": "const targets: CodeTarget[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "positions",
      "signature": "const positions = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "sites",
      "signature": "const sites: number[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "target",
      "signature": "const target = targetOf(index, binding);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "key",
      "signature": "const key = JSON.stringify(target);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "at",
      "signature": "const at = positions.get(key) ?? targets.length;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-converters-binding-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "binding.converter.ts",
  "path": "core/converters/binding.converter.ts",
  "ref": "anatomy:file-core-converters-binding-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-converters",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-converters.md",
          "ref": "chapter:/anatomy/tree#folder-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-converters-folder-converter-ts",
          "json": "https://banes-lab.com/json/source/tree/core/converters/folder.converter.ts",
          "label": "core/converters/folder.converter.ts",
          "markdown": "https://banes-lab.com/source/tree/core/converters/folder.converter.ts.md",
          "ref": "anatomy:file-core-converters-folder-converter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-components-source-component-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/components/source.component.ts",
          "label": "presentation/components/source.component.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/components/source.component.ts.md",
          "ref": "anatomy:file-presentation-components-source-component-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-converters",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-converters.md",
          "ref": "chapter:/anatomy/tree#folder-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-components",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-components",
          "label": "presentation/components",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-components.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-components"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "binding",
    "variant": null
  },
  "stats": {
    "bytes": 3118,
    "callable": 6,
    "definitions": 21,
    "edges": 2,
    "exported": 13,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 2,
      "isolated": 18
    },
    "lines": {
      "blank": 7,
      "code": 67,
      "total": 74
    }
  },
  "summary": "67 lines of code and 21 definitions.",
  "text": "https://banes-lab.com/source/tree/core/converters/binding.converter.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-converters-code-converter-ts",
      "json": "https://banes-lab.com/json/source/tree/core/converters/code.converter.ts",
      "label": "core/converters/code.converter.ts",
      "markdown": "https://banes-lab.com/source/tree/core/converters/code.converter.ts.md",
      "ref": "anatomy:file-core-converters-code-converter-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/tree/core/converters.md",
    "ref": "api:source/tree/core/converters"
  }
}
