{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "handleStep",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        },
        {
          "file": "core/factories/axis.factory.ts",
          "name": "subjectCompound",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "applyAxisRule",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "checkCssRule",
      "signature": "const checkCssRule = function checkCssRule(cssRule: CssRule, ctx: AxisContext, seen: Set<string>): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "checkCssRule",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "subjectCompound",
      "signature": "const subjectCompound = function subjectCompound(selector: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "stepValue",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "attrValueEnd",
      "signature": "const attrValueEnd = function attrValueEnd(selector: string, from: number): number {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "checkCssRule",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "handleStep",
      "signature": "const handleStep = function handleStep(cssRule: CssRule, ctx: AxisContext, seen: Set<string>): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "attrValueEnd",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "stepValue",
      "signature": "const stepValue = function stepValue(selector: string, attrToken: string): string | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/formatters/stylelint.formatter.ts",
          "name": "withRuleId",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-formatters-stylelint-formatter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/formatters/stylelint.formatter.ts",
            "label": "core/formatters/stylelint.formatter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/formatters/stylelint.formatter.ts.md",
            "ref": "anatomy:file-quality-core-formatters-stylelint-formatter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "foreign",
      "signature": "const foreign: ForeignFn = (selector, home) =>"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/formatters/stylelint.formatter.ts",
          "name": "withRuleId",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-formatters-stylelint-formatter-ts",
            "json": "https://banes-lab.com/json/source/quality/core/formatters/stylelint.formatter.ts",
            "label": "core/formatters/stylelint.formatter.ts",
            "markdown": "https://banes-lab.com/source/quality/core/formatters/stylelint.formatter.ts.md",
            "ref": "anatomy:file-quality-core-formatters-stylelint-formatter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "redefined",
      "signature": "const redefined: RedefinedFn = (step) =>"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/factories/axis.factory.ts",
          "name": "checkCssRule",
          "source": {
            "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
            "json": "https://banes-lab.com/json/source/quality/core/factories/axis.factory.ts",
            "label": "core/factories/axis.factory.ts",
            "markdown": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.md",
            "ref": "anatomy:file-quality-core-factories-axis-factory-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 131,
      "name": "applyAxisRule",
      "signature": "const applyAxisRule = function applyAxisRule(inputs: AxisRuleInputs, root: Root, result: PostcssResult): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "{ createPlugin, utils }",
      "signature": "const { createPlugin, utils } = stylelint;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "COMBINATORS",
      "signature": "const COMBINATORS = new Set([\" \", \">\", \"+\", \"~\", \"\\t\", \"\\n\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "BRACKET_DELTA",
      "signature": "const BRACKET_DELTA = new Map(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "depth",
      "signature": "let depth = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "lastCombinator",
      "signature": "let lastCombinator = -1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "c",
      "signature": "const c = selector[i] ?? \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "delta",
      "signature": "const delta = BRACKET_DELTA.get(c);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "i",
      "signature": "let i = from;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "start",
      "signature": "const start = selector.indexOf(attrToken);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "eq",
      "signature": "const eq = start === -1 ? -1 : selector.indexOf(\"=\", start);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "afterEq",
      "signature": "const afterEq = eq + 1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "quoted",
      "signature": "const quoted = selector[afterEq] === '\"' || selector[afterEq] === \"'\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "valueStart",
      "signature": "const valueStart = quoted ? afterEq + 1 : afterEq;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "buildMessages",
      "signature": "const buildMessages = function buildMessages(spec: AxisSpec): AxisMessages {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "{ attrToken, label, owns, ruleId, ruleName }",
      "signature": "const { attrToken, label, owns, ruleId, ruleName } = spec;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "step",
      "signature": "const step = stepValue(cssRule.selector, ctx.attrToken);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 114,
      "name": "isSecondaryOptions",
      "signature": "const isSecondaryOptions = function isSecondaryOptions(value: unknown): value is AxisSecondaryOptions {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 118,
      "name": "axisOptions",
      "signature": "const axisOptions = function axisOptions("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 125,
      "name": "opts",
      "signature": "const opts: AxisSecondaryOptions = isSecondaryOptions(secondaryOptions) ? secondaryOptions : {};"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 127,
      "name": "steps",
      "signature": "const steps = Array.isArray(opts.steps) ? opts.steps : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 132,
      "name": "options",
      "signature": "const options = axisOptions(inputs.primary, inputs.secondaryOptions);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 136,
      "name": "{ home, steps }",
      "signature": "const { home, steps } = options;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 137,
      "name": "from",
      "signature": "const from = (root.source?.input.from ?? \"\").split(\"\\\\\").join(\"/\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 138,
      "name": "ctx",
      "signature": "const ctx: AxisContext = {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 148,
      "name": "seen",
      "signature": "const seen = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 154,
      "name": "AXIS_CANON",
      "signature": "const AXIS_CANON = [\"design-tokens\", \"css-architecture\"];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 156,
      "name": "axisSpecFor",
      "signature": "const axisSpecFor = function axisSpecFor(axis: string): AxisSpec {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 171,
      "name": "axisPluginsFor",
      "signature": "export const axisPluginsFor = function axisPluginsFor(typeSystem?: TypeSystemLayout): AxisPlugins {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 172,
      "name": "homes",
      "signature": "const homes: Record<string, string | undefined> = { ...typeSystem?.axisHomes };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 173,
      "name": "out",
      "signature": "const out: AxisPlugins = { meta: [], plugins: [], rules: {} };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 175,
      "name": "home",
      "signature": "const home = homes[axis];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 177,
      "name": "spec",
      "signature": "const spec = axisSpecFor(axis);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 187,
      "name": "axisDefinitionRule",
      "signature": "export const axisDefinitionRule = function axisDefinitionRule(spec: AxisSpec): {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 191,
      "name": "{ ruleName }",
      "signature": "const { ruleName } = spec;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 192,
      "name": "RULE_META",
      "signature": "const RULE_META: GovlabStylelintMeta = { meta: spec.meta, ruleId: spec.ruleId, ruleName };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 193,
      "name": "built",
      "signature": "const built = buildMessages(spec);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 194,
      "name": "rule",
      "signature": "const rule: Rule = Object.assign("
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-axis-factory-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "axis.factory.ts",
  "path": "core/factories/axis.factory.ts",
  "ref": "anatomy:file-quality-core-factories-axis-factory-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-factories",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-factories.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-factories"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#file-quality-core-formatters-stylelint-formatter-ts",
          "json": "https://banes-lab.com/json/source/quality/core/formatters/stylelint.formatter.ts",
          "label": "core/formatters/stylelint.formatter.ts",
          "markdown": "https://banes-lab.com/source/quality/core/formatters/stylelint.formatter.ts.md",
          "ref": "anatomy:file-quality-core-formatters-stylelint-formatter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-factories",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-factories.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-factories"
        },
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-core-formatters",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-core-formatters",
          "label": "core/formatters",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-core-formatters.md",
          "ref": "chapter:/anatomy/quality#folder-quality-core-formatters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "factory",
    "subject": "axis",
    "variant": null
  },
  "stats": {
    "bytes": 7382,
    "callable": 14,
    "definitions": 45,
    "edges": 6,
    "exported": 10,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 3,
      "entry": 4,
      "isolated": 37
    },
    "lines": {
      "blank": 16,
      "code": 186,
      "total": 202
    }
  },
  "summary": "186 lines of code and 45 definitions.",
  "text": "https://banes-lab.com/source/quality/core/factories/axis.factory.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-core-factories-config-factory-ts",
      "json": "https://banes-lab.com/json/source/quality/core/factories/config.factory.ts",
      "label": "core/factories/config.factory.ts",
      "markdown": "https://banes-lab.com/source/quality/core/factories/config.factory.ts.md",
      "ref": "anatomy:file-quality-core-factories-config-factory-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/core/factories",
    "label": "core/factories",
    "markdown": "https://banes-lab.com/api/source/quality/core/factories.md",
    "ref": "api:source/quality/core/factories"
  }
}
