fn gen(files []ast.File, table &table.Table, pref &pref.Preferences) string
fn (mut g JsGen) dec_indent()
fn (mut g JsGen) enter_namespace(name string)
fn (mut g JsGen) escape_namespace()
fn (mut g JsGen) find_class_methods(stmts []ast.Stmt)
fn (mut g JsGen) gen_indent()
fn (g JsGen) hashes() string
fn (mut g JsGen) inc_indent()
fn (mut g JsGen) init()
fn (mut g JsGen) new_tmp_var() string
fn (mut g JsGen) push_pub_var(s string)
fn (mut g JsGen) typ(t table.Type) string
V type to JS type
fn (mut g JsGen) write(s string)
fn (mut g JsGen) writeln(s string)