{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseTag",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        },
        {
          "file": "core/parsers/node.parser.ts",
          "name": "titleOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "parseNodeHeader",
      "signature": "const parseNodeHeader = function parseNodeHeader(afterHash: string, tokens: string[]): ParsedHeader {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/text.converter.ts",
          "name": "valueAfter",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-text-converter-ts",
            "json": "https://banes-lab.com/json/source/context/core/converters/text.converter.ts",
            "label": "core/converters/text.converter.ts",
            "markdown": "https://banes-lab.com/source/context/core/converters/text.converter.ts.md",
            "ref": "anatomy:file-context-core-converters-text-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseNodeHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "parseTag",
      "signature": "export const parseTag = function parseTag(text: string): PagNodeTag | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseNodeHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "titleOf",
      "signature": "const titleOf = function titleOf(afterHead: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "parseRetiredHeader",
      "signature": "const parseRetiredHeader = function parseRetiredHeader(afterHash: string, tokens: string[]): ParsedHeader {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/document.parser.ts",
          "name": "openHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-document-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/document.parser.ts",
            "label": "core/parsers/document.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/document.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-document-parser-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 112,
      "name": "nodeOf",
      "signature": "export const nodeOf = function nodeOf(header: ParsedHeader, raw: string, line: number): PagNode {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseNodeHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        },
        {
          "file": "core/parsers/node.parser.ts",
          "name": "parseRetiredHeader",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
            "json": "https://banes-lab.com/json/source/context/core/parsers/node.parser.ts",
            "label": "core/parsers/node.parser.ts",
            "markdown": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.md",
            "ref": "anatomy:file-context-core-parsers-node-parser-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "parseHeader",
      "signature": "export const parseHeader = function parseHeader(afterHash: string): ParsedHeader {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/text.converter.ts",
          "name": "valueAfter",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-text-converter-ts",
            "json": "https://banes-lab.com/json/source/context/core/converters/text.converter.ts",
            "label": "core/converters/text.converter.ts",
            "markdown": "https://banes-lab.com/source/context/core/converters/text.converter.ts.md",
            "ref": "anatomy:file-context-core-converters-text-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 107,
      "name": "nodeFieldOf",
      "signature": "export const nodeFieldOf = function nodeFieldOf(trimmed: string): PagNodeFieldValue | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "COMMENT",
      "signature": "const COMMENT: ParsedHeader = { head: \"\", kind: \"comment\", number: null, tag: null, title: \"\" };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "WORD_SEPARATOR",
      "signature": "const WORD_SEPARATOR = \" \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "COLON",
      "signature": "const COLON = \":\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "slotsOf",
      "signature": "const slotsOf = function slotsOf(inner: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "close",
      "signature": "const close = text.lastIndexOf(TAG_CLOSE);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "slots",
      "signature": "const slots = slotsOf(text.slice(open + 1, close));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "yields",
      "signature": "const yields = slots[NODE_TAG_SLOTS - 1] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "dash",
      "signature": "const dash = afterHead.indexOf(EM_DASH);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "body",
      "signature": "const body = dash === -1 ? afterHead : afterHead.slice(dash + EM_DASH.length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "open",
      "signature": "const open = body.indexOf(TAG_OPEN);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "second",
      "signature": "const second = tokens[1] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "number",
      "signature": "const number = second === \"\" || second === EM_DASH ? null : second;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "afterHead",
      "signature": "const afterHead = afterHash.slice(NODE_HEAD.length + 1 + (number ?? \"\").length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "colon",
      "signature": "const colon = afterHash.indexOf(COLON);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "rawNumber",
      "signature": "const rawNumber = tokens[1] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "trimmed",
      "signature": "const trimmed = afterHash.trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "tokens",
      "signature": "const tokens = trimmed.split(WORD_SEPARATOR).filter(Boolean);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "head",
      "signature": "const head = tokens[0] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "NODE_FIELDS",
      "signature": "const NODE_FIELDS: readonly [string, PagNodeField][] = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 108,
      "name": "entry",
      "signature": "const entry = NODE_FIELDS.find(([prefix]) => trimmed.startsWith(prefix));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-node-parser-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "node.parser.ts",
  "path": "core/parsers/node.parser.ts",
  "ref": "anatomy:file-context-core-parsers-node-parser-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-parsers",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-parsers",
          "label": "core/parsers",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-parsers.md",
          "ref": "chapter:/anatomy/context#folder-context-core-parsers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-text-converter-ts",
          "json": "https://banes-lab.com/json/source/context/core/converters/text.converter.ts",
          "label": "core/converters/text.converter.ts",
          "markdown": "https://banes-lab.com/source/context/core/converters/text.converter.ts.md",
          "ref": "anatomy:file-context-core-converters-text-converter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-document-parser-ts",
          "json": "https://banes-lab.com/json/source/context/core/parsers/document.parser.ts",
          "label": "core/parsers/document.parser.ts",
          "markdown": "https://banes-lab.com/source/context/core/parsers/document.parser.ts.md",
          "ref": "anatomy:file-context-core-parsers-document-parser-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-converters",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-converters.md",
          "ref": "chapter:/anatomy/context#folder-context-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-parsers",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-parsers",
          "label": "core/parsers",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-parsers.md",
          "ref": "chapter:/anatomy/context#folder-context-core-parsers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "parser",
    "subject": "node",
    "variant": null
  },
  "stats": {
    "bytes": 4391,
    "callable": 8,
    "definitions": 27,
    "edges": 6,
    "exported": 12,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 3,
      "entry": 2,
      "isolated": 20
    },
    "lines": {
      "blank": 10,
      "code": 119,
      "total": 129
    }
  },
  "summary": "119 lines of code and 27 definitions.",
  "text": "https://banes-lab.com/source/context/core/parsers/node.parser.ts.txt",
  "tree": "context",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-metadata-parser-ts",
      "json": "https://banes-lab.com/json/source/context/core/parsers/metadata.parser.ts",
      "label": "core/parsers/metadata.parser.ts",
      "markdown": "https://banes-lab.com/source/context/core/parsers/metadata.parser.ts.md",
      "ref": "anatomy:file-context-core-parsers-metadata-parser-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/parsers",
    "label": "core/parsers",
    "markdown": "https://banes-lab.com/api/source/context/core/parsers.md",
    "ref": "api:source/context/core/parsers"
  }
}
