Fan

 

class

compilerJs::JsBlock

sys::Obj
  compilerJs::JsNode
    compilerJs::JsBlock

JsBlock

TODO FIXIT - TEMP TILL WE REFACTOR THIS CODE!!!!

Slots

assignExprSource

Void assignExpr(BinaryExpr be)

blockSource

Void block(Block block, Bool braces := false, Bool indent := true)

callExprSource

Void callExpr(CallExpr ce, Bool doSafe := true)

closureExprSource

Void closureExpr(ClosureExpr ce)

closureLevelSource

Int closureLevel := 0

condExprSource

Void condExpr(CondExpr ce)

elvisExprSource

Void elvisExpr(BinaryExpr be)

exprSource

Void expr(Expr ex)

exprStmtSource

Void exprStmt(Expr ex)

fieldExprSource

Void fieldExpr(FieldExpr fe, Bool get := true)

forStmtSource

Void forStmt(ForStmt fs)

ifStmtSource

Void ifStmt(IfStmt fs)

inClosureSource

Bool inClosure()

Return true if we are inside a closure.

intLiteralExprSource

Void intLiteralExpr(LiteralExpr le)

isObjMethodSource

Bool isObjMethod(Str methodName)

isPrimitiveSource

Bool isPrimitive(Str qname)

lastIdSource

Int lastId := 0

listLiteralExprSource

Void listLiteralExpr(ListLiteralExpr le)

localDefSource

Void localDef(LocalDefStmt lds)

makeSource

new make(Node n)

mapLiteralExprSource

Void mapLiteralExpr(MapLiteralExpr me)

maxIntSource

const Int maxInt := 9007199254740992

objMethodMapSource

const Str:Bool objMethodMap := ...

outSource

JsWriter? out

primitiveMapSource

const Str:Bool primitiveMap := ...

rangeLiteralExprSource

Void rangeLiteralExpr(RangeLiteralExpr re)

returnStmtSource

Void returnStmt(ReturnStmt rs)

shortcutExprSource

Void shortcutExpr(ShortcutExpr se)

stmtSource

Void stmt(Stmt stmt, Bool nl := true)

switchStmtSource

Void switchStmt(SwitchStmt ss)

throwStmtSource

Void throwStmt(ThrowStmt ts)

tryStmtSource

Void tryStmt(TryStmt ts)

typeCheckExprSource

Void typeCheckExpr(TypeCheckExpr te)

uniqueSource

Str unique()

whileStmtSource

Void whileStmt(WhileStmt ws)

writeSource

override Void write(JsWriter out)

Overrides compilerJs::JsNode.write

Doc inherited from compilerJs::JsNode.write

Write the JavaScript source code for this node.

xSource

Node x