8185252: Unary minus and plus use wrong node Kind
Reviewed-by: sundar, hannesw
Contributed-by: priya.lakshmi.muthuswamy@oracle.com
[
{
"expression": {
"endPosition": "2",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "1"
},
"endPosition": "4",
"kind": "POSTFIX_INCREMENT",
"startPosition": "1"
},
{
"expression": {
"endPosition": "7",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "6"
},
"endPosition": "9",
"kind": "POSTFIX_DECREMENT",
"startPosition": "6"
},
{
"expression": {
"endPosition": "19",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "18"
},
"endPosition": "19",
"kind": "DELETE",
"startPosition": "11"
},
{
"expression": {
"endPosition": "27",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "26"
},
"endPosition": "27",
"kind": "VOID",
"startPosition": "21"
},
{
"expression": {
"endPosition": "37",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "36"
},
"endPosition": "37",
"kind": "TYPEOF",
"startPosition": "29"
},
{
"expression": {
"endPosition": "42",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "41"
},
"endPosition": "42",
"kind": "PREFIX_INCREMENT",
"startPosition": "39"
},
{
"expression": {
"endPosition": "47",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "46"
},
"endPosition": "47",
"kind": "PREFIX_DECREMENT",
"startPosition": "44"
},
{
"expression": {
"endPosition": "51",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "50"
},
"endPosition": "51",
"kind": "UNARY_PLUS",
"startPosition": "49"
},
{
"expression": {
"endPosition": "55",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "54"
},
"endPosition": "55",
"kind": "UNARY_MINUS",
"startPosition": "53"
},
{
"expression": {
"endPosition": "59",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "58"
},
"endPosition": "59",
"kind": "BITWISE_COMPLEMENT",
"startPosition": "57"
},
{
"expression": {
"endPosition": "63",
"kind": "IDENTIFIER",
"name": "x",
"startPosition": "62"
},
"endPosition": "63",
"kind": "LOGICAL_COMPLEMENT",
"startPosition": "61"
}
]