def print.line
bend-lint-rules@0.2.0.0 · layout/format.bend:1924
import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base
1924def print.line(
1925 flat: Bool,
1926 text: String,
1927 +at: U32,
1928 jobs: List<&2, Job>,
1929 out: List<&2, String>,
1930 pending: String,
1931 col: U32,
1932 width: U32,
1933 newline: String
1934) -> Print:
1935 match flat:
1936 case True{}:
1937 Print{jobs, out, pending ++ text, (col + width: U32)}
1938 case False{}:
1939 Print{jobs, out, newline ++ pad(U32.to_nat(at), ""), at}