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