{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/markup.converter.ts",
          "name": "tagEnd",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/markup.converter.ts",
            "label": "core/converters/markup.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts"
          }
        },
        {
          "file": "core/converters/style.converter.ts",
          "name": "splitDeclarations",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-style-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/style.converter.ts",
            "label": "core/converters/style.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/style.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-style-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "nextQuote",
      "signature": "export const nextQuote = function nextQuote(quote: string, char: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/schema.validator.ts",
          "name": "admits",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-validators-schema-validator-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/validators/schema.validator.ts",
            "label": "core/validators/schema.validator.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/validators/schema.validator.ts.md",
            "ref": "anatomy:file-build-scripts-core-validators-schema-validator-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/converters/markup.converter.ts",
          "name": "readAttribute",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/markup.converter.ts",
            "label": "core/converters/markup.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "readWhile",
      "signature": "const readWhile = function readWhile(text: string, from: number, admits: (char: string) => boolean): number {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/markup.converter.ts",
          "name": "readWhile",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/markup.converter.ts",
            "label": "core/converters/markup.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/converters/markup.converter.ts",
          "name": "readToken",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/markup.converter.ts",
            "label": "core/converters/markup.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "readAttribute",
      "signature": "const readAttribute = function readAttribute(content: string, from: number): Token {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/style.converter.ts",
          "name": "rootIdOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-style-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/style.converter.ts",
            "label": "core/converters/style.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/style.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-style-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 109,
      "name": "parseTag",
      "signature": "export const parseTag = function parseTag(content: string): Tag {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/style.converter.ts",
          "name": "liftAttributes",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-style-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/style.converter.ts",
            "label": "core/converters/style.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/style.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-style-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 126,
      "name": "serializeTag",
      "signature": "export const serializeTag = function serializeTag(tag: Tag): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/markup.converter.ts",
          "name": "nextQuote",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/markup.converter.ts",
            "label": "core/converters/markup.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "tagEnd",
      "signature": "export const tagEnd = function tagEnd(markup: string, from: number): number {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/markup.converter.ts",
          "name": "readAttribute",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/markup.converter.ts",
            "label": "core/converters/markup.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "readToken",
      "signature": "const readToken = function readToken(content: string, at: number): Token {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 3,
      "name": "TAG_OPEN",
      "signature": "const TAG_OPEN = \"<\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "TAG_CLOSE",
      "signature": "const TAG_CLOSE = \">\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "ASSIGN",
      "signature": "const ASSIGN = \"=\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "SLASH",
      "signature": "const SLASH = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "SPACE",
      "signature": "const SPACE = \" \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "ENTITY_OPEN",
      "signature": "const ENTITY_OPEN = \"&\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "ENTITY_CLOSE",
      "signature": "const ENTITY_CLOSE = \";\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "QUOTES",
      "signature": "const QUOTES = new Set(['\"', \"'\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "WHITESPACE",
      "signature": "const WHITESPACE = new Set([\" \", \"\\n\", \"\\t\", \"\\r\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "ENTITIES",
      "signature": "const ENTITIES: ReadonlyMap<string, string> = new Map(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 20,
      "name": "Token",
      "signature": "interface Token {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "decodeEntities",
      "signature": "export const decodeEntities = function decodeEntities(text: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "out",
      "signature": "let out = \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "open",
      "signature": "const open = text.indexOf(ENTITY_OPEN, at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "close",
      "signature": "const close = text.indexOf(ENTITY_CLOSE, open);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "decoded",
      "signature": "const decoded = close === -1 ? undefined : ENTITIES.get(text.slice(open, close + 1));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "char",
      "signature": "const char = markup.charAt(at);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "isSpace",
      "signature": "const isSpace = function isSpace(char: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "isNameChar",
      "signature": "const isNameChar = function isNameChar(char: string): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "quote",
      "signature": "const quote = content.charAt(at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "bareEnd",
      "signature": "const bareEnd = readWhile(content, at, isNameChar);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 94,
      "name": "valueEnd",
      "signature": "const valueEnd = content.indexOf(quote, at + 1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "end",
      "signature": "const end = valueEnd === -1 ? content.length : valueEnd;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "nameEnd",
      "signature": "const nameEnd = readWhile(content, 0, isNameChar);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 111,
      "name": "name",
      "signature": "const name = content.slice(0, nameEnd);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 113,
      "name": "selfClosing",
      "signature": "let selfClosing = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 114,
      "name": "at",
      "signature": "let at = nameEnd;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 116,
      "name": "token",
      "signature": "const token = readToken(content, readWhile(content, at, isSpace));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 127,
      "name": "attributes",
      "signature": "const attributes = tag.attributes.map((attribute) =>"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-markup-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "markup.converter.ts",
  "path": "core/converters/markup.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-markup-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-validators-schema-validator-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/validators/schema.validator.ts",
          "label": "core/validators/schema.validator.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/validators/schema.validator.ts.md",
          "ref": "anatomy:file-build-scripts-core-validators-schema-validator-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-style-converter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/converters/style.converter.ts",
          "label": "core/converters/style.converter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/converters/style.converter.ts.md",
          "ref": "anatomy:file-build-scripts-core-converters-style-converter-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-validators",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-validators.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "markup",
    "variant": null
  },
  "stats": {
    "bytes": 4495,
    "callable": 10,
    "definitions": 36,
    "edges": 4,
    "exported": 17,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "relay": 2,
      "entry": 2,
      "isolated": 29
    },
    "lines": {
      "blank": 12,
      "code": 121,
      "total": 133
    }
  },
  "summary": "121 lines of code and 36 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/markup.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-metric-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/metric.converter.ts",
      "label": "core/converters/metric.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/metric.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-metric-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-location-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/location.converter.ts",
      "label": "core/converters/location.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/location.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-location-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
