{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "consider",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "consider",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "isExternal",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "hasPrefix",
      "signature": "const hasPrefix = function hasPrefix(text: string, prefix: string): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "hasPrefix",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "hasPrefix",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "isExternal",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "isPattern",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "referencesIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "referencesIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 89,
      "name": "consider",
      "signature": "const consider = (raw: string, locus: string): void => {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "hasPrefix",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "consider",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "isExternal",
      "signature": "const isExternal = function isExternal(value: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "consider",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "isPattern",
      "signature": "const isPattern = function isPattern(value: string): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "consider",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        },
        {
          "file": "tools/core/matchers/reference.matcher.ts",
          "name": "consider",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/reference.matcher.ts",
            "label": "tools/core/matchers/reference.matcher.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.md",
            "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "referencesIn",
      "signature": "export const referencesIn = function referencesIn(segment: Segment): Reference[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "REFERENCE_FIELDS",
      "signature": "export const REFERENCE_FIELDS = [\"see\", \"source\", \"detect\"] as const;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "REFERENCE_INLINE_KINDS",
      "signature": "const REFERENCE_INLINE_KINDS: ReadonlySet<string> = new Set(INLINE_KINDS);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "EXTERNAL_PREFIXES",
      "signature": "const EXTERNAL_PREFIXES = [\"http://\", \"https://\", \"mailto:\", \"#\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "LOCAL_SCHEME",
      "signature": "const LOCAL_SCHEME = \"local:\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "i",
      "signature": "for (let i = 0; i < prefix.length; i += 1) {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "stripAnchor",
      "signature": "const stripAnchor = function stripAnchor(value: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "hash",
      "signature": "const hash = value.indexOf(\"#\");"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "stripLocator",
      "signature": "const stripLocator = function stripLocator(value: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "index",
      "signature": "for (let index = colon + 1; index < value.length; index += 1) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "char",
      "signature": "const char = value.charAt(index);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "digit",
      "signature": "const digit = char >= \"0\" && char <= \"9\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "unquote",
      "signature": "const unquote = function unquote(value: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "start",
      "signature": "let start = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "end",
      "signature": "let end = value.length;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "firstToken",
      "signature": "const firstToken = function firstToken(value: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "space",
      "signature": "const space = value.indexOf(\" \");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "PLACEHOLDERS",
      "signature": "const PLACEHOLDERS = [\"<\", \">\", \"*\", \"?\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "colon",
      "signature": "const colon = value.indexOf(\":\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "out",
      "signature": "const out: Reference[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "value",
      "signature": "let value = unquote(firstToken(raw));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 101,
      "name": "target",
      "signature": "const target = stripLocator(stripAnchor(value));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "slash",
      "signature": "const slash = target.lastIndexOf(\"/\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 120,
      "name": "isField",
      "signature": "const isField = segment.kind === \"field\" || segment.kind === \"frontmatter-field\";"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-reference-matcher-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "reference.matcher.ts",
  "path": "tools/core/matchers/reference.matcher.ts",
  "ref": "anatomy:file-coordination-tools-core-matchers-reference-matcher-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-matchers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-matchers",
          "label": "tools/core/matchers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-matchers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-matchers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-matchers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-matchers",
          "label": "tools/core/matchers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-matchers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-matchers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "matcher",
    "subject": "reference",
    "variant": null
  },
  "stats": {
    "bytes": 3822,
    "callable": 9,
    "definitions": 28,
    "edges": 7,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "relay": 2,
      "entry": 1,
      "isolated": 23
    },
    "lines": {
      "blank": 23,
      "code": 113,
      "total": 136
    }
  },
  "summary": "113 lines of code and 28 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/matchers/reference.matcher.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-matchers-segment-matcher-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/matchers/segment.matcher.ts",
      "label": "tools/core/matchers/segment.matcher.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/matchers/segment.matcher.ts.md",
      "ref": "anatomy:file-coordination-tools-core-matchers-segment-matcher-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/matchers",
    "label": "tools/core/matchers",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/matchers.md",
    "ref": "api:source/coordination/tools/core/matchers"
  }
}
