{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/diagram.strings.ts",
          "name": "parserUnavailable",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-diagram-strings-ts",
            "json": "https://banes-lab.com/json/source/docs/configuration/strings/diagram.strings.ts",
            "label": "configuration/strings/diagram.strings.ts",
            "markdown": "https://banes-lab.com/source/docs/configuration/strings/diagram.strings.ts.md",
            "ref": "anatomy:file-docs-configuration-strings-diagram-strings-ts"
          }
        },
        {
          "file": "core/adapters/diagram.adapter.ts",
          "name": "createMermaidParser",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-diagram-adapter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/adapters/diagram.adapter.ts",
            "label": "core/adapters/diagram.adapter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/adapters/diagram.adapter.ts.md",
            "ref": "anatomy:file-docs-core-adapters-diagram-adapter-ts"
          }
        },
        {
          "file": "core/parsers/diagram.parser.ts",
          "name": "mermaidBlocks",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-diagram-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/diagram.parser.ts",
            "label": "core/parsers/diagram.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/diagram.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-diagram-parser-ts"
          }
        },
        {
          "file": "core/reporters/base.reporter.ts",
          "name": "print",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-reporters-base-reporter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/reporters/base.reporter.ts",
            "label": "core/reporters/base.reporter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/reporters/base.reporter.ts.md",
            "ref": "anatomy:file-docs-core-reporters-base-reporter-ts"
          }
        },
        {
          "file": "core/validators/diagram.validator.ts",
          "name": "parseBlocks",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-diagram-validator-ts",
            "json": "https://banes-lab.com/json/source/docs/core/validators/diagram.validator.ts",
            "label": "core/validators/diagram.validator.ts",
            "markdown": "https://banes-lab.com/source/docs/core/validators/diagram.validator.ts.md",
            "ref": "anatomy:file-docs-core-validators-diagram-validator-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/plugins/manifest.readme.plugin.ts",
          "name": "coreErrors",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-manifest-readme-plugin-ts",
            "json": "https://banes-lab.com/json/source/docs/core/plugins/manifest.readme.plugin.ts",
            "label": "core/plugins/manifest.readme.plugin.ts",
            "markdown": "https://banes-lab.com/source/docs/core/plugins/manifest.readme.plugin.ts.md",
            "ref": "anatomy:file-docs-core-plugins-manifest-readme-plugin-ts"
          }
        },
        {
          "file": "core/registries/manifest.registry.ts",
          "name": "matchesQuery",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-registries-manifest-registry-ts",
            "json": "https://banes-lab.com/json/source/docs/core/registries/manifest.registry.ts",
            "label": "core/registries/manifest.registry.ts",
            "markdown": "https://banes-lab.com/source/docs/core/registries/manifest.registry.ts.md",
            "ref": "anatomy:file-docs-core-registries-manifest-registry-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "method_definition",
      "line": 31,
      "name": "check",
      "signature": "async check(source) {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/parsers/diagram.parser.ts",
          "name": "mermaidBlocks",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-diagram-parser-ts",
            "json": "https://banes-lab.com/json/source/docs/core/parsers/diagram.parser.ts",
            "label": "core/parsers/diagram.parser.ts",
            "markdown": "https://banes-lab.com/source/docs/core/parsers/diagram.parser.ts.md",
            "ref": "anatomy:file-docs-core-parsers-diagram-parser-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/validators/diagram.validator.ts",
          "name": "check",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-diagram-validator-ts",
            "json": "https://banes-lab.com/json/source/docs/core/validators/diagram.validator.ts",
            "label": "core/validators/diagram.validator.ts",
            "markdown": "https://banes-lab.com/source/docs/core/validators/diagram.validator.ts.md",
            "ref": "anatomy:file-docs-core-validators-diagram-validator-ts"
          }
        },
        {
          "file": "core/validators/diagram.validator.ts",
          "name": "validateCharts",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-diagram-validator-ts",
            "json": "https://banes-lab.com/json/source/docs/core/validators/diagram.validator.ts",
            "label": "core/validators/diagram.validator.ts",
            "markdown": "https://banes-lab.com/source/docs/core/validators/diagram.validator.ts.md",
            "ref": "anatomy:file-docs-core-validators-diagram-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "parseBlocks",
      "signature": "const parseBlocks = async function parseBlocks(parser: AvailableParser, markdown: string): Promise<ChartFinding[]> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/coordinators/validation.coordinator.ts",
          "name": "constructor",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-coordinators-validation-coordinator-ts",
            "json": "https://banes-lab.com/json/source/docs/core/coordinators/validation.coordinator.ts",
            "label": "core/coordinators/validation.coordinator.ts",
            "markdown": "https://banes-lab.com/source/docs/core/coordinators/validation.coordinator.ts.md",
            "ref": "anatomy:file-docs-core-coordinators-validation-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "createMermaidChecker",
      "signature": "export const createMermaidChecker = function createMermaidChecker(): ChartChecker {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/diagram.validator.ts",
          "name": "parseBlocks",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-diagram-validator-ts",
            "json": "https://banes-lab.com/json/source/docs/core/validators/diagram.validator.ts",
            "label": "core/validators/diagram.validator.ts",
            "markdown": "https://banes-lab.com/source/docs/core/validators/diagram.validator.ts.md",
            "ref": "anatomy:file-docs-core-validators-diagram-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "validateCharts",
      "signature": "export const validateCharts = async function validateCharts(markdown: string): Promise<ChartReport> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "findings",
      "signature": "const findings = await pending;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "message",
      "signature": "const message = await parser.parse(block.code);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "hardening",
      "signature": "const hardening = mermaidHardening(markdown).map((hit) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "state",
      "signature": "const state: { parser?: Promise<MermaidParser>; warned: boolean } = { warned: false };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "parser",
      "signature": "const parser = await state.parser;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-diagram-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "diagram.validator.ts",
  "path": "core/validators/diagram.validator.ts",
  "ref": "anatomy:file-docs-core-validators-diagram-validator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-validators",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-validators.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-validators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-diagram-strings-ts",
          "json": "https://banes-lab.com/json/source/docs/configuration/strings/diagram.strings.ts",
          "label": "configuration/strings/diagram.strings.ts",
          "markdown": "https://banes-lab.com/source/docs/configuration/strings/diagram.strings.ts.md",
          "ref": "anatomy:file-docs-configuration-strings-diagram-strings-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-diagram-adapter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/adapters/diagram.adapter.ts",
          "label": "core/adapters/diagram.adapter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/adapters/diagram.adapter.ts.md",
          "ref": "anatomy:file-docs-core-adapters-diagram-adapter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-parsers-diagram-parser-ts",
          "json": "https://banes-lab.com/json/source/docs/core/parsers/diagram.parser.ts",
          "label": "core/parsers/diagram.parser.ts",
          "markdown": "https://banes-lab.com/source/docs/core/parsers/diagram.parser.ts.md",
          "ref": "anatomy:file-docs-core-parsers-diagram-parser-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-reporters-base-reporter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/reporters/base.reporter.ts",
          "label": "core/reporters/base.reporter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/reporters/base.reporter.ts.md",
          "ref": "anatomy:file-docs-core-reporters-base-reporter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-coordinators-validation-coordinator-ts",
          "json": "https://banes-lab.com/json/source/docs/core/coordinators/validation.coordinator.ts",
          "label": "core/coordinators/validation.coordinator.ts",
          "markdown": "https://banes-lab.com/source/docs/core/coordinators/validation.coordinator.ts.md",
          "ref": "anatomy:file-docs-core-coordinators-validation-coordinator-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-plugins-manifest-readme-plugin-ts",
          "json": "https://banes-lab.com/json/source/docs/core/plugins/manifest.readme.plugin.ts",
          "label": "core/plugins/manifest.readme.plugin.ts",
          "markdown": "https://banes-lab.com/source/docs/core/plugins/manifest.readme.plugin.ts.md",
          "ref": "anatomy:file-docs-core-plugins-manifest-readme-plugin-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-registries-manifest-registry-ts",
          "json": "https://banes-lab.com/json/source/docs/core/registries/manifest.registry.ts",
          "label": "core/registries/manifest.registry.ts",
          "markdown": "https://banes-lab.com/source/docs/core/registries/manifest.registry.ts.md",
          "ref": "anatomy:file-docs-core-registries-manifest-registry-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-configuration-strings.md",
          "ref": "chapter:/anatomy/docs#folder-docs-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-adapters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-adapters"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-coordinators.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-coordinators"
        },
        {
          "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"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-plugins",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-plugins",
          "label": "core/plugins",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-plugins.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-plugins"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-registries",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-registries",
          "label": "core/registries",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-registries.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-registries"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-reporters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-reporters",
          "label": "core/reporters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-reporters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-reporters"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-validators",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-validators.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "validator",
    "subject": "diagram",
    "variant": null
  },
  "stats": {
    "bytes": 2120,
    "callable": 4,
    "definitions": 9,
    "edges": 7,
    "exported": 6,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 1,
      "entry": 1,
      "isolated": 5
    },
    "lines": {
      "blank": 3,
      "code": 44,
      "total": 47
    }
  },
  "summary": "44 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/docs/core/validators/diagram.validator.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-document-validator-ts",
      "json": "https://banes-lab.com/json/source/docs/core/validators/document.validator.ts",
      "label": "core/validators/document.validator.ts",
      "markdown": "https://banes-lab.com/source/docs/core/validators/document.validator.ts.md",
      "ref": "anatomy:file-docs-core-validators-document-validator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-validators-barrel-validator-ts",
      "json": "https://banes-lab.com/json/source/docs/core/validators/barrel.validator.ts",
      "label": "core/validators/barrel.validator.ts",
      "markdown": "https://banes-lab.com/source/docs/core/validators/barrel.validator.ts.md",
      "ref": "anatomy:file-docs-core-validators-barrel-validator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/validators",
    "label": "core/validators",
    "markdown": "https://banes-lab.com/api/source/docs/core/validators.md",
    "ref": "api:source/docs/core/validators"
  }
}
