{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/parsers/document.parser.ts",
          "name": "handleDeclaration",
          "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": 8,
      "name": "parseDeclaration",
      "signature": "export const parseDeclaration = function parseDeclaration(trimmed: string, line: number): PagDeclaration {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "FIELD_SEPARATOR",
      "signature": "const FIELD_SEPARATOR = \":\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "WORD_SEPARATOR",
      "signature": "const WORD_SEPARATOR = \" \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "LINE_FEED",
      "signature": "const LINE_FEED = \"\\n\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "tokens",
      "signature": "const tokens = trimmed.slice(DECLARATION_PREFIX.length).split(WORD_SEPARATOR).filter(Boolean);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "readFrontmatter",
      "signature": "export const readFrontmatter = function readFrontmatter(lines: string[]): FrontmatterRead {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "start",
      "signature": "const start = lines.findIndex((line) => line.trim() !== \"\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "close",
      "signature": "const close = lines.findIndex((line, index) => index > start && line.trim() === FRONTMATTER_FENCE);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "end",
      "signature": "const end = close === -1 ? lines.length : close;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "fieldOf",
      "signature": "export const fieldOf = function fieldOf(trimmed: string): { key: string; value: string } | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "colon",
      "signature": "const colon = trimmed.indexOf(FIELD_SEPARATOR);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-metadata-parser-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "metadata.parser.ts",
  "path": "core/parsers/metadata.parser.ts",
  "ref": "anatomy:file-context-core-parsers-metadata-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-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-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": "metadata",
    "variant": null
  },
  "stats": {
    "bytes": 1517,
    "callable": 3,
    "definitions": 11,
    "edges": 0,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 4,
      "code": 27,
      "total": 31
    }
  },
  "summary": "27 lines of code and 11 definitions.",
  "text": "https://banes-lab.com/source/context/core/parsers/metadata.parser.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "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"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-parsers-invariant-parser-ts",
      "json": "https://banes-lab.com/json/source/context/core/parsers/invariant.parser.ts",
      "label": "core/parsers/invariant.parser.ts",
      "markdown": "https://banes-lab.com/source/context/core/parsers/invariant.parser.ts.md",
      "ref": "anatomy:file-context-core-parsers-invariant-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"
  }
}
