{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/algorithm.index.converter.ts",
          "name": "buildSymbolIndex",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-algorithm-index-converter-ts",
            "json": "https://banes-lab.com/json/source/context/core/converters/algorithm.index.converter.ts",
            "label": "core/converters/algorithm.index.converter.ts",
            "markdown": "https://banes-lab.com/source/context/core/converters/algorithm.index.converter.ts.md",
            "ref": "anatomy:file-context-core-converters-algorithm-index-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "accumulateSymbols",
      "signature": "const accumulateSymbols = function accumulateSymbols("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/algorithm.index.converter.ts",
          "name": "buildSymbolIndex",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-algorithm-index-converter-ts",
            "json": "https://banes-lab.com/json/source/context/core/converters/algorithm.index.converter.ts",
            "label": "core/converters/algorithm.index.converter.ts",
            "markdown": "https://banes-lab.com/source/context/core/converters/algorithm.index.converter.ts.md",
            "ref": "anatomy:file-context-core-converters-algorithm-index-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "toSymbolEntry",
      "signature": "const toSymbolEntry = function toSymbolEntry(name: string, accumulator: SymbolAccumulator): SymbolEntry {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/algorithm.index.converter.ts",
          "name": "accumulateSymbols",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-algorithm-index-converter-ts",
            "json": "https://banes-lab.com/json/source/context/core/converters/algorithm.index.converter.ts",
            "label": "core/converters/algorithm.index.converter.ts",
            "markdown": "https://banes-lab.com/source/context/core/converters/algorithm.index.converter.ts.md",
            "ref": "anatomy:file-context-core-converters-algorithm-index-converter-ts"
          }
        },
        {
          "file": "core/converters/algorithm.index.converter.ts",
          "name": "toSymbolEntry",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-algorithm-index-converter-ts",
            "json": "https://banes-lab.com/json/source/context/core/converters/algorithm.index.converter.ts",
            "label": "core/converters/algorithm.index.converter.ts",
            "markdown": "https://banes-lab.com/source/context/core/converters/algorithm.index.converter.ts.md",
            "ref": "anatomy:file-context-core-converters-algorithm-index-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "buildSymbolIndex",
      "signature": "export const buildSymbolIndex = function buildSymbolIndex(contracts: readonly ContractSymbolView[]): SymbolEntry[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 11,
      "name": "SymbolAccumulator",
      "signature": "interface SymbolAccumulator {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "isSingleQuotedLiteral",
      "signature": "const isSingleQuotedLiteral = function isSingleQuotedLiteral(part: string): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "trimmed",
      "signature": "const trimmed = part.trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "quotes",
      "signature": "let quotes = 0;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "enumValues",
      "signature": "const enumValues = function enumValues(rhs: string): string[] | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "parts",
      "signature": "const parts = rhs.split(ALTERNATIVE_SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "accumulators",
      "signature": "const accumulators = new Map<string, SymbolAccumulator>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "key",
      "signature": "const key = `${contract.domain}${SYMBOL_NAME_SEPARATOR}${production.lhs}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "entry",
      "signature": "const entry = accumulators.get(key) ?? {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "[rhs = \"\"]",
      "signature": "const [rhs = \"\"] = [...accumulator.rhsSet].toSorted((a, b) => a.localeCompare(b));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "definedIn",
      "signature": "const definedIn = [...accumulator.records].toSorted((a, b) => a.localeCompare(b));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "values",
      "signature": "const values = rhs.includes(NONTERMINAL_OPEN) ? null : enumValues(rhs);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-algorithm-index-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "algorithm.index.converter.ts",
  "path": "core/converters/algorithm.index.converter.ts",
  "ref": "anatomy:file-context-core-converters-algorithm-index-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-converters",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-converters.md",
          "ref": "chapter:/anatomy/context#folder-context-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-converters",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-converters.md",
          "ref": "chapter:/anatomy/context#folder-context-core-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "algorithm",
    "variant": "index"
  },
  "stats": {
    "bytes": 2727,
    "callable": 5,
    "definitions": 15,
    "edges": 2,
    "exported": 1,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 1,
      "isolated": 12
    },
    "lines": {
      "blank": 6,
      "code": 63,
      "total": 69
    }
  },
  "summary": "63 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/context/core/converters/algorithm.index.converter.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-converters-base-converter-ts",
      "json": "https://banes-lab.com/json/source/context/core/converters/base.converter.ts",
      "label": "core/converters/base.converter.ts",
      "markdown": "https://banes-lab.com/source/context/core/converters/base.converter.ts.md",
      "ref": "anatomy:file-context-core-converters-base-converter-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/context/core/converters.md",
    "ref": "api:source/context/core/converters"
  }
}
