8023453: --log=attr did not unindent identNodes

Reviewed-by: attila, jlaskey
This commit is contained in:
Marcus Lagergren 2013-08-23 12:43:32 +02:00
parent 2bb4ab07ca
commit 8e1d44b484

View File

@ -543,8 +543,6 @@ final class Attr extends NodeOperatorVisitor<LexicalContext> {
public Node leaveIdentNode(final IdentNode identNode) {
final String name = identNode.getName();
start(identNode);
if (identNode.isPropertyName()) {
// assign a pseudo symbol to property name
final Symbol pseudoSymbol = pseudoSymbol(name);
@ -1850,9 +1848,10 @@ final class Attr extends NodeOperatorVisitor<LexicalContext> {
append("] ").
append(printNode ? node.toString() : "").
append(" in '").
append(lc.getCurrentFunction().getName());
append(lc.getCurrentFunction().getName()).
append('\'');
if(node instanceof Expression) {
if (node instanceof Expression) {
final Symbol symbol = ((Expression)node).getSymbol();
if (symbol == null) {
sb.append(" <NO SYMBOL>");