class compilerEs::JsWriter

sys::Obj
  compilerEs::JsWriter

Source

JsWriter

col

Int col := 0 { private set }

Source

indent

JsWriter indent()

Source

Increment the indentation

line

Int line := 0 { private set }

Source

make

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

Source

minify

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

Source

nl

JsWriter nl()

Source

Write newline and then return this.

unindent

JsWriter unindent()

Source

Decrement the indentation

w

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

Source

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)

Source

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