'use strict'; var Node = require('./Node'); class Vars extends Node { constructor(def) { super('Vars'); this.kind = def.kind || 'var'; this.declarations = def.declarations; this.body = this.makeContainer(def.body); } generateCode(codegen) { var declarations = this.declarations; var kind = this.kind; var isStatement = this.statement; var body = this.body; var selfInvoking = this.isFlagSet('selfInvoking'); var hasBody = this.body && this.body.length; if(!selfInvoking && hasBody) { this.setFlag('selfInvoking'); return codegen.builder.selfInvokingFunction([ this ]); } if (!declarations || !declarations.length) { return; } for (let i=0; i