def note_from

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:654

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

654# a let or a field binding of exactly one call
655def note_from(st: Lhs, +rhs: Tree.Node) -> Maybe<&2, Note>:
656  Lhs{seen, extra, field, +nm} = st
657  note_rhs(Bool.and(seen, Bool.not(extra)), field, nm, as_call(rhs))

Uses (8)

Used by (1)