Lines Matching refs:statements
89 "toplevel": function(statements) {
90 return [ this[0], MAP(statements, walk) ];
92 "block": function(statements) {
94 if (statements != null)
95 out.push(MAP(statements, walk));
674 // 4. transform consecutive statements using the comma operator
676 function tighten(statements, block_type) {
677 statements = statements.reduce(function(a, stat){
688 statements = (function(a, prev){
689 statements.forEach(function(cur){
701 if (options.dead_code) statements = (function(a, has_quit){
702 statements.forEach(function(st){
719 if (options.make_seqs) statements = (function(a, prev) {
720 statements.forEach(function(cur){
731 if (block_type == "lambda") statements = (function(i, a, stat){
732 while (i < statements.length) {
733 stat = statements[i++];
736 a.push(make_if(negate(stat[1]), [ "block", statements.slice(i) ]));
741 a.push(make_if(stat[1], [ "block", stat[2][1].slice(0, -1) ], [ "block", statements.slice(i) ]));
750 return statements;
1077 "toplevel": function(statements) {
1078 return make_block_statements(statements)
1325 function make_block_statements(statements) {
1326 for (var a = [], last = statements.length - 1, i = 0; i <= last; ++i) {
1327 var stat = statements[i];
1363 function make_block(statements) {
1364 if (!statements) return ";";
1365 if (statements.length == 0) return "{}";
1367 return make_block_statements(statements).join(newline);