{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/ontology.parser.ts",
          "name": "refOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-ontology-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/ontology.parser.ts",
            "label": "core/parsers/ontology.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/ontology.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-ontology-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "isPlaceholder",
      "signature": "const isPlaceholder = function isPlaceholder(span: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/ontology.parser.ts",
          "name": "ontologyRefs",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-ontology-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/ontology.parser.ts",
            "label": "core/parsers/ontology.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/ontology.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-ontology-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "refsInLine",
      "signature": "const refsInLine = function refsInLine(line: string, lineNo: number, collections: ReadonlySet<string>): OntologyRef[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/markdown.parser.ts",
          "name": "proseLines",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-markdown-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/markdown.parser.ts",
            "label": "core/parsers/markdown.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/markdown.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-markdown-parser-ts"
          }
        },
        {
          "file": "core/parsers/ontology.parser.ts",
          "name": "refsInLine",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-ontology-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/ontology.parser.ts",
            "label": "core/parsers/ontology.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/ontology.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-ontology-parser-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "ontologyRefs",
      "signature": "export const ontologyRefs = function ontologyRefs(source: string, collections: ReadonlySet<string>): OntologyRef[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/ontology.parser.ts",
          "name": "isPlaceholder",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-ontology-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/ontology.parser.ts",
            "label": "core/parsers/ontology.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/ontology.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-ontology-parser-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "refOf",
      "signature": "const refOf = function refOf(span: string, collections: ReadonlySet<string>): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "TICK",
      "signature": "const TICK = \"`\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "SEPARATOR",
      "signature": "const SEPARATOR = \":\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "PLACEHOLDER_CHARS",
      "signature": "const PLACEHOLDER_CHARS: ReadonlySet<string> = new Set([\"<\", \">\", \"{\", \"}\", \"*\", \" \", \"|\", \"/\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "colon",
      "signature": "const colon = span.indexOf(SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "found",
      "signature": "const found: OntologyRef[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "from",
      "signature": "let from = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "open",
      "signature": "const open = line.indexOf(TICK, from);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "close",
      "signature": "const close = open === -1 ? -1 : line.indexOf(TICK, open + 1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "ref",
      "signature": "const ref = refOf(line.slice(open + 1, close), collections);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-ontology-parser-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "ontology.parser.ts",
  "path": "core/parsers/ontology.parser.ts",
  "ref": "anatomy:file-docs-core-parsers-ontology-parser-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-parsers",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-parsers",
          "label": "core/parsers",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-parsers.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-parsers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-markdown-parser-ts",
          "json": "https://banes-lab.com/json/source/docs/core/parsers/markdown.parser.ts",
          "label": "core/parsers/markdown.parser.ts",
          "markdown": "https://banes-lab.com/source/docs/core/parsers/markdown.parser.ts.md",
          "ref": "anatomy:file-docs-core-parsers-markdown-parser-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-parsers",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-parsers",
          "label": "core/parsers",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-parsers.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-parsers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "parser",
    "subject": "ontology",
    "variant": null
  },
  "stats": {
    "bytes": 1606,
    "callable": 4,
    "definitions": 13,
    "edges": 3,
    "exported": 1,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 2,
      "isolated": 9
    },
    "lines": {
      "blank": 5,
      "code": 40,
      "total": 45
    }
  },
  "summary": "40 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/docs/core/parsers/ontology.parser.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-reference-parser-ts",
      "json": "https://banes-lab.com/json/source/docs/core/parsers/reference.parser.ts",
      "label": "core/parsers/reference.parser.ts",
      "markdown": "https://banes-lab.com/source/docs/core/parsers/reference.parser.ts.md",
      "ref": "anatomy:file-docs-core-parsers-reference-parser-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-metadata-parser-ts",
      "json": "https://banes-lab.com/json/source/docs/core/parsers/metadata.parser.ts",
      "label": "core/parsers/metadata.parser.ts",
      "markdown": "https://banes-lab.com/source/docs/core/parsers/metadata.parser.ts.md",
      "ref": "anatomy:file-docs-core-parsers-metadata-parser-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/parsers",
    "label": "core/parsers",
    "markdown": "https://banes-lab.com/api/source/docs/core/parsers.md",
    "ref": "api:source/docs/core/parsers"
  }
}
