type

JsWriter

src class JsWriter : Obj

JsWriter

constructors

fields

methods

indent

Increment the indentation

minify
nl

Write newline and then return this.

unindent

Decrement the indentation

w

Write and then return this.

wl

Convenience for w(o,loc,name).nl.

Slot Details

col

src Int col := 0 { private set }

indent

src JsWriter indent()

Increment the indentation

line

src Int line := 0 { private set }

make

src new make(OutStream out, SourceMap? sourcemap := null)

minify

src JsWriter minify(InStream in, Bool close := true)

nl

src JsWriter nl()

Write newline and then return this.

unindent

src JsWriter unindent()

Decrement the indentation

w

src JsWriter w(Obj o, Loc? loc := null, Str? name := null)

Write and then return this. If loc is not null, the text will be added to the generated source map.

wl

src JsWriter wl(Obj o, Loc? loc := null, Str? name := null)

Convenience for w(o,loc,name).nl.