Lint.top: def of bend-lint-api@0.2.0.0 Import: import bend-lint-api@0.2.0.0/linter/lint.bend as Lint Lines 366-374 of bend-lint-api@0.2.0.0/linter/lint.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&start_line=366&end_line=374 import Base # The top-level declaration a node is in: the outermost node above it, or the node itself. def top(path: List<&2, Above>, node: Node) -> Node: match path: case Nil{}: node case Con{Above{n, at}, Nil{}}: n case Con{a, rest}: top(rest, node) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Above https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node