Skip to content

Comment

Oleksandr Bretsko edited this page Dec 27, 2020 · 1 revision

Comment

public struct Comment: SwiftT, HasDescrP

Inheritance

HasDescrP, SwiftT

Initializers

init(_:_:)

init(_ lines: [Str], _ style: Style)

init(_:_:)

init(_ line: Str, _ style: Style)

Properties

lines

without newlines

var lines: [Str]

style

var style: Style

descr

var descr: Str

Methods

str(usesTabs:tabIndent:)

can make 3 types of comments - //, /// and /** */ returns indented lines

func str(usesTabs: Bool = false, tabIndent: Int = 4) -> Str?

Clone this wiki locally