{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "codemods/entrypoints/identifier.entrypoint.ts",
          "name": "collect",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-identifier-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/governance/codemods/entrypoints/identifier.entrypoint.ts",
            "label": "codemods/entrypoints/identifier.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/governance/codemods/entrypoints/identifier.entrypoint.ts.md",
            "ref": "anatomy:file-governance-codemods-entrypoints-identifier-entrypoint-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "merged",
      "signature": "const merged = function merged("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "codemods/entrypoints/identifier.entrypoint.ts",
          "name": "merged",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-identifier-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/governance/codemods/entrypoints/identifier.entrypoint.ts",
            "label": "codemods/entrypoints/identifier.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/governance/codemods/entrypoints/identifier.entrypoint.ts.md",
            "ref": "anatomy:file-governance-codemods-entrypoints-identifier-entrypoint-ts"
          }
        },
        {
          "file": "codemods/selectors/program.selector.ts",
          "name": "repoSourceFiles",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-selectors-program-selector-ts",
            "json": "https://banes-lab.com/json/source/governance/codemods/selectors/program.selector.ts",
            "label": "codemods/selectors/program.selector.ts",
            "markdown": "https://banes-lab.com/source/governance/codemods/selectors/program.selector.ts.md",
            "ref": "anatomy:file-governance-codemods-selectors-program-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "collect",
      "signature": "const collect = function collect(): IdentifierFinding[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "RULE_ID",
      "signature": "const RULE_ID = \"naming-convention\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "buildEdits",
      "signature": "const buildEdits = function buildEdits(findings: readonly IdentifierFinding[]): Map<string, Edit[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "byFile",
      "signature": "const byFile = new Map<string, Edit[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "edit",
      "signature": "const edit: Edit = { end: location.end, replacement: finding.to, start: location.start };"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "locationKey",
      "signature": "const locationKey = function locationKey(location: { fileName: string; start: number }): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "seen",
      "signature": "const seen = new Set(existing.locations.map(locationKey));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "extra",
      "signature": "const extra = addition.locations.filter((location) => !seen.has(locationKey(location)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "byDeclaration",
      "signature": "const byDeclaration = new Map<string, IdentifierFinding>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "program",
      "signature": "const program = programFor(tsconfig);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "key",
      "signature": "const key = `${finding.file}:${String(finding.line)}:${finding.from}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "existing",
      "signature": "const existing = byDeclaration.get(key);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-identifier-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "identifier.entrypoint.ts",
  "path": "codemods/entrypoints/identifier.entrypoint.ts",
  "ref": "anatomy:file-governance-codemods-entrypoints-identifier-entrypoint-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-codemods-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-codemods-entrypoints",
          "label": "codemods/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-codemods-entrypoints.md",
          "ref": "chapter:/anatomy/governance#folder-governance-codemods-entrypoints"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-selectors-program-selector-ts",
          "json": "https://banes-lab.com/json/source/governance/codemods/selectors/program.selector.ts",
          "label": "codemods/selectors/program.selector.ts",
          "markdown": "https://banes-lab.com/source/governance/codemods/selectors/program.selector.ts.md",
          "ref": "anatomy:file-governance-codemods-selectors-program-selector-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-standardization",
          "json": "https://banes-lab.com/json/records/architecture/standardization",
          "label": "Standardization",
          "markdown": "https://banes-lab.com/records/architecture/standardization.md",
          "ref": "architecture:standardization"
        }
      ],
      "relation": "enforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-codemods-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-codemods-entrypoints",
          "label": "codemods/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-codemods-entrypoints.md",
          "ref": "chapter:/anatomy/governance#folder-governance-codemods-entrypoints"
        },
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-codemods-selectors",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-codemods-selectors",
          "label": "codemods/selectors",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-codemods-selectors.md",
          "ref": "chapter:/anatomy/governance#folder-governance-codemods-selectors"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "identifier",
    "variant": null
  },
  "stats": {
    "bytes": 2595,
    "callable": 4,
    "definitions": 13,
    "edges": 2,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 11
    },
    "lines": {
      "blank": 6,
      "code": 51,
      "total": 57
    }
  },
  "summary": "51 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/governance/codemods/entrypoints/identifier.entrypoint.ts.txt",
  "tree": "governance",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-increment-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/governance/codemods/entrypoints/increment.entrypoint.ts",
      "label": "codemods/entrypoints/increment.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/governance/codemods/entrypoints/increment.entrypoint.ts.md",
      "ref": "anatomy:file-governance-codemods-entrypoints-increment-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-code-point-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/governance/codemods/entrypoints/code-point.entrypoint.ts",
      "label": "codemods/entrypoints/code-point.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/governance/codemods/entrypoints/code-point.entrypoint.ts.md",
      "ref": "anatomy:file-governance-codemods-entrypoints-code-point-entrypoint-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/governance/codemods/entrypoints",
    "label": "codemods/entrypoints",
    "markdown": "https://banes-lab.com/api/source/governance/codemods/entrypoints.md",
    "ref": "api:source/governance/codemods/entrypoints"
  }
}
