Imports.add.line: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/imports.bend as Imports Lines 69-97 of bend-lint-rules@0.2.0.0/layout/imports.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&start_line=69&end_line=97 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint import bend-lint-api@0.2.0.0/shared/strings.bend as Strings # The import on the line from `beg` to `end`, after the block so far. def add.line( +text: String, +beg: U32, +end: U32, at: Lint.Span, base: Bool, path: String, alias: String, loads: String, b: Block ) -> Block: match b: case Block{first, last, Nil{}}: Block{beg, end, [Entry{at, base, path, alias, loads, ended(Strings.slice(text, beg, end))}]} case Block{first, last, +entries}: Block{ first, end, Entry{ at, base, path, alias, loads, comments(Strings.slice(text, last, beg), "", []) ++ ended(Strings.slice(text, beg, end)) } <> entries } Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Span https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/strings.bend&name=slice https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&name=Block https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&name=comments https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/imports.bend&name=ended