Directives.has_mark: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives Lines 1098-1108 of bend-lint-rules@0.2.0.0/lib/linter/directives.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/lib/linter/directives.bend&start_line=1098&end_line=1108 import Base # Whether `text` has a directive's mark, "bend-lint:". Only a 'b' starts a comparison, so it is one pass. def has_mark(text: String, found: Bool) -> Bool: match text found: case _ True{}: True{} case SNil{} False{}: False{} case SCon{'b', +rest} False{}: has_mark(rest, String.starts_with(rest, "end-lint:")) case SCon{c, rest} False{}: has_mark(rest, False{}) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil