highlight parameter added

This commit is contained in:
Honfika
2013-08-25 15:17:58 +02:00
parent 1f6d2f0056
commit d1a0c1d463
218 changed files with 622 additions and 621 deletions
@@ -67,11 +67,11 @@ public class DefineLocalActionItem extends ActionItem implements SetTypeActionIt
}
@Override
public String toString(ConstantPool constants) {
public String toString(boolean highlight, ConstantPool constants) {
if (value == null) {
return hilight("var ") + stripQuotes(name, constants);
return hilight("var ", highlight) + stripQuotes(name, constants, highlight);
}
return hilight("var ") + stripQuotes(name, constants) + hilight(" = ") + value.toString(constants);
return hilight("var ", highlight) + stripQuotes(name, constants, highlight) + hilight(" = ", highlight) + value.toString(highlight, constants);
}
@Override