def finish_pos

cli@0.2.0.0 · cli.bend:1296

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

1296def finish_pos(found: PhScan, kind: UsageKind) -> Usage:
1297  match found:
1298    case PhBad{col}:
1299      Invalid{col}
1300    case PhOK{rev, SNil{}, next}:
1301      Parsed{String.to_lower(String.reverse(rev)), "", "", kind}
1302    case PhOK{rev, rest, next}:
1303      Invalid{next}

Uses (6)

Used by (1)