def scope_ids

cli@0.2.0.0 · cli.bend:1757

import cli@0.2.0.0/cli.bend as Cli
import Base

1757def scope_ids(items: List<&2, LintItem>) -> List<&2, String>:
1758  match items:
1759    case Nil{}:
1760      Nil{}
1761    case LintArg{usage, help, attrs, parsed} <> tail:
1762      +name = usage_id(parsed, attrs)
1763      +rest = scope_ids(tail)
1764      Bool.pick(List<&2, String>, String.is_empty(name),
1765        rest, name <> rest)
1766    case head <> tail:
1767      scope_ids(tail)

Uses (6)

Used by (2)