mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-18 14:25:33 +00:00
8023453: --log=attr did not unindent identNodes
Reviewed-by: attila, jlaskey
This commit is contained in:
parent
2bb4ab07ca
commit
8e1d44b484
@ -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>");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user