{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "domain/converters/learning.route.converter.ts",
          "name": "turnsBack",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-learning-route-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/domain/converters/learning.route.converter.ts",
            "label": "domain/converters/learning.route.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/domain/converters/learning.route.converter.ts.md",
            "ref": "anatomy:file-domain-converters-learning-route-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "domain/converters/learning.route.converter.ts",
          "name": "unfold",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-learning-route-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/domain/converters/learning.route.converter.ts",
            "label": "domain/converters/learning.route.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/domain/converters/learning.route.converter.ts.md",
            "ref": "anatomy:file-domain-converters-learning-route-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "isSpur",
      "signature": "const isSpur = function isSpur(rail: readonly LearningPoint[], index: number, stops: readonly RailStop[]): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "domain/converters/learning.route.converter.ts",
          "name": "isSpur",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-learning-route-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/domain/converters/learning.route.converter.ts",
            "label": "domain/converters/learning.route.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/domain/converters/learning.route.converter.ts.md",
            "ref": "anatomy:file-domain-converters-learning-route-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "turnsBack",
      "signature": "const turnsBack = function turnsBack(before: LearningPoint, here: LearningPoint, after: LearningPoint): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "domain/converters/learning.route.converter.ts",
          "name": "isSpur",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-learning-route-converter-ts",
            "json": "https://banes-lab.com/json/source/tree/domain/converters/learning.route.converter.ts",
            "label": "domain/converters/learning.route.converter.ts",
            "markdown": "https://banes-lab.com/source/tree/domain/converters/learning.route.converter.ts.md",
            "ref": "anatomy:file-domain-converters-learning-route-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "unfold",
      "signature": "export const unfold = function unfold("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 3,
      "name": "RailStop",
      "signature": "interface RailStop {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "upright",
      "signature": "const upright = before.x === here.x && here.x === after.x;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "level",
      "signature": "const level = before.y === here.y && here.y === after.y;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "along",
      "signature": "const along = (here.x - before.x) * (after.x - here.x) + (here.y - before.y) * (after.y - here.y);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "[before, here, after]",
      "signature": "const [before, here, after] = rail.slice(index - 1, index + 2);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "atStop",
      "signature": "const atStop = stops.some((stop) => stop.cx === here.x && stop.cy === here.y);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "held",
      "signature": "const held = [...rail];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "index",
      "signature": "let index = 1;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-learning-route-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "learning.route.converter.ts",
  "path": "domain/converters/learning.route.converter.ts",
  "ref": "anatomy:file-domain-converters-learning-route-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-domain-converters",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-domain-converters",
          "label": "domain/converters",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-domain-converters.md",
          "ref": "chapter:/anatomy/tree#folder-domain-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-domain-converters",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-domain-converters",
          "label": "domain/converters",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-domain-converters.md",
          "ref": "chapter:/anatomy/tree#folder-domain-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "learning",
    "variant": "route"
  },
  "stats": {
    "bytes": 1375,
    "callable": 3,
    "definitions": 11,
    "edges": 2,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 1,
      "entry": 1,
      "isolated": 8
    },
    "lines": {
      "blank": 4,
      "code": 35,
      "total": 39
    }
  },
  "summary": "35 lines of code and 11 definitions.",
  "text": "https://banes-lab.com/source/tree/domain/converters/learning.route.converter.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-lexicon-converter-ts",
      "json": "https://banes-lab.com/json/source/tree/domain/converters/lexicon.converter.ts",
      "label": "domain/converters/lexicon.converter.ts",
      "markdown": "https://banes-lab.com/source/tree/domain/converters/lexicon.converter.ts.md",
      "ref": "anatomy:file-domain-converters-lexicon-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-domain-converters-learning-grid-converter-ts",
      "json": "https://banes-lab.com/json/source/tree/domain/converters/learning.grid.converter.ts",
      "label": "domain/converters/learning.grid.converter.ts",
      "markdown": "https://banes-lab.com/source/tree/domain/converters/learning.grid.converter.ts.md",
      "ref": "anatomy:file-domain-converters-learning-grid-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/domain/converters",
    "label": "domain/converters",
    "markdown": "https://banes-lab.com/api/source/tree/domain/converters.md",
    "ref": "api:source/tree/domain/converters"
  }
}
