{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/graph.factory.ts",
          "name": "graphNode",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-factories-graph-factory-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/factories/graph.factory.ts",
            "label": "core/factories/graph.factory.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/factories/graph.factory.ts.md",
            "ref": "anatomy:file-build-scripts-core-factories-graph-factory-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "fileGraph",
      "signature": "const fileGraph = function fileGraph(file: AnatomyFile, folderRef: string, scope: Scope): Graph {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/graph.factory.ts",
          "name": "graphNode",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-factories-graph-factory-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/factories/graph.factory.ts",
            "label": "core/factories/graph.factory.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/factories/graph.factory.ts.md",
            "ref": "anatomy:file-build-scripts-core-factories-graph-factory-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "folderGraph",
      "signature": "const folderGraph = function folderGraph(folder: AnatomyFolder, scope: Scope): Graph {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "FOLDER_KIND",
      "signature": "const FOLDER_KIND = \"folder\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "FILE_KIND",
      "signature": "const FILE_KIND = \"file\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "DEFINITION_KIND",
      "signature": "const DEFINITION_KIND = \"definition\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "SOURCE_LAYER",
      "signature": "const SOURCE_LAYER = \"source:\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 13,
      "name": "Scope",
      "signature": "interface Scope {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "{ ids, layer, vocabulary }",
      "signature": "const { ids, layer, vocabulary } = scope;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "fileRef",
      "signature": "const fileRef = ANATOMY_PREFIX + ids.fileId(file.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "definitions",
      "signature": "const definitions = file.definitions.map((definition) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "calls",
      "signature": "const calls = file.definitions.flatMap((definition) =>"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "ref",
      "signature": "const ref = ANATOMY_PREFIX + scope.ids.folderId(folder.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "files",
      "signature": "const files = folder.files.map((file) => fileGraph(file, ref, scope));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "children",
      "signature": "const children = folder.folders.map((child) => ({"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "sourceGraph",
      "signature": "export const sourceGraph = function sourceGraph("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "parts",
      "signature": "const parts = trees.map((tree) =>"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-source-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "graph.source.converter.ts",
  "path": "core/converters/graph.source.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-graph-source-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-factories-graph-factory-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/factories/graph.factory.ts",
          "label": "core/factories/graph.factory.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/factories/graph.factory.ts.md",
          "ref": "anatomy:file-build-scripts-core-factories-graph-factory-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-factories",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-factories.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-factories"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "graph",
    "variant": "source"
  },
  "stats": {
    "bytes": 3105,
    "callable": 3,
    "definitions": 16,
    "edges": 2,
    "exported": 2,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 2,
      "isolated": 14
    },
    "lines": {
      "blank": 5,
      "code": 71,
      "total": 76
    }
  },
  "summary": "71 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/graph.source.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-identifier-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/identifier.converter.ts",
      "label": "core/converters/identifier.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/identifier.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-identifier-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-site-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.site.converter.ts",
      "label": "core/converters/graph.site.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.site.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-site-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
