{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "templatePartsOf",
      "signature": "export const templatePartsOf = function templatePartsOf(text: string): TemplateParts | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "holes",
      "signature": "const holes: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "literals",
      "signature": "const literals: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "at",
      "signature": "let at = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "open",
      "signature": "let open = text.indexOf(HOLE_OPEN);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "close",
      "signature": "let close = open === -1 ? -1 : text.indexOf(HOLE_CLOSE, open + HOLE_OPEN.length);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "bindingValueOf",
      "signature": "const bindingValueOf = function bindingValueOf(source: string, name: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "head",
      "signature": "const head = BINDING_HEAD + name + BINDING_ASSIGN;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "start",
      "signature": "const start = source.indexOf(head);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "quote",
      "signature": "const quote = start === -1 ? \"\" : source.charAt(start + head.length);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "valueStart",
      "signature": "const valueStart = start + head.length + quote.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "end",
      "signature": "const end = source.indexOf(quote, valueStart);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "value",
      "signature": "const value = end === -1 ? \"\" : source.slice(valueStart, end);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "foldedOf",
      "signature": "export const foldedOf = function foldedOf(parts: TemplateParts, source: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "values",
      "signature": "const values = parts.holes.map((hole) => bindingValueOf(source, hole));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-converters-template-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "template.converter.ts",
  "path": "core/converters/template.converter.ts",
  "ref": "anatomy:file-core-converters-template-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-converters",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-converters.md",
          "ref": "chapter:/anatomy/tree#folder-core-converters"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "template",
    "variant": null
  },
  "stats": {
    "bytes": 1928,
    "callable": 3,
    "definitions": 15,
    "edges": 0,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 15
    },
    "lines": {
      "blank": 3,
      "code": 46,
      "total": 49
    }
  },
  "summary": "46 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/tree/core/converters/template.converter.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-converters-text-converter-ts",
      "json": "https://banes-lab.com/json/source/tree/core/converters/text.converter.ts",
      "label": "core/converters/text.converter.ts",
      "markdown": "https://banes-lab.com/source/tree/core/converters/text.converter.ts.md",
      "ref": "anatomy:file-core-converters-text-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-converters-surface-converter-ts",
      "json": "https://banes-lab.com/json/source/tree/core/converters/surface.converter.ts",
      "label": "core/converters/surface.converter.ts",
      "markdown": "https://banes-lab.com/source/tree/core/converters/surface.converter.ts.md",
      "ref": "anatomy:file-core-converters-surface-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/tree/core/converters.md",
    "ref": "api:source/tree/core/converters"
  }
}
