def lines

bolt@1.27.0.0 · src/rules/style/doc.bend:84

import bolt@1.27.0.0/src/rules/style/doc.bend as Doc
import Base
import bolt@1.27.0.0/src/syntax/outline.bend as Outline
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

84# the lines of a source, each one that starts inside a string literal read
85# as empty: it is text, never a comment line
86def lines(text: String, toks: List<&2, Lex.Tok>) -> List<&2, String>:
87  lines.go(String.lines(text), Outline.inside(toks))

Uses (6)

Used by (2)