Cli.scan_descend: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3052-3065 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3052&end_line=3065 import Base def scan_descend(state: ScanState, sub: SubKey) -> ScanState: match state: case ScanState{scope, events, resting, positional_count, external, issue}: match scope: case Scope{path, spec}: match sub: case SubKey{+name, aliases, children}: +globals = spec_inherit(spec) ScanState{Scope{ List.append(&2, String, path, [name]), spec_node(children, globals)}, Enter{name} <> events_inherited(events, globals), resting, 0n, external, issue} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ScanEvent https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ScanState https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Scope https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=SubKey https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=events_inherited https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_inherit https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=spec_node