struct

Mint::Formatter::List

Inherits Struct < Value < Object

Describes a list that is formatted like so:

  • Multiline items, comments, documentation comments and consecutive block comments are separated from other items with double lines.

Constructors

new(items : Array(Tuple(Ast::Node, Nodes)), separator : String | Nil = nil, comment : Nodes | Nil = nil)
Source

Instance methods

clone
Source
comment
copy_with(items _items = @items, separator _separator = @separator, comment _comment = @comment)
Source
items
separator