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 "typeAnnotation": { 13 "type": "TSAnyKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 11 22 } 23 } 24 }, 25 "decorators": [], 26 "loc": { 27 "start": { 28 "line": 17, 29 "column": 5 30 }, 31 "end": { 32 "line": 17, 33 "column": 6 34 } 35 } 36 }, 37 "init": null, 38 "loc": { 39 "start": { 40 "line": 17, 41 "column": 5 42 }, 43 "end": { 44 "line": 17, 45 "column": 6 46 } 47 } 48 } 49 ], 50 "kind": "var", 51 "loc": { 52 "start": { 53 "line": 17, 54 "column": 1 55 }, 56 "end": { 57 "line": 17, 58 "column": 12 59 } 60 } 61 }, 62 { 63 "type": "VariableDeclaration", 64 "declarations": [ 65 { 66 "type": "VariableDeclarator", 67 "id": { 68 "type": "Identifier", 69 "name": "b", 70 "typeAnnotation": { 71 "type": "TSParenthesizedType", 72 "typeAnnotation": { 73 "type": "TSUnionType", 74 "types": [ 75 { 76 "type": "TSStringKeyword", 77 "loc": { 78 "start": { 79 "line": 18, 80 "column": 9 81 }, 82 "end": { 83 "line": 18, 84 "column": 15 85 } 86 } 87 }, 88 { 89 "type": "TSNumberKeyword", 90 "loc": { 91 "start": { 92 "line": 18, 93 "column": 16 94 }, 95 "end": { 96 "line": 18, 97 "column": 22 98 } 99 } 100 }, 101 { 102 "type": "TSBigIntKeyword", 103 "loc": { 104 "start": { 105 "line": 18, 106 "column": 23 107 }, 108 "end": { 109 "line": 18, 110 "column": 29 111 } 112 } 113 }, 114 { 115 "type": "TSBooleanKeyword", 116 "loc": { 117 "start": { 118 "line": 18, 119 "column": 30 120 }, 121 "end": { 122 "line": 18, 123 "column": 37 124 } 125 } 126 } 127 ], 128 "loc": { 129 "start": { 130 "line": 18, 131 "column": 9 132 }, 133 "end": { 134 "line": 18, 135 "column": 37 136 } 137 } 138 }, 139 "loc": { 140 "start": { 141 "line": 18, 142 "column": 8 143 }, 144 "end": { 145 "line": 18, 146 "column": 38 147 } 148 } 149 }, 150 "decorators": [], 151 "loc": { 152 "start": { 153 "line": 18, 154 "column": 5 155 }, 156 "end": { 157 "line": 18, 158 "column": 6 159 } 160 } 161 }, 162 "init": null, 163 "loc": { 164 "start": { 165 "line": 18, 166 "column": 5 167 }, 168 "end": { 169 "line": 18, 170 "column": 6 171 } 172 } 173 } 174 ], 175 "kind": "var", 176 "loc": { 177 "start": { 178 "line": 18, 179 "column": 1 180 }, 181 "end": { 182 "line": 18, 183 "column": 39 184 } 185 } 186 }, 187 { 188 "type": "ExpressionStatement", 189 "expression": { 190 "type": "BinaryExpression", 191 "operator": "in", 192 "left": { 193 "type": "Identifier", 194 "name": "a", 195 "decorators": [], 196 "loc": { 197 "start": { 198 "line": 19, 199 "column": 1 200 }, 201 "end": { 202 "line": 19, 203 "column": 2 204 } 205 } 206 }, 207 "right": { 208 "type": "Identifier", 209 "name": "b", 210 "decorators": [], 211 "loc": { 212 "start": { 213 "line": 19, 214 "column": 6 215 }, 216 "end": { 217 "line": 19, 218 "column": 7 219 } 220 } 221 }, 222 "loc": { 223 "start": { 224 "line": 19, 225 "column": 1 226 }, 227 "end": { 228 "line": 19, 229 "column": 7 230 } 231 } 232 }, 233 "loc": { 234 "start": { 235 "line": 19, 236 "column": 1 237 }, 238 "end": { 239 "line": 19, 240 "column": 8 241 } 242 } 243 } 244 ], 245 "loc": { 246 "start": { 247 "line": 1, 248 "column": 1 249 }, 250 "end": { 251 "line": 20, 252 "column": 1 253 } 254 } 255} 256TypeError: The right-hand side of an 'in' expression must not be a primitive. [in_15.ts:19:6] 257