{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/emission.rule.ts",
          "name": "closingQuote",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/emission.rule.ts",
            "label": "tools/rules/emission.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/rules/emission.rule.ts",
          "name": "declaredRestatements",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/emission.rule.ts",
            "label": "tools/rules/emission.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "quotedWithin",
      "signature": "const quotedWithin = function quotedWithin(source: string, open: number, close: number): Quoted[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/emission.rule.ts",
          "name": "declaredRestatements",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/emission.rule.ts",
            "label": "tools/rules/emission.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "lineOf",
      "signature": "const lineOf = function lineOf(source: string, index: number): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/rules/emission.rule.ts",
          "name": "quotedWithin",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/emission.rule.ts",
            "label": "tools/rules/emission.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "closingQuote",
      "signature": "const closingQuote = function closingQuote(source: string, quote: number): number {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/rules/emission.rule.ts",
          "name": "lineOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/emission.rule.ts",
            "label": "tools/rules/emission.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts"
          }
        },
        {
          "file": "tools/rules/emission.rule.ts",
          "name": "quotedWithin",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/emission.rule.ts",
            "label": "tools/rules/emission.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "declaredRestatements",
      "signature": "const declaredRestatements = function declaredRestatements(source: string, path: string): Restatement[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "MECHANISM_ROOT",
      "signature": "const MECHANISM_ROOT = surfacePath(\"entrypoints\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "FIELD",
      "signature": "const FIELD = \"RESTATES\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 15,
      "name": "Restatement",
      "signature": "interface Restatement {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "QUOTE",
      "signature": "const QUOTE = '\"';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 23,
      "name": "Quoted",
      "signature": "interface Quoted {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "listBounds",
      "signature": "const listBounds = function listBounds(source: string): readonly [number, number] | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "at",
      "signature": "const at = source.indexOf(FIELD);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "assign",
      "signature": "const assign = at === -1 ? -1 : source.indexOf(\"=\", at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "open",
      "signature": "const open = assign === -1 ? -1 : source.indexOf(\"[\", assign);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "close",
      "signature": "const close = open === -1 ? -1 : source.indexOf(\"]\", open);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "out",
      "signature": "const out: Quoted[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "quote",
      "signature": "let quote = source.indexOf(QUOTE, open);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "end",
      "signature": "let end = closingQuote(source, quote);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "bounds",
      "signature": "const bounds = listBounds(source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "rule",
      "signature": "export const rule: RuleDeclaration = {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 69,
      "name": "check",
      "signature": "check(context: RuleContext): RuleResult {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "readAxes",
      "signature": "const readAxes = AXIS_DOCUMENTS.filter((path) => context.exists(path));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "declared",
      "signature": "const declared = new Set("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "root",
      "signature": "const root = resolve(context.repoRoot, MECHANISM_ROOT);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "sources",
      "signature": "const sources = context.exists(MECHANISM_ROOT) ? walk({ extensions: [\".ts\"], ignored: [], root }) : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "restatements",
      "signature": "const restatements = sources.flatMap((file) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "relative",
      "signature": "const relative = file"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "stale",
      "signature": "const stale = restatements.filter((restatement) => !declared.has(restatement.slug));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "unresolved",
      "signature": "const unresolved = stale.map((restatement) => restatement.slug);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 100,
      "name": "findings",
      "signature": "const findings: Finding[] = stale.map((restatement) => ({"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-emission-rule-ts",
  "language": "typescript",
  "layer": "domain",
  "name": "emission.rule.ts",
  "path": "tools/rules/emission.rule.ts",
  "ref": "anatomy:file-coordination-tools-rules-emission-rule-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-rules",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-rules",
          "label": "tools/rules",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-rules.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-rules"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-rules",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-rules",
          "label": "tools/rules",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-rules.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-rules"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "rule",
    "subject": "emission",
    "variant": null
  },
  "stats": {
    "bytes": 6577,
    "callable": 6,
    "definitions": 29,
    "edges": 3,
    "exported": 11,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 2,
      "entry": 1,
      "isolated": 25
    },
    "lines": {
      "blank": 21,
      "code": 129,
      "total": 150
    }
  },
  "summary": "129 lines of code and 29 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/rules/emission.rule.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-entrypoint-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/entrypoint.rule.ts",
      "label": "tools/rules/entrypoint.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/entrypoint.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-entrypoint-rule-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-declaration-rule-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/rules/declaration.rule.ts",
      "label": "tools/rules/declaration.rule.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/rules/declaration.rule.ts.md",
      "ref": "anatomy:file-coordination-tools-rules-declaration-rule-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/rules",
    "label": "tools/rules",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/rules.md",
    "ref": "api:source/coordination/tools/rules"
  }
}
