8023453: --log=attr did not unindent identNodes

Fri, 23 Aug 2013 12:43:32 +0200

author
lagergren
date
Fri, 23 Aug 2013 12:43:32 +0200
changeset 519
6b6a8fc714a9
parent 513
b7c04b3b01a7
child 520
4dcd5a22fdd3

8023453: --log=attr did not unindent identNodes
Reviewed-by: attila, jlaskey

src/jdk/nashorn/internal/codegen/Attr.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/jdk/nashorn/internal/codegen/Attr.java	Wed Aug 21 17:28:53 2013 +0530
     1.2 +++ b/src/jdk/nashorn/internal/codegen/Attr.java	Fri Aug 23 12:43:32 2013 +0200
     1.3 @@ -543,8 +543,6 @@
     1.4      public Node leaveIdentNode(final IdentNode identNode) {
     1.5          final String name = identNode.getName();
     1.6  
     1.7 -        start(identNode);
     1.8 -
     1.9          if (identNode.isPropertyName()) {
    1.10              // assign a pseudo symbol to property name
    1.11              final Symbol pseudoSymbol = pseudoSymbol(name);
    1.12 @@ -1850,9 +1848,10 @@
    1.13                  append("] ").
    1.14                  append(printNode ? node.toString() : "").
    1.15                  append(" in '").
    1.16 -                append(lc.getCurrentFunction().getName());
    1.17 +                append(lc.getCurrentFunction().getName()).
    1.18 +                append('\'');
    1.19  
    1.20 -            if(node instanceof Expression) {
    1.21 +            if (node instanceof Expression) {
    1.22                  final Symbol symbol = ((Expression)node).getSymbol();
    1.23                  if (symbol == null) {
    1.24                      sb.append(" <NO SYMBOL>");

mercurial