def under

bolt@1.27.0.0 · src/rules/pedantic/fuel.bend:62

import bolt@1.27.0.0/src/rules/pedantic/fuel.bend as Fuel
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

62# the kids of the first statement under a def: the line a header wrapped
63# after its `->` continues on (`->` then `IO(Unit):` on the next line)
64def under(body: Tree.Node) -> Tree.Node:
65  match body:
66    case Tree.NCons{Tree.Stmt{kind, kids, inner}, rest}:
67      kids
68    case other:
69      Tree.NNil{}

Uses (1)

Used by (1)