class compilerJs::JsWriter

sys::Obj
  compilerJs::JsWriter

Source

JsWriter.

col

Int col := 0

Source

indent

JsWriter indent()

Source

Increment the indentation.

indentation

Int indentation := 0

Source

line

Int line := 0

Source

make

new make(OutStream out)

Source

Make for specified output stream

makeSourceMap

new makeSourceMap(OutStream out, SourceMap sourcemap)

Source

minify

Void minify(InStream in)

Source

Write the minified content of the InSteam.

needIndent

Bool needIndent := false

Source

nl

JsWriter nl()

Source

Write newline and then return this.

sig

JsWriter sig(JsMethodParam[] pars)

Source

sourcemap

SourceMap? sourcemap

Source

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.