def typed
import bend-lint-rules@0.2.0.0/layout/case.bend as Caseimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
163# The case of a name whose written type is the last of `nodes`: none written, either.
164def typed(+nodes: List<&2, Lint.Node>) -> Case:
165 match nodes:
166 case Nil{}:
167 Either{}
168 case _:
169 Bool.pick(Case, ends(nodes), Pascal{}, Snake{})