{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/canon.concept.converter.ts",
          "name": "groupByConcept",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/converters/canon.concept.converter.ts",
            "label": "core/converters/canon.concept.converter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.md",
            "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "canonicalOf",
      "signature": "const canonicalOf = function canonicalOf(rule: CatalogRule): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/canon.concept.converter.ts",
          "name": "entryForTool",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/converters/canon.concept.converter.ts",
            "label": "core/converters/canon.concept.converter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.md",
            "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "knobEntry",
      "signature": "const knobEntry = function knobEntry(knob: ConceptKnob, base: Base, tool: string): MappingEntry {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/canon.concept.converter.ts",
          "name": "entryForTool",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/converters/canon.concept.converter.ts",
            "label": "core/converters/canon.concept.converter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.md",
            "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "plainEntry",
      "signature": "const plainEntry = function plainEntry(base: Base, tool: string, valueType: string): MappingEntry {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/canon.concept.converter.ts",
          "name": "knobEntry",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/converters/canon.concept.converter.ts",
            "label": "core/converters/canon.concept.converter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.md",
            "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts"
          }
        },
        {
          "file": "core/converters/canon.concept.converter.ts",
          "name": "plainEntry",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/converters/canon.concept.converter.ts",
            "label": "core/converters/canon.concept.converter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.md",
            "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "entryForTool",
      "signature": "const entryForTool = function entryForTool("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/canon.concept.converter.ts",
          "name": "canonicalOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/converters/canon.concept.converter.ts",
            "label": "core/converters/canon.concept.converter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.md",
            "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "groupByConcept",
      "signature": "const groupByConcept = function groupByConcept(rules: readonly CatalogRule[]): Map<string, ByTool> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 7,
      "name": "Grouped",
      "signature": "interface Grouped {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 12,
      "name": "ByTool",
      "signature": "type ByTool = Map<string, Grouped>;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 14,
      "name": "Base",
      "signature": "interface Base {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "{ canonical }",
      "signature": "const { canonical } = rule;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "tool",
      "signature": "const tool = stringField(rule, \"tool\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "byTool",
      "signature": "const byTool = byConcept.get(concept) ?? new Map<string, Grouped>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "grouped",
      "signature": "const grouped = byTool.get(tool) ?? { ecosystems: new Set<string>(), ruleIds: new Set<string>() };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "common",
      "signature": "const common = { lang: base.lang, ruleCount: base.ruleIds.length, ruleIds: base.ruleIds, tool };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "ruleIds",
      "signature": "const ruleIds = [...grouped.ruleIds].toSorted((a, b) => a.localeCompare(b));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "ecosystems",
      "signature": "const ecosystems = [...grouped.ecosystems].toSorted((a, b) => a.localeCompare(b));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "base",
      "signature": "const base = { lang: ecosystems.length === 1 ? (ecosystems[0] ?? \"\") : ecosystems, ruleIds };"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "mappingConcepts",
      "signature": "export const mappingConcepts = function mappingConcepts("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "dimensionOf",
      "signature": "const dimensionOf = new Map(concepts.map((concept) => [concept.id, concept.dimension]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "byConcept",
      "signature": "const byConcept = groupByConcept(rules);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "out",
      "signature": "const out = new Map<string, MappingConcept>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "knob",
      "signature": "const knob = knobs[id];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "valueType",
      "signature": "const valueType = knob ? knob.valueType : TOGGLE_VALUE_TYPE;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "entries",
      "signature": "const entries = [...(byConcept.get(id) ?? [])]"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-concept-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "canon.concept.converter.ts",
  "path": "core/converters/canon.concept.converter.ts",
  "ref": "anatomy:file-quality-core-converters-canon-concept-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-converters",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-converters.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-converters",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-converters.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "canon",
    "variant": "concept"
  },
  "stats": {
    "bytes": 4257,
    "callable": 6,
    "definitions": 23,
    "edges": 3,
    "exported": 7,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "entry": 2,
      "isolated": 18
    },
    "lines": {
      "blank": 9,
      "code": 90,
      "total": 99
    }
  },
  "summary": "90 lines of code and 23 definitions.",
  "text": "https://banes-lab.com/source/quality/core/converters/canon.concept.converter.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-canon-converter-ts",
      "json": "https://banes-lab.com/json/source/quality/core/converters/canon.converter.ts",
      "label": "core/converters/canon.converter.ts",
      "markdown": "https://banes-lab.com/source/quality/core/converters/canon.converter.ts.md",
      "ref": "anatomy:file-quality-core-converters-canon-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-converters-access-converter-ts",
      "json": "https://banes-lab.com/json/source/quality/core/converters/access.converter.ts",
      "label": "core/converters/access.converter.ts",
      "markdown": "https://banes-lab.com/source/quality/core/converters/access.converter.ts.md",
      "ref": "anatomy:file-quality-core-converters-access-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/quality/core/converters.md",
    "ref": "api:source/quality/core/converters"
  }
}
