type

JsWriter

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

Int col := 0 { private set }

indent

JsWriter indent()

Increment the indentation

line

Int line := 0 { private set }

make

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

minify

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

nl

JsWriter nl()

Write newline and then return this.

unindent

JsWriter unindent()

Decrement the indentation

w

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

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

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