1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "decorators": [], 13 "loc": { 14 "start": { 15 "line": 17, 16 "column": 5 17 }, 18 "end": { 19 "line": 17, 20 "column": 6 21 } 22 } 23 }, 24 "init": { 25 "type": "TSAsExpression", 26 "expression": { 27 "type": "ObjectExpression", 28 "properties": [ 29 { 30 "type": "Property", 31 "method": false, 32 "shorthand": false, 33 "computed": true, 34 "key": { 35 "type": "BinaryExpression", 36 "operator": "+", 37 "left": { 38 "type": "NumberLiteral", 39 "value": 5, 40 "loc": { 41 "start": { 42 "line": 17, 43 "column": 11 44 }, 45 "end": { 46 "line": 17, 47 "column": 12 48 } 49 } 50 }, 51 "right": { 52 "type": "NumberLiteral", 53 "value": 4, 54 "loc": { 55 "start": { 56 "line": 17, 57 "column": 15 58 }, 59 "end": { 60 "line": 17, 61 "column": 16 62 } 63 } 64 }, 65 "loc": { 66 "start": { 67 "line": 17, 68 "column": 11 69 }, 70 "end": { 71 "line": 17, 72 "column": 16 73 } 74 } 75 }, 76 "value": { 77 "type": "NumberLiteral", 78 "value": 3, 79 "loc": { 80 "start": { 81 "line": 17, 82 "column": 18 83 }, 84 "end": { 85 "line": 17, 86 "column": 19 87 } 88 } 89 }, 90 "kind": "init", 91 "loc": { 92 "start": { 93 "line": 17, 94 "column": 10 95 }, 96 "end": { 97 "line": 17, 98 "column": 19 99 } 100 } 101 } 102 ], 103 "loc": { 104 "start": { 105 "line": 17, 106 "column": 9 107 }, 108 "end": { 109 "line": 17, 110 "column": 20 111 } 112 } 113 }, 114 "typeAnnotation": { 115 "type": "TSTypeReference", 116 "typeName": { 117 "type": "Identifier", 118 "name": "const", 119 "decorators": [], 120 "loc": { 121 "start": { 122 "line": 17, 123 "column": 24 124 }, 125 "end": { 126 "line": 17, 127 "column": 29 128 } 129 } 130 }, 131 "loc": { 132 "start": { 133 "line": 17, 134 "column": 24 135 }, 136 "end": { 137 "line": 17, 138 "column": 29 139 } 140 } 141 }, 142 "loc": { 143 "start": { 144 "line": 17, 145 "column": 9 146 }, 147 "end": { 148 "line": 17, 149 "column": 30 150 } 151 } 152 }, 153 "loc": { 154 "start": { 155 "line": 17, 156 "column": 5 157 }, 158 "end": { 159 "line": 17, 160 "column": 30 161 } 162 } 163 } 164 ], 165 "kind": "var", 166 "loc": { 167 "start": { 168 "line": 17, 169 "column": 1 170 }, 171 "end": { 172 "line": 17, 173 "column": 30 174 } 175 } 176 }, 177 { 178 "type": "ExpressionStatement", 179 "expression": { 180 "type": "AssignmentExpression", 181 "operator": "=", 182 "left": { 183 "type": "MemberExpression", 184 "object": { 185 "type": "Identifier", 186 "name": "a", 187 "decorators": [], 188 "loc": { 189 "start": { 190 "line": 19, 191 "column": 1 192 }, 193 "end": { 194 "line": 19, 195 "column": 2 196 } 197 } 198 }, 199 "property": { 200 "type": "NumberLiteral", 201 "value": 5, 202 "loc": { 203 "start": { 204 "line": 19, 205 "column": 3 206 }, 207 "end": { 208 "line": 19, 209 "column": 4 210 } 211 } 212 }, 213 "computed": true, 214 "optional": false, 215 "loc": { 216 "start": { 217 "line": 19, 218 "column": 1 219 }, 220 "end": { 221 "line": 19, 222 "column": 5 223 } 224 } 225 }, 226 "right": { 227 "type": "NumberLiteral", 228 "value": 3, 229 "loc": { 230 "start": { 231 "line": 19, 232 "column": 8 233 }, 234 "end": { 235 "line": 19, 236 "column": 9 237 } 238 } 239 }, 240 "loc": { 241 "start": { 242 "line": 19, 243 "column": 1 244 }, 245 "end": { 246 "line": 19, 247 "column": 9 248 } 249 } 250 }, 251 "loc": { 252 "start": { 253 "line": 19, 254 "column": 1 255 }, 256 "end": { 257 "line": 19, 258 "column": 10 259 } 260 } 261 } 262 ], 263 "loc": { 264 "start": { 265 "line": 1, 266 "column": 1 267 }, 268 "end": { 269 "line": 19, 270 "column": 10 271 } 272 } 273} 274TypeError: Cannot assign to this property because it is readonly. [member_expression_80.ts:19:1] 275