def is_live

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

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

211# a live parameter: typed, and neither erased (`-A: Type`) nor a template
212# (`~f: A -> B`); a bare quantity name (`a` in `List.get(a, ..)`) is not one
213def is_live(+pp: Tree.Node) -> Bool:
214  Bool.and(Bool.not(is_live.sign(pp)), has_colon(pp))

Uses (6)

Used by (1)