def starts
import bend-lint-rules@0.2.0.0/performance/missed_fork.bend as MissedForkimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
249# Whether the node below `path` starts an expression: the node above it ends one, or is a choice.
250def starts(path: List<&2, Lint.Above>) -> Bool:
251 match path:
252 case Nil{}:
253 True{}
254 case Con{Lint.Above{Lint.Node{Lint.Application{}, n, s, kids, f}, at}, rest}:
255 is_choice(kids)
256 case Con{Lint.Above{Lint.Node{syntax, n, s, k, f}, at}, rest}:
257 is_boundary(syntax)