def kind.leaf

bolt@1.27.0.0 · src/rules/calls.bend:51

import bolt@1.27.0.0/src/rules/calls.bend as Calls
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

51# a leaf of this kind?
52def kind.leaf(~test: Lex.TokKind -> Bool, nn: Tree.Node) -> Bool:
53  kind.of(~test, leaf.kind(nn))

Uses (5)

Used by (11)