{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/closure.strings.ts",
          "name": "unmatchedBarrels",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-closure-strings-ts",
            "json": "https://banes-lab.com/json/source/scripts/configuration/strings/closure.strings.ts",
            "label": "configuration/strings/closure.strings.ts",
            "markdown": "https://banes-lab.com/source/scripts/configuration/strings/closure.strings.ts.md",
            "ref": "anatomy:file-scripts-configuration-strings-closure-strings-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/coordinators/closure.coordinator.ts",
          "name": "buildClosureGraph",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-coordinators-closure-coordinator-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/coordinators/closure.coordinator.ts",
            "label": "core/coordinators/closure.coordinator.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/coordinators/closure.coordinator.ts.md",
            "ref": "anatomy:file-scripts-core-coordinators-closure-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "collectGlobEdges",
      "signature": "export const collectGlobEdges = function collectGlobEdges(root: string, files: readonly string[]): SideEffectEntry[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/analyzers/barrel.analyzer.ts",
          "name": "globArgumentsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-analyzers-barrel-analyzer-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/analyzers/barrel.analyzer.ts",
            "label": "core/analyzers/barrel.analyzer.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/analyzers/barrel.analyzer.ts.md",
            "ref": "anatomy:file-scripts-core-analyzers-barrel-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "visit",
      "signature": "const visit = function visit(child: ts.Node): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/barrel.analyzer.ts",
          "name": "visit",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-analyzers-barrel-analyzer-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/analyzers/barrel.analyzer.ts",
            "label": "core/analyzers/barrel.analyzer.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/analyzers/barrel.analyzer.ts.md",
            "ref": "anatomy:file-scripts-core-analyzers-barrel-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "globArgumentsOf",
      "signature": "const globArgumentsOf = function globArgumentsOf(node: ts.Node, sourceFile: ts.SourceFile): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/closure.strings.ts",
          "name": "unmatchedPattern",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-closure-strings-ts",
            "json": "https://banes-lab.com/json/source/scripts/configuration/strings/closure.strings.ts",
            "label": "configuration/strings/closure.strings.ts",
            "markdown": "https://banes-lab.com/source/scripts/configuration/strings/closure.strings.ts.md",
            "ref": "anatomy:file-scripts-configuration-strings-closure-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "resolvePattern",
      "signature": "const resolvePattern = function resolvePattern("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "SEPARATOR",
      "signature": "const SEPARATOR = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "HERE",
      "signature": "const HERE = \"./\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "patternOf",
      "signature": "const patternOf = function patternOf(node: ts.Node, sourceFile: ts.SourceFile): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "argument",
      "signature": "const argument = node.arguments.at(0);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "found",
      "signature": "const found: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "own",
      "signature": "const own = patternOf(child, sourceFile);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "segments",
      "signature": "const segments = pattern.split(SEPARATOR).filter((segment) => segment !== RELATIVE_MARK && segment.length > 0);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "matches",
      "signature": "const matches = expandPattern(barrelDir, segments);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "resolveFile",
      "signature": "const resolveFile = function resolveFile(filePath: string, root: string): PatternResolution {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "text",
      "signature": "const text = readFileSync(filePath, \"utf8\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "sourceFile",
      "signature": "const sourceFile = ts.createSourceFile(filePath, text, ts.ScriptTarget.Latest, true);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "barrelDir",
      "signature": "const barrelDir = dirname(filePath);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "barrelRel",
      "signature": "const barrelRel = normalizePath(relative(root, filePath));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "resolved",
      "signature": "const resolved = files.map((filePath) => resolveFile(filePath, root));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "unmatched",
      "signature": "const unmatched = resolved.flatMap((entry) => entry.unmatched);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-analyzers-barrel-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "barrel.analyzer.ts",
  "path": "core/analyzers/barrel.analyzer.ts",
  "ref": "anatomy:file-scripts-core-analyzers-barrel-analyzer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-analyzers.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-analyzers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-closure-strings-ts",
          "json": "https://banes-lab.com/json/source/scripts/configuration/strings/closure.strings.ts",
          "label": "configuration/strings/closure.strings.ts",
          "markdown": "https://banes-lab.com/source/scripts/configuration/strings/closure.strings.ts.md",
          "ref": "anatomy:file-scripts-configuration-strings-closure-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-coordinators-closure-coordinator-ts",
          "json": "https://banes-lab.com/json/source/scripts/core/coordinators/closure.coordinator.ts",
          "label": "core/coordinators/closure.coordinator.ts",
          "markdown": "https://banes-lab.com/source/scripts/core/coordinators/closure.coordinator.ts.md",
          "ref": "anatomy:file-scripts-core-coordinators-closure-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-configuration-strings.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-analyzers.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-coordinators.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-coordinators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "barrel",
    "variant": null
  },
  "stats": {
    "bytes": 3148,
    "callable": 6,
    "definitions": 19,
    "edges": 3,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 1,
      "entry": 2,
      "isolated": 15
    },
    "lines": {
      "blank": 6,
      "code": 71,
      "total": 77
    }
  },
  "summary": "71 lines of code and 19 definitions.",
  "text": "https://banes-lab.com/source/scripts/core/analyzers/barrel.analyzer.ts.txt",
  "tree": "scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-analyzers-closure-analyzer-ts",
      "json": "https://banes-lab.com/json/source/scripts/core/analyzers/closure.analyzer.ts",
      "label": "core/analyzers/closure.analyzer.ts",
      "markdown": "https://banes-lab.com/source/scripts/core/analyzers/closure.analyzer.ts.md",
      "ref": "anatomy:file-scripts-core-analyzers-closure-analyzer-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/scripts/core/analyzers",
    "label": "core/analyzers",
    "markdown": "https://banes-lab.com/api/source/scripts/core/analyzers.md",
    "ref": "api:source/scripts/core/analyzers"
  }
}
