AstForStatementsCreator

class Object
trait Matchable
class Any

Value members

Concrete methods

protected def astForBlockStatement(block: BabelNodeInfo): Ast
protected def astForBreakStatement(breakStmt: BabelNodeInfo): Ast
protected def astForContinueStatement(continueStmt: BabelNodeInfo): Ast
protected def astForDoWhileStatement(doWhileStmt: BabelNodeInfo): Ast
protected def astForForStatement(forStmt: BabelNodeInfo): Ast
protected def astForInOfStatement(forInOfStmt: BabelNodeInfo): Ast

De-sugaring from:

De-sugaring from:

for (var i in/of arr) { body }

to:

{ var _iterator = Object.keys(arr)Symbol.iterator; var _result; var i; while (!(_result = _iterator.next()).done) { i = _result.value; body } }

protected def astForLabeledStatement(labelStmt: BabelNodeInfo): Ast
protected def astForReturnStatement(ret: BabelNodeInfo): Ast
protected def astForSwitchStatement(switchStmt: BabelNodeInfo): Ast
protected def astForThrowStatement(throwStmt: BabelNodeInfo): Ast
protected def astForTryStatement(tryStmt: BabelNodeInfo): Ast
protected def astForWhileStatement(whileStmt: BabelNodeInfo): Ast
protected def createBlockStatementAsts(json: Value): List[Ast]