type Doc
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
150# Str: text without its trailing whitespace, that whitespace, the width, and
151# how many characters follow the last newline, if any. Line: the text and
152# width when flat. Grp, Nest and Cat keep their Flat; Cat its docs last
153# first.
154type Doc is Data:
155 Str{body: String, blank: String, width: U32, tail: Maybe<&2, U32>}
156 Line{flat: String, width: U32, hard: Bool, offset: U32}
157 Grp{doc: Doc, flat: Flat}
158 Nest{doc: Doc, amount: U32, flat: Flat}
159 Cat{docs: List<&2, Doc>, flat: Flat}