{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "codemods/analyzers/reference.analyzer.ts",
          "name": "scanMarkup",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-analyzers-reference-analyzer-ts",
            "json": "https://banes-lab.com/json/source/governance/codemods/analyzers/reference.analyzer.ts",
            "label": "codemods/analyzers/reference.analyzer.ts",
            "markdown": "https://banes-lab.com/source/governance/codemods/analyzers/reference.analyzer.ts.md",
            "ref": "anatomy:file-governance-codemods-analyzers-reference-analyzer-ts"
          }
        },
        {
          "file": "shared/analyzers/segment.analyzer.ts",
          "name": "composedTokenOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-analyzers-segment-analyzer-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/analyzers/segment.analyzer.ts",
            "label": "shared/analyzers/segment.analyzer.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/analyzers/segment.analyzer.ts.md",
            "ref": "anatomy:file-governance-shared-analyzers-segment-analyzer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 89,
      "name": "tokenIn",
      "signature": "export const tokenIn = function tokenIn(value: string): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        },
        {
          "file": "shared/registries/location.registry.ts",
          "name": "recordLocation",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "keyIndex",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "walk",
      "signature": "const walk = function walk(node: unknown, trail: string[]): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "keyForLocation",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "toPosix",
      "signature": "export const toPosix = function toPosix(value: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "build",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "collectDeclared",
      "signature": "const collectDeclared = function collectDeclared(node: unknown, out: Set<string>): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "walk",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "isRecord",
      "signature": "const isRecord = function isRecord(value: unknown): value is Record<string, unknown> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "walk",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "recordLocation",
      "signature": "const recordLocation = function recordLocation(location: string, trail: string[]): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "collectDeclared",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "build",
      "signature": "const build = function build(): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "walk",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "keyIndex",
      "signature": "const keyIndex = function keyIndex(): Map<string, string> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "shared/registries/location.registry.ts",
          "name": "toPosix",
          "source": {
            "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
            "json": "https://banes-lab.com/json/source/governance/shared/registries/location.registry.ts",
            "label": "shared/registries/location.registry.ts",
            "markdown": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.md",
            "ref": "anatomy:file-governance-shared-registries-location-registry-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "keyForLocation",
      "signature": "export const keyForLocation = function keyForLocation(location: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "ROOT_POSIX",
      "signature": "const ROOT_POSIX = ROOT.split(\"\\\\\").join(\"/\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "MEMBER_ROOTS",
      "signature": "export const MEMBER_ROOTS: readonly string[] = memberRels();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "set",
      "signature": "const set = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "LOCATION_TOKENS",
      "signature": "export const LOCATION_TOKENS: readonly string[] = build();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "SELF_KEY",
      "signature": "const SELF_KEY = \"root\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "extraKeys",
      "signature": "const extraKeys = new Map<string, string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "byPath",
      "signature": "const byPath = new Map<string, string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "dotted",
      "signature": "const dotted = trail.join(\".\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "branch",
      "signature": "const branch = trail.at(-1) === SELF_KEY ? trail.slice(0, -1).join(\".\") : null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "preferred",
      "signature": "const preferred = branch ?? dotted;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "KEY_BY_LOCATION",
      "signature": "const KEY_BY_LOCATION = keyIndex();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "locationForKey",
      "signature": "export const locationForKey = function locationForKey(key: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "posix",
      "signature": "const posix = toPosix(value);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-location-registry-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "location.registry.ts",
  "path": "shared/registries/location.registry.ts",
  "ref": "anatomy:file-governance-shared-registries-location-registry-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-shared-registries",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-shared-registries",
          "label": "shared/registries",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-shared-registries.md",
          "ref": "chapter:/anatomy/governance#folder-governance-shared-registries"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#file-governance-codemods-analyzers-reference-analyzer-ts",
          "json": "https://banes-lab.com/json/source/governance/codemods/analyzers/reference.analyzer.ts",
          "label": "codemods/analyzers/reference.analyzer.ts",
          "markdown": "https://banes-lab.com/source/governance/codemods/analyzers/reference.analyzer.ts.md",
          "ref": "anatomy:file-governance-codemods-analyzers-reference-analyzer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-analyzers-segment-analyzer-ts",
          "json": "https://banes-lab.com/json/source/governance/shared/analyzers/segment.analyzer.ts",
          "label": "shared/analyzers/segment.analyzer.ts",
          "markdown": "https://banes-lab.com/source/governance/shared/analyzers/segment.analyzer.ts.md",
          "ref": "anatomy:file-governance-shared-analyzers-segment-analyzer-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-codemods-analyzers",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-codemods-analyzers",
          "label": "codemods/analyzers",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-codemods-analyzers.md",
          "ref": "chapter:/anatomy/governance#folder-governance-codemods-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-shared-analyzers",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-shared-analyzers",
          "label": "shared/analyzers",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-shared-analyzers.md",
          "ref": "chapter:/anatomy/governance#folder-governance-shared-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/governance#folder-governance-shared-registries",
          "json": "https://banes-lab.com/json/anatomy/governance/folder-governance-shared-registries",
          "label": "shared/registries",
          "markdown": "https://banes-lab.com/anatomy/governance/folder-governance-shared-registries.md",
          "ref": "chapter:/anatomy/governance#folder-governance-shared-registries"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "registry",
    "subject": "location",
    "variant": null
  },
  "stats": {
    "bytes": 3262,
    "callable": 10,
    "definitions": 22,
    "edges": 5,
    "exported": 7,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 5,
      "relay": 1,
      "entry": 3,
      "isolated": 13
    },
    "lines": {
      "blank": 13,
      "code": 89,
      "total": 102
    }
  },
  "summary": "89 lines of code and 22 definitions.",
  "text": "https://banes-lab.com/source/governance/shared/registries/location.registry.ts.txt",
  "tree": "governance",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/governance#file-governance-shared-registries-taxonomy-registry-ts",
      "json": "https://banes-lab.com/json/source/governance/shared/registries/taxonomy.registry.ts",
      "label": "shared/registries/taxonomy.registry.ts",
      "markdown": "https://banes-lab.com/source/governance/shared/registries/taxonomy.registry.ts.md",
      "ref": "anatomy:file-governance-shared-registries-taxonomy-registry-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/governance/shared/registries",
    "label": "shared/registries",
    "markdown": "https://banes-lab.com/api/source/governance/shared/registries.md",
    "ref": "api:source/governance/shared/registries"
  }
}
