Mercurial > people > rkennke > jdk9-shenandoah-final > nashorn
changeset 518:6b6a8fc714a9
8023453: --log=attr did not unindent identNodes
Reviewed-by: attila, jlaskey
author | lagergren |
---|---|
date | Fri, 23 Aug 2013 12:43:32 +0200 |
parents | b7c04b3b01a7 |
children | 4dcd5a22fdd3 |
files | src/jdk/nashorn/internal/codegen/Attr.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/jdk/nashorn/internal/codegen/Attr.java Wed Aug 21 17:28:53 2013 +0530 +++ b/src/jdk/nashorn/internal/codegen/Attr.java Fri Aug 23 12:43:32 2013 +0200 @@ -543,8 +543,6 @@ 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 @@ 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>");