{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/selectors/violation.selector.ts",
          "name": "lastCountOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-selectors-violation-selector-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/selectors/violation.selector.ts",
            "label": "core/selectors/violation.selector.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/selectors/violation.selector.ts.md",
            "ref": "anatomy:file-pipeline-core-selectors-violation-selector-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 3,
      "name": "countBefore",
      "signature": "const countBefore = function countBefore(lower: string, at: number): number | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/report.converter.ts",
          "name": "rowOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/converters/report.converter.ts",
            "label": "core/converters/report.converter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.md",
            "ref": "anatomy:file-pipeline-core-converters-report-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "lastCount",
      "signature": "export const lastCount = function lastCount(text: string): number | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/selectors/violation.selector.ts",
          "name": "countBefore",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-selectors-violation-selector-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/selectors/violation.selector.ts",
            "label": "core/selectors/violation.selector.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/selectors/violation.selector.ts.md",
            "ref": "anatomy:file-pipeline-core-selectors-violation-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "lastCountOf",
      "signature": "const lastCountOf = function lastCountOf(lower: string, keyword: string): number | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "cursor",
      "signature": "let cursor = at - 1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "end",
      "signature": "const end = cursor;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "value",
      "signature": "const value = Number(lower.slice(cursor + 1, end + 1));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "from",
      "signature": "let from = lower.indexOf(keyword);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "lower",
      "signature": "const lower = text.toLowerCase();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "result",
      "signature": "const result = lastCountOf(lower, keyword);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-selectors-violation-selector-ts",
  "language": "typescript",
  "layer": "application",
  "name": "violation.selector.ts",
  "path": "core/selectors/violation.selector.ts",
  "ref": "anatomy:file-pipeline-core-selectors-violation-selector-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-selectors.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-selectors"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
          "json": "https://banes-lab.com/json/source/pipeline/core/converters/report.converter.ts",
          "label": "core/converters/report.converter.ts",
          "markdown": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.md",
          "ref": "anatomy:file-pipeline-core-converters-report-converter-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-converters",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-converters.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-selectors.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-selectors"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "selector",
    "subject": "violation",
    "variant": null
  },
  "stats": {
    "bytes": 1199,
    "callable": 3,
    "definitions": 9,
    "edges": 1,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "entry": 1,
      "isolated": 6
    },
    "lines": {
      "blank": 3,
      "code": 35,
      "total": 38
    }
  },
  "summary": "35 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/pipeline/core/selectors/violation.selector.ts.txt",
  "tree": "pipeline",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-selectors-stage-selector-ts",
      "json": "https://banes-lab.com/json/source/pipeline/core/selectors/stage.selector.ts",
      "label": "core/selectors/stage.selector.ts",
      "markdown": "https://banes-lab.com/source/pipeline/core/selectors/stage.selector.ts.md",
      "ref": "anatomy:file-pipeline-core-selectors-stage-selector-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/pipeline/core/selectors",
    "label": "core/selectors",
    "markdown": "https://banes-lab.com/api/source/pipeline/core/selectors.md",
    "ref": "api:source/pipeline/core/selectors"
  }
}
