Sha256: 9d8ed905c8ccaddb391023dc7885db59be78093e895ec6171cef6dfbf8469d0f
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
use :node; var Node = module.require('../Node').Node; fn DoWhileStatement(test, body) extends Node { this.type = 'DoWhileStatement'; this.test = test; this.test.parent = this; this.body = body; this.body.parent = this; } DoWhileStatement.prototype.codegen = () -> { if !super.codegen() { return; } this.test = this.test.codegen(); this.body = this.body.blockWrap().codegen(); return this; }; exports.DoWhileStatement = DoWhileStatement;
Version data entries
3 entries across 3 versions & 1 rubygems