{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/code.converter.ts",
          "name": "codeReferencesOf",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "codeReferencesOf",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "codeReferencesOf",
          "source": {
            "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"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "targetsOf",
      "signature": "const targetsOf = function targetsOf("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/code.converter.ts",
          "name": "codeReferencesOf",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "spanTarget",
          "source": {
            "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"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "nameTarget",
      "signature": "const nameTarget = function nameTarget(index: DefinitionIndex, name: string, path: string): CodeTarget | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "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"
          }
        },
        {
          "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": 140,
      "name": "targetIn",
      "signature": "export const targetIn = function targetIn("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/code.converter.ts",
          "name": "nameTarget",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "spanTarget",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "targetsOf",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "targetsOf",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/code.converter.ts",
          "name": "targetsOf",
          "source": {
            "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"
          }
        },
        {
          "file": "core/converters/literal.converter.ts",
          "name": "literalTarget",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-converters-literal-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/core/converters/literal.converter.ts",
            "label": "core/converters/literal.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/core/converters/literal.converter.ts.md",
            "ref": "anatomy:file-core-converters-literal-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "vite.config.ts",
          "name": "buildAnatomy",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-vite-config-ts",
            "json": "https://banes-lab.com/json/source/tree/vite.config.ts",
            "label": "vite.config.ts",
            "markdown": "https://banes-lab.com/source/tree/vite.config.ts.md",
            "ref": "anatomy:file-vite-config-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 116,
      "name": "codeReferencesOf",
      "signature": "export const codeReferencesOf = function codeReferencesOf("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/code.converter.ts",
          "name": "nameTarget",
          "source": {
            "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"
          }
        }
      ],
      "callers": [
        {
          "file": "core/converters/code.converter.ts",
          "name": "codeReferencesOf",
          "source": {
            "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"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "spanTarget",
      "signature": "const spanTarget = function spanTarget(index: DefinitionIndex, text: string, path: string): CodeTarget | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "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": 44,
      "name": "unquoted",
      "signature": "export const unquoted = function unquoted(text: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "WORD_CHARS",
      "signature": "const WORD_CHARS = LETTERS + DIGITS;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "wordsOf",
      "signature": "export const wordsOf = function wordsOf(text: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "parts",
      "signature": "const parts: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "current",
      "signature": "let current = \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "word",
      "signature": "let word = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "isWord",
      "signature": "const isWord = WORD_CHARS.includes(char);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "quotedIn",
      "signature": "const quotedIn = function quotedIn(line: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "at",
      "signature": "let at = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "mark",
      "signature": "const mark = line.charAt(at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "close",
      "signature": "const close = QUOTE_MARKS.includes(mark) ? line.indexOf(mark, at + 1) : -1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "trimmed",
      "signature": "const trimmed = text.trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "first",
      "signature": "const first = trimmed.charAt(0);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "last",
      "signature": "const last = trimmed.slice(-1);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "proseOf",
      "signature": "const proseOf = function proseOf(node: MarkdownNode): readonly string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "own",
      "signature": "const own = index.moduleDefinitionsNamedFrom(name, path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "locations",
      "signature": "const locations = own.length > 0 ? own : index.moduleDefinitionsNamed(name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "[only]",
      "signature": "const [only] = locations;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "file",
      "signature": "const file = index.resolvePath(text, path) ?? index.resolveSpecifier(text, path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "folder",
      "signature": "const folder = index.resolveFolder(text, path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "out",
      "signature": "const out = new Map<string, CodeTarget>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 101,
      "name": "found",
      "signature": "const found = target(text);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 109,
      "name": "NO_LOOKUPS",
      "signature": "const NO_LOOKUPS: ReferenceLookups = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 123,
      "name": "bindings",
      "signature": "const bindings = document ? null : lookups.bindings(path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "words",
      "signature": "const words = bindings === null ? wordsOf(text).filter((part) => WORD_CHARS.includes(part.charAt(0))) : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 125,
      "name": "spans",
      "signature": "const spans = document ? parseMarkdown(text).flatMap(proseOf).flatMap(inlineCode) : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 126,
      "name": "{ sites, targets }",
      "signature": "const { sites, targets } = bindingSitesOf(index, bindings ?? []);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-converters-code-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "code.converter.ts",
  "path": "core/converters/code.converter.ts",
  "ref": "anatomy:file-core-converters-code-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-literal-converter-ts",
          "json": "https://banes-lab.com/json/source/tree/core/converters/literal.converter.ts",
          "label": "core/converters/literal.converter.ts",
          "markdown": "https://banes-lab.com/source/tree/core/converters/literal.converter.ts.md",
          "ref": "anatomy:file-core-converters-literal-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"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-vite-config-ts",
          "json": "https://banes-lab.com/json/source/tree/vite.config.ts",
          "label": "vite.config.ts",
          "markdown": "https://banes-lab.com/source/tree/vite.config.ts.md",
          "ref": "anatomy:file-vite-config-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-root",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-root",
          "label": "root",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-root.md",
          "ref": "chapter:/anatomy/tree#folder-root"
        },
        {
          "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": "code",
    "variant": null
  },
  "stats": {
    "bytes": 5120,
    "callable": 9,
    "definitions": 32,
    "edges": 7,
    "exported": 15,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 4,
      "relay": 2,
      "isolated": 26
    },
    "lines": {
      "blank": 11,
      "code": 134,
      "total": 145
    }
  },
  "summary": "134 lines of code and 32 definitions.",
  "text": "https://banes-lab.com/source/tree/core/converters/code.converter.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-converters-definition-converter-ts",
      "json": "https://banes-lab.com/json/source/tree/core/converters/definition.converter.ts",
      "label": "core/converters/definition.converter.ts",
      "markdown": "https://banes-lab.com/source/tree/core/converters/definition.converter.ts.md",
      "ref": "anatomy:file-core-converters-definition-converter-ts"
    },
    "previous": {
      "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"
    }
  },
  "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"
  }
}
