{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/resolvers/template.resolver.ts",
          "name": "slotIsDangling",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
            "json": "https://banes-lab.com/json/source/context/core/resolvers/template.resolver.ts",
            "label": "core/resolvers/template.resolver.ts",
            "markdown": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md",
            "ref": "anatomy:file-context-core-resolvers-template-resolver-ts"
          }
        },
        {
          "file": "core/resolvers/template.resolver.ts",
          "name": "substitute",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
            "json": "https://banes-lab.com/json/source/context/core/resolvers/template.resolver.ts",
            "label": "core/resolvers/template.resolver.ts",
            "markdown": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md",
            "ref": "anatomy:file-context-core-resolvers-template-resolver-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "slotMarkOf",
      "signature": "const slotMarkOf = function slotMarkOf(name: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/resolvers/template.resolver.ts",
          "name": "slotMarkOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
            "json": "https://banes-lab.com/json/source/context/core/resolvers/template.resolver.ts",
            "label": "core/resolvers/template.resolver.ts",
            "markdown": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md",
            "ref": "anatomy:file-context-core-resolvers-template-resolver-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/validators/grammar.validator.ts",
          "name": "grammarIssuesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-grammar-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/grammar.validator.ts",
            "label": "core/validators/grammar.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/grammar.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-grammar-validator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "slotIsDangling",
      "signature": "export const slotIsDangling = function slotIsDangling(template: TemplateRecord, slot: TemplateSlot): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/resolvers/template.resolver.ts",
          "name": "slotViolation",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
            "json": "https://banes-lab.com/json/source/context/core/resolvers/template.resolver.ts",
            "label": "core/resolvers/template.resolver.ts",
            "markdown": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md",
            "ref": "anatomy:file-context-core-resolvers-template-resolver-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "outOfEnum",
      "signature": "const outOfEnum = function outOfEnum(slot: TemplateSlot, value: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/factories/grammar.factory.ts",
          "name": "assemble",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-factories-grammar-factory-ts",
            "json": "https://banes-lab.com/json/source/context/core/factories/grammar.factory.ts",
            "label": "core/factories/grammar.factory.ts",
            "markdown": "https://banes-lab.com/source/context/core/factories/grammar.factory.ts.md",
            "ref": "anatomy:file-context-core-factories-grammar-factory-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "resolvePagTemplate",
      "signature": "export const resolvePagTemplate = function resolvePagTemplate("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/grammar.strings.ts",
          "name": "enumViolation",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-grammar-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/grammar.strings.ts",
            "label": "configuration/strings/grammar.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/grammar.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-grammar-strings-ts"
          }
        },
        {
          "file": "configuration/strings/grammar.strings.ts",
          "name": "missingRequiredSlot",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-grammar-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/grammar.strings.ts",
            "label": "configuration/strings/grammar.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/grammar.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-grammar-strings-ts"
          }
        },
        {
          "file": "core/resolvers/template.resolver.ts",
          "name": "outOfEnum",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
            "json": "https://banes-lab.com/json/source/context/core/resolvers/template.resolver.ts",
            "label": "core/resolvers/template.resolver.ts",
            "markdown": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md",
            "ref": "anatomy:file-context-core-resolvers-template-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "slotViolation",
      "signature": "const slotViolation = function slotViolation(slot: TemplateSlot, value: string): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/resolvers/template.resolver.ts",
          "name": "slotMarkOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
            "json": "https://banes-lab.com/json/source/context/core/resolvers/template.resolver.ts",
            "label": "core/resolvers/template.resolver.ts",
            "markdown": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.md",
            "ref": "anatomy:file-context-core-resolvers-template-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "substitute",
      "signature": "const substitute = function substitute(body: string, slots: Record<string, string>): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "suppliedValue",
      "signature": "const suppliedValue = function suppliedValue(slots: Record<string, string>, name: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "violations",
      "signature": "const violations = template.slots.flatMap((slot) => slotViolation(slot, suppliedValue(slots, slot.name)) ?? []);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "text",
      "signature": "const text = substitute(template.body, slots);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "unresolved",
      "signature": "const unresolved = template.slots.filter((slot) => text.includes(slotMarkOf(slot.name))).map((slot) => slot.name);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-template-resolver-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "template.resolver.ts",
  "path": "core/resolvers/template.resolver.ts",
  "ref": "anatomy:file-context-core-resolvers-template-resolver-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-resolvers",
          "label": "core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-resolvers.md",
          "ref": "chapter:/anatomy/context#folder-context-core-resolvers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-grammar-strings-ts",
          "json": "https://banes-lab.com/json/source/context/configuration/strings/grammar.strings.ts",
          "label": "configuration/strings/grammar.strings.ts",
          "markdown": "https://banes-lab.com/source/context/configuration/strings/grammar.strings.ts.md",
          "ref": "anatomy:file-context-configuration-strings-grammar-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-factories-grammar-factory-ts",
          "json": "https://banes-lab.com/json/source/context/core/factories/grammar.factory.ts",
          "label": "core/factories/grammar.factory.ts",
          "markdown": "https://banes-lab.com/source/context/core/factories/grammar.factory.ts.md",
          "ref": "anatomy:file-context-core-factories-grammar-factory-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-grammar-validator-ts",
          "json": "https://banes-lab.com/json/source/context/core/validators/grammar.validator.ts",
          "label": "core/validators/grammar.validator.ts",
          "markdown": "https://banes-lab.com/source/context/core/validators/grammar.validator.ts.md",
          "ref": "anatomy:file-context-core-validators-grammar-validator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md",
          "ref": "chapter:/anatomy/context#folder-context-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-factories",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-factories.md",
          "ref": "chapter:/anatomy/context#folder-context-core-factories"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-resolvers",
          "label": "core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-resolvers.md",
          "ref": "chapter:/anatomy/context#folder-context-core-resolvers"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "resolver",
    "subject": "template",
    "variant": null
  },
  "stats": {
    "bytes": 1878,
    "callable": 7,
    "definitions": 10,
    "edges": 5,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "relay": 1,
      "entry": 2,
      "isolated": 4
    },
    "lines": {
      "blank": 7,
      "code": 36,
      "total": 43
    }
  },
  "summary": "36 lines of code and 10 definitions.",
  "text": "https://banes-lab.com/source/context/core/resolvers/template.resolver.ts.txt",
  "tree": "context",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-resolvers-reference-resolver-ts",
      "json": "https://banes-lab.com/json/source/context/core/resolvers/reference.resolver.ts",
      "label": "core/resolvers/reference.resolver.ts",
      "markdown": "https://banes-lab.com/source/context/core/resolvers/reference.resolver.ts.md",
      "ref": "anatomy:file-context-core-resolvers-reference-resolver-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/resolvers",
    "label": "core/resolvers",
    "markdown": "https://banes-lab.com/api/source/context/core/resolvers.md",
    "ref": "api:source/context/core/resolvers"
  }
}
