nashorn/test/script/basic/parser/assignmentExpr.js.EXPECTED
changeset 19894 195477810711
equal deleted inserted replaced
19893:8855a9f9f4ae 19894:195477810711
       
     1 {
       
     2     "type": "Program",
       
     3     "body": [
       
     4         {
       
     5             "type": "ExpressionStatement",
       
     6             "expression": {
       
     7                 "type": "AssignmentExpression",
       
     8                 "operator": "=",
       
     9                 "left": {
       
    10                     "type": "Identifier",
       
    11                     "name": "xyz"
       
    12                 },
       
    13                 "right": {
       
    14                     "type": "Literal",
       
    15                     "value": 314
       
    16                 }
       
    17             }
       
    18         }
       
    19     ]
       
    20 }
       
    21 {
       
    22     "type": "Program",
       
    23     "body": [
       
    24         {
       
    25             "type": "ExpressionStatement",
       
    26             "expression": {
       
    27                 "type": "AssignmentExpression",
       
    28                 "operator": "+=",
       
    29                 "left": {
       
    30                     "type": "Identifier",
       
    31                     "name": "xyz"
       
    32                 },
       
    33                 "right": {
       
    34                     "type": "Literal",
       
    35                     "value": 314
       
    36                 }
       
    37             }
       
    38         }
       
    39     ]
       
    40 }
       
    41 {
       
    42     "type": "Program",
       
    43     "body": [
       
    44         {
       
    45             "type": "ExpressionStatement",
       
    46             "expression": {
       
    47                 "type": "AssignmentExpression",
       
    48                 "operator": "-=",
       
    49                 "left": {
       
    50                     "type": "Identifier",
       
    51                     "name": "xyz"
       
    52                 },
       
    53                 "right": {
       
    54                     "type": "Literal",
       
    55                     "value": 314
       
    56                 }
       
    57             }
       
    58         }
       
    59     ]
       
    60 }
       
    61 {
       
    62     "type": "Program",
       
    63     "body": [
       
    64         {
       
    65             "type": "ExpressionStatement",
       
    66             "expression": {
       
    67                 "type": "AssignmentExpression",
       
    68                 "operator": "*=",
       
    69                 "left": {
       
    70                     "type": "Identifier",
       
    71                     "name": "xyz"
       
    72                 },
       
    73                 "right": {
       
    74                     "type": "Literal",
       
    75                     "value": 314
       
    76                 }
       
    77             }
       
    78         }
       
    79     ]
       
    80 }
       
    81 {
       
    82     "type": "Program",
       
    83     "body": [
       
    84         {
       
    85             "type": "ExpressionStatement",
       
    86             "expression": {
       
    87                 "type": "AssignmentExpression",
       
    88                 "operator": "/=",
       
    89                 "left": {
       
    90                     "type": "Identifier",
       
    91                     "name": "xyz"
       
    92                 },
       
    93                 "right": {
       
    94                     "type": "Literal",
       
    95                     "value": 314
       
    96                 }
       
    97             }
       
    98         }
       
    99     ]
       
   100 }
       
   101 {
       
   102     "type": "Program",
       
   103     "body": [
       
   104         {
       
   105             "type": "ExpressionStatement",
       
   106             "expression": {
       
   107                 "type": "AssignmentExpression",
       
   108                 "operator": "%=",
       
   109                 "left": {
       
   110                     "type": "Identifier",
       
   111                     "name": "xyz"
       
   112                 },
       
   113                 "right": {
       
   114                     "type": "Literal",
       
   115                     "value": 314
       
   116                 }
       
   117             }
       
   118         }
       
   119     ]
       
   120 }
       
   121 {
       
   122     "type": "Program",
       
   123     "body": [
       
   124         {
       
   125             "type": "ExpressionStatement",
       
   126             "expression": {
       
   127                 "type": "AssignmentExpression",
       
   128                 "operator": "<<=",
       
   129                 "left": {
       
   130                     "type": "Identifier",
       
   131                     "name": "xyz"
       
   132                 },
       
   133                 "right": {
       
   134                     "type": "Literal",
       
   135                     "value": 314
       
   136                 }
       
   137             }
       
   138         }
       
   139     ]
       
   140 }
       
   141 {
       
   142     "type": "Program",
       
   143     "body": [
       
   144         {
       
   145             "type": "ExpressionStatement",
       
   146             "expression": {
       
   147                 "type": "AssignmentExpression",
       
   148                 "operator": ">>=",
       
   149                 "left": {
       
   150                     "type": "Identifier",
       
   151                     "name": "xyz"
       
   152                 },
       
   153                 "right": {
       
   154                     "type": "Literal",
       
   155                     "value": 314
       
   156                 }
       
   157             }
       
   158         }
       
   159     ]
       
   160 }
       
   161 {
       
   162     "type": "Program",
       
   163     "body": [
       
   164         {
       
   165             "type": "ExpressionStatement",
       
   166             "expression": {
       
   167                 "type": "AssignmentExpression",
       
   168                 "operator": ">>>=",
       
   169                 "left": {
       
   170                     "type": "Identifier",
       
   171                     "name": "xyz"
       
   172                 },
       
   173                 "right": {
       
   174                     "type": "Literal",
       
   175                     "value": 314
       
   176                 }
       
   177             }
       
   178         }
       
   179     ]
       
   180 }
       
   181 {
       
   182     "type": "Program",
       
   183     "body": [
       
   184         {
       
   185             "type": "ExpressionStatement",
       
   186             "expression": {
       
   187                 "type": "AssignmentExpression",
       
   188                 "operator": "&=",
       
   189                 "left": {
       
   190                     "type": "Identifier",
       
   191                     "name": "xyz"
       
   192                 },
       
   193                 "right": {
       
   194                     "type": "Literal",
       
   195                     "value": 314
       
   196                 }
       
   197             }
       
   198         }
       
   199     ]
       
   200 }
       
   201 {
       
   202     "type": "Program",
       
   203     "body": [
       
   204         {
       
   205             "type": "ExpressionStatement",
       
   206             "expression": {
       
   207                 "type": "AssignmentExpression",
       
   208                 "operator": "^=",
       
   209                 "left": {
       
   210                     "type": "Identifier",
       
   211                     "name": "xyz"
       
   212                 },
       
   213                 "right": {
       
   214                     "type": "Literal",
       
   215                     "value": 314
       
   216                 }
       
   217             }
       
   218         }
       
   219     ]
       
   220 }
       
   221 {
       
   222     "type": "Program",
       
   223     "body": [
       
   224         {
       
   225             "type": "ExpressionStatement",
       
   226             "expression": {
       
   227                 "type": "AssignmentExpression",
       
   228                 "operator": "|=",
       
   229                 "left": {
       
   230                     "type": "Identifier",
       
   231                     "name": "xyz"
       
   232                 },
       
   233                 "right": {
       
   234                     "type": "Literal",
       
   235                     "value": 314
       
   236                 }
       
   237             }
       
   238         }
       
   239     ]
       
   240 }