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