Issue #51 AS1/2 displaying java class name instead of expression

Better constantpool detection
This commit is contained in:
Jindra Pet��k
2013-03-31 22:06:35 +02:00
parent 3472cc79d2
commit 5a53822dd4
16 changed files with 42 additions and 38 deletions
@@ -34,9 +34,9 @@ public class DefineLocalTreeItem extends TreeItem implements SetTypeTreeItem {
@Override
public String toString(ConstantPool constants) {
if (value == null) {
return hilight("var ") + stripQuotes(name);
return hilight("var ") + stripQuotes(name, constants);
}
return hilight("var ") + stripQuotes(name) + hilight("=") + value.toString(constants);
return hilight("var ") + stripQuotes(name, constants) + hilight("=") + value.toString(constants);
}
@Override