{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "codemods/entrypoints/binding.entrypoint.ts",
          "name": "collect",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-binding-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/governance/codemods/entrypoints/binding.entrypoint.ts",
            "label": "codemods/entrypoints/binding.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/governance/codemods/entrypoints/binding.entrypoint.ts.md",
            "ref": "anatomy:file-governance-codemods-entrypoints-binding-entrypoint-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "scanProgram",
      "signature": "const scanProgram = function scanProgram(tsconfigPath: string): BindingFinding[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "codemods/entrypoints/binding.entrypoint.ts",
          "name": "scanProgram",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-binding-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/governance/codemods/entrypoints/binding.entrypoint.ts",
            "label": "codemods/entrypoints/binding.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/governance/codemods/entrypoints/binding.entrypoint.ts.md",
            "ref": "anatomy:file-governance-codemods-entrypoints-binding-entrypoint-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "collect",
      "signature": "const collect = function collect(): BindingFinding[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "RULE_ID",
      "signature": "const RULE_ID = \"callable-field-impl\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "ACCESS_KINDS",
      "signature": "const ACCESS_KINDS: ReadonlySet<ts.SyntaxKind> = new Set(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "program",
      "signature": "const program = programFor(tsconfigPath);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "checker",
      "signature": "const checker = program.getTypeChecker();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "files",
      "signature": "const files = repoSourceFiles(program);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "overrides",
      "signature": "const overrides = collectOverrides(checker, files);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "boundPropertyText",
      "signature": "const boundPropertyText = function boundPropertyText(method: ts.MethodDeclaration): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "modifiers",
      "signature": "const modifiers = method.modifiers ?? [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "access",
      "signature": "const access = modifiers.find((modifier) => ACCESS_KINDS.has(modifier.kind));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "overrideText",
      "signature": "const overrideText = modifiers.some((modifier) => modifier.kind === ts.SyntaxKind.OverrideKeyword)"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "accessPrefix",
      "signature": "const accessPrefix = access ? `${access.getText()} ` : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "accessText",
      "signature": "const accessText = `${accessPrefix}${overrideText}`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "asyncText",
      "signature": "const asyncText = modifiers.some((modifier) => modifier.kind === ts.SyntaxKind.AsyncKeyword) ? \"async \" : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "typeParams",
      "signature": "const typeParams = method.typeParameters"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "params",
      "signature": "const params = method.parameters.map((param) => param.getText()).join(\", \");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "returnType",
      "signature": "const returnType = method.type ? `: ${method.type.getText()}` : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "body",
      "signature": "const body = method.body ? method.body.getText() : \"{}\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "buildEdits",
      "signature": "const buildEdits = function buildEdits(findings: readonly BindingFinding[]): Map<string, Edit[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "byFile",
      "signature": "const byFile = new Map<string, Edit[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "seenMethod",
      "signature": "const seenMethod = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "edit",
      "signature": "const edit: Edit = { end: finding.end, replacement: boundPropertyText(finding.method), start: finding.start };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "seen",
      "signature": "const seen = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "findings",
      "signature": "const findings: BindingFinding[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "key",
      "signature": "const key = `${finding.file}:${String(finding.start)}`;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-entrypoints-binding-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "binding.entrypoint.ts",
  "path": "codemods/entrypoints/binding.entrypoint.ts",
  "ref": "anatomy:file-governance-codemods-entrypoints-binding-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/ontology#architecture-explicit-contracts",
          "json": "https://banes-lab.com/json/records/architecture/explicit-contracts",
          "label": "Explicit Contracts",
          "markdown": "https://banes-lab.com/records/architecture/explicit-contracts.md",
          "ref": "architecture:explicit-contracts"
        }
      ],
      "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"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "binding",
    "variant": null
  },
  "stats": {
    "bytes": 4099,
    "callable": 4,
    "definitions": 26,
    "edges": 1,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 24
    },
    "lines": {
      "blank": 7,
      "code": 77,
      "total": 84
    }
  },
  "summary": "77 lines of code and 26 definitions.",
  "text": "https://banes-lab.com/source/governance/codemods/entrypoints/binding.entrypoint.ts.txt",
  "tree": "governance",
  "siblings": {
    "next": {
      "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"
    },
    "previous": null
  },
  "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"
  }
}
