Put stderr output under DEBUG flag.

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4437 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
msridhar1 2012-02-08 15:32:03 +00:00
parent 24574114b9
commit 1e0ad9dbc6
1 changed files with 5 additions and 3 deletions

View File

@ -122,7 +122,7 @@ public class RhinoToAstTranslator {
*/
public static final String CTOR_CALL_FN_NAME = "ctor";
private final boolean DEBUG = true;
private final boolean DEBUG = false;
/**
* shared interface for all objects storing contextual information during the
@ -903,11 +903,13 @@ public class RhinoToAstTranslator {
name = fn.getFunctionName().getIdentifier();
}
System.err.println(name + "\n" + body);
if(DEBUG)
System.err.println(name + "\n" + body);
CAstEntity fne = walkEntity(fn, body, name, child);
System.err.println(fne.getName());
if(DEBUG)
System.err.println(fne.getName());
if (fn.getFunctionType() == FunctionNode.FUNCTION_EXPRESSION) {
CAstNode fun = Ast.makeNode(CAstNode.FUNCTION_EXPR, Ast.makeConstant(fne));