{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/classifiers/source.classifier.ts",
          "name": "detectLanguage",
          "source": {
            "href": "https://banes-lab.com/anatomy/code-parse#file-code-parse-core-classifiers-source-classifier-ts",
            "json": "https://banes-lab.com/json/source/code-parse/core/classifiers/source.classifier.ts",
            "label": "core/classifiers/source.classifier.ts",
            "markdown": "https://banes-lab.com/source/code-parse/core/classifiers/source.classifier.ts.md",
            "ref": "anatomy:file-code-parse-core-classifiers-source-classifier-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "fromShebang",
      "signature": "const fromShebang = function fromShebang(content: string): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/classifiers/source.classifier.ts",
          "name": "fromShebang",
          "source": {
            "href": "https://banes-lab.com/anatomy/code-parse#file-code-parse-core-classifiers-source-classifier-ts",
            "json": "https://banes-lab.com/json/source/code-parse/core/classifiers/source.classifier.ts",
            "label": "core/classifiers/source.classifier.ts",
            "markdown": "https://banes-lab.com/source/code-parse/core/classifiers/source.classifier.ts.md",
            "ref": "anatomy:file-code-parse-core-classifiers-source-classifier-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "detectLanguage",
      "signature": "export const detectLanguage = function detectLanguage(filename: string, content = \"\"): string | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "buildExtensions",
      "signature": "const buildExtensions = function buildExtensions(): ReadonlyMap<string, string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "map",
      "signature": "const map = loadDerivedExtensions();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "EXTENSIONS",
      "signature": "const EXTENSIONS = buildExtensions();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "extensionOf",
      "signature": "const extensionOf = function extensionOf(filename: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "dot",
      "signature": "const dot = filename.lastIndexOf(EXTENSION_DOT);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "firstLine",
      "signature": "const firstLine = function firstLine(content: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "newline",
      "signature": "const newline = content.indexOf(\"\\n\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "line",
      "signature": "const line = firstLine(content);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "byExtension",
      "signature": "const byExtension = EXTENSIONS.get(extensionOf(filename));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "DETECTABLE_LANGUAGES",
      "signature": "export const DETECTABLE_LANGUAGES: ReadonlySet<string> = new Set([...EXTENSIONS.values(), ...SHEBANG_TOKENS.values()]);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/code-parse#file-code-parse-core-classifiers-source-classifier-ts",
  "language": "typescript",
  "layer": "application",
  "name": "source.classifier.ts",
  "path": "core/classifiers/source.classifier.ts",
  "ref": "anatomy:file-code-parse-core-classifiers-source-classifier-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/code-parse#folder-code-parse-core-classifiers",
          "json": "https://banes-lab.com/json/anatomy/code-parse/folder-code-parse-core-classifiers",
          "label": "core/classifiers",
          "markdown": "https://banes-lab.com/anatomy/code-parse/folder-code-parse-core-classifiers.md",
          "ref": "chapter:/anatomy/code-parse#folder-code-parse-core-classifiers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/code-parse#folder-code-parse-core-classifiers",
          "json": "https://banes-lab.com/json/anatomy/code-parse/folder-code-parse-core-classifiers",
          "label": "core/classifiers",
          "markdown": "https://banes-lab.com/anatomy/code-parse/folder-code-parse-core-classifiers.md",
          "ref": "chapter:/anatomy/code-parse#folder-code-parse-core-classifiers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "classifier",
    "subject": "source",
    "variant": null
  },
  "stats": {
    "bytes": 1652,
    "callable": 5,
    "definitions": 12,
    "edges": 1,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 7,
      "code": 42,
      "total": 49
    }
  },
  "summary": "42 lines of code and 12 definitions.",
  "text": "https://banes-lab.com/source/code-parse/core/classifiers/source.classifier.ts.txt",
  "tree": "code-parse",
  "siblings": {
    "next": null,
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/code-parse/core/classifiers",
    "label": "core/classifiers",
    "markdown": "https://banes-lab.com/api/source/code-parse/core/classifiers.md",
    "ref": "api:source/code-parse/core/classifiers"
  }
}
