CanonImportPath.paths: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/canon_import_path.bend as CanonImportPath Lines 95-117 of bend-lint-rules@0.2.0.0/layout/canon_import_path.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&start_line=95&end_line=117 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint import bend-lint-api@0.2.0.0/shared/lists.bend as Lists # The findings on the paths of `nodes`' imports, onto `out`. A file's imports come first, so the first node of another # kind ends them; `import Base` writes no path. def paths( nodes: List<&2, Lint.Node>, +file: String, out: List<&2, Lint.Finding> ) -> List<&2, Lint.Finding>: match nodes: case Con{ Lint.Node{ Lint.Import{loads}, n, s, Con{Lint.Node{Lint.ImportPath{}, written, Some{span}, k, f}, ks}, fs }, rest }: paths(rest, file, Lists.onto(&2, Lint.Finding, judge(file, written, loads, span), out)) case Con{Lint.Node{Lint.Import{loads}, n, s, k, f}, rest}: paths(rest, file, out) case _: List.reverse(&2, Lint.Finding, out) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Finding https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Syntax https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/canon_import_path.bend&name=judge