Foreign.lanes.go: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/pedantic/foreign.bend as Foreign Lines 32-41 of bolt@1.27.0.0/src/rules/pedantic/foreign.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/pedantic/foreign.bend&start_line=32&end_line=41 import Base import bolt@1.27.0.0/src/syntax/tree.bend as Tree # the lanes of a body that is only imports; None when it is anything else def lanes.go(body: Tree.Node, cc: Bool, js: Bool) -> Maybe<&2, Lanes>: match body: case Tree.NCons{Tree.Stmt{Tree.SImport{}, kids, ib}, rest}: +t = target(kids) lanes.go(rest, Bool.or(cc, String.ends_with(t, ".c\"")), Bool.or(js, String.ends_with(t, ".js\""))) case Tree.NCons{h, rest}: None{} case other: Some{Lanes{cc, js}} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.ends_with https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/pedantic/foreign.bend&name=Lanes https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/pedantic/foreign.bend&name=target https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=StmtKind