Add unique name for constants

This commit is contained in:
Pavol Bielik 2015-01-25 00:11:36 +01:00
parent b0412a6ae8
commit 09f3edad48

View File

@ -115,7 +115,7 @@ function nodeToString(node) {
}
return INFER + node.definition().id + "-" + node.name;
} else if (node instanceof AST_Constant){
return GIVEN + String(node.value).slice(0,64);
return GIVEN + "!" + nodeType(node) + "!" + String(node.value).slice(0,64);
} else if (node instanceof AST_Sub){
//x[1], x -> expression, 1 -> property
return nodeToString(node.expression) + "[]";