def leaf
import ezx@1.11.0.0/src/ez/line.bend as Lineimport Base
import shake@0.6.0.0/main.bend as Shake
138# the Matched of the command the path names, whose bindings are the ones the
139# line made for that command (SHAKE-GET-2: `at(m, path_of(m))` follows the
140# selected path). A None here would be a Matched `parse` never answers.
141def leaf(+matched: Shake.Matched) -> Shake.Matched:
142 Maybe.default(&2, Shake.Matched, Shake.at(matched, Shake.path_of(matched)), matched)