nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/visitor/NodeOperatorVisitor.java
changeset 37732 3673fec68d16
parent 32888 24f99be3d5ab
child 41924 d55f24e8953e
equal deleted inserted replaced
37646:84aba7335005 37732:3673fec68d16
   131             return enterASSIGN_SHL(binaryNode);
   131             return enterASSIGN_SHL(binaryNode);
   132         case ASSIGN_SHR:
   132         case ASSIGN_SHR:
   133             return enterASSIGN_SHR(binaryNode);
   133             return enterASSIGN_SHR(binaryNode);
   134         case ASSIGN_SUB:
   134         case ASSIGN_SUB:
   135             return enterASSIGN_SUB(binaryNode);
   135             return enterASSIGN_SUB(binaryNode);
   136         case BIND:
   136         case ARROW:
   137             return enterBIND(binaryNode);
   137             return enterARROW(binaryNode);
   138         case BIT_AND:
   138         case BIT_AND:
   139             return enterBIT_AND(binaryNode);
   139             return enterBIT_AND(binaryNode);
   140         case BIT_OR:
   140         case BIT_OR:
   141             return enterBIT_OR(binaryNode);
   141             return enterBIT_OR(binaryNode);
   142         case BIT_XOR:
   142         case BIT_XOR:
   215             return leaveASSIGN_SHL(binaryNode);
   215             return leaveASSIGN_SHL(binaryNode);
   216         case ASSIGN_SHR:
   216         case ASSIGN_SHR:
   217             return leaveASSIGN_SHR(binaryNode);
   217             return leaveASSIGN_SHR(binaryNode);
   218         case ASSIGN_SUB:
   218         case ASSIGN_SUB:
   219             return leaveASSIGN_SUB(binaryNode);
   219             return leaveASSIGN_SUB(binaryNode);
   220         case BIND:
   220         case ARROW:
   221             return leaveBIND(binaryNode);
   221             return leaveARROW(binaryNode);
   222         case BIT_AND:
   222         case BIT_AND:
   223             return leaveBIT_AND(binaryNode);
   223             return leaveBIT_AND(binaryNode);
   224         case BIT_OR:
   224         case BIT_OR:
   225             return leaveBIT_OR(binaryNode);
   225             return leaveBIT_OR(binaryNode);
   226         case BIT_XOR:
   226         case BIT_XOR:
   733     public Node leaveASSIGN_SUB(final BinaryNode binaryNode) {
   733     public Node leaveASSIGN_SUB(final BinaryNode binaryNode) {
   734         return leaveDefault(binaryNode);
   734         return leaveDefault(binaryNode);
   735     }
   735     }
   736 
   736 
   737     /**
   737     /**
   738      * Binary enter - callback for entering a bind operator
   738      * Binary enter - callback for entering a arrow operator
   739      *
   739      *
   740      * @param  binaryNode the node
   740      * @param  binaryNode the node
   741      * @return true if traversal should continue and node children be traversed, false otherwise
   741      * @return true if traversal should continue and node children be traversed, false otherwise
   742      */
   742      */
   743     public boolean enterBIND(final BinaryNode binaryNode) {
   743     public boolean enterARROW(final BinaryNode binaryNode) {
   744         return enterDefault(binaryNode);
   744         return enterDefault(binaryNode);
   745     }
   745     }
   746 
   746 
   747     /**
   747     /**
   748      * Binary leave - callback for leaving a bind operator
   748      * Binary leave - callback for leaving a arrow operator
   749      *
   749      *
   750      * @param  binaryNode the node
   750      * @param  binaryNode the node
   751      * @return processed node, which will replace the original one, or the original node
   751      * @return processed node, which will replace the original one, or the original node
   752      */
   752      */
   753     public Node leaveBIND(final BinaryNode binaryNode) {
   753     public Node leaveARROW(final BinaryNode binaryNode) {
   754         return leaveDefault(binaryNode);
   754         return leaveDefault(binaryNode);
   755     }
   755     }
   756 
   756 
   757     /**
   757     /**
   758      * Binary enter - callback for entering {@literal &} operator
   758      * Binary enter - callback for entering {@literal &} operator