}
if (defs) defs.push(arg.definition());
}
- return !defs || defs.length == 0 || !is_reachable(fn.body[0], defs);
+ return !defs || defs.length == 0 || !is_reachable(stat, defs);
}
function flatten_args(fn) {
}
};
- PARENS(AST_Node, function(){
- return false;
- });
+ PARENS(AST_Node, return_false);
// a function expression needs parens around it when it's provably
// the first token to appear in a statement.
// same goes for an object literal, because otherwise it would be
// interpreted as a block of code.
- PARENS(AST_Object, function(output){
- return first_in_statement(output);
- });
+ PARENS(AST_Object, first_in_statement);
PARENS(AST_Unary, function(output){
var p = output.parent();