| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, |
| 4 | "program": { |
| 5 | "type": "Program", |
| 6 | "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, |
| 7 | "sourceType": "script", |
| 8 | "interpreter": null, |
| 9 | "body": [ |
| 10 | { |
| 11 | "type": "ClassDeclaration", |
| 12 | "start":0,"end":75,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}}, |
| 13 | "id": { |
| 14 | "type": "Identifier", |
| 15 | "start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"A"}, |
| 16 | "name": "A" |
| 17 | }, |
| 18 | "superClass": null, |
| 19 | "body": { |
| 20 | "type": "ClassBody", |
| 21 | "start":8,"end":75,"loc":{"start":{"line":1,"column":8},"end":{"line":6,"column":1}}, |
| 22 | "body": [ |
| 23 | { |
| 24 | "type": "ClassPrivateProperty", |
| 25 | "start":12,"end":25,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":15}}, |
| 26 | "static": false, |
| 27 | "key": { |
| 28 | "type": "PrivateName", |
| 29 | "start":12,"end":16,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":6}}, |
| 30 | "id": { |
| 31 | "type": "Identifier", |
| 32 | "start":13,"end":16,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":6},"identifierName":"foo"}, |
| 33 | "name": "foo" |
| 34 | } |
| 35 | }, |
| 36 | "value": { |
| 37 | "type": "Literal", |
| 38 | "start":19,"end":24,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":14}}, |
| 39 | "value": "bar", |
| 40 | "raw": "\"bar\"" |
| 41 | } |
| 42 | }, |
| 43 | { |
| 44 | "type": "MethodDefinition", |
| 45 | "start":28,"end":73,"loc":{"start":{"line":3,"column":2},"end":{"line":5,"column":3}}, |
| 46 | "static": true, |
| 47 | "key": { |
| 48 | "type": "Identifier", |
| 49 | "start":35,"end":38,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":12},"identifierName":"isA"}, |
| 50 | "name": "isA" |
| 51 | }, |
| 52 | "computed": false, |
| 53 | "kind": "method", |
| 54 | "value": { |
| 55 | "type": "FunctionExpression", |
| 56 | "start":38,"end":73,"loc":{"start":{"line":3,"column":12},"end":{"line":5,"column":3}}, |
| 57 | "id": null, |
| 58 | "generator": false, |
| 59 | "async": false, |
| 60 | "expression": false, |
| 61 | "params": [ |
| 62 | { |
| 63 | "type": "Identifier", |
| 64 | "start":39,"end":42,"loc":{"start":{"line":3,"column":13},"end":{"line":3,"column":16},"identifierName":"obj"}, |
| 65 | "name": "obj" |
| 66 | } |
| 67 | ], |
| 68 | "body": { |
| 69 | "type": "BlockStatement", |
| 70 | "start":44,"end":73,"loc":{"start":{"line":3,"column":18},"end":{"line":5,"column":3}}, |
| 71 | "body": [ |
| 72 | { |
| 73 | "type": "ReturnStatement", |
| 74 | "start":50,"end":69,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":23}}, |
| 75 | "argument": { |
| 76 | "type": "BinaryExpression", |
| 77 | "start":57,"end":68,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":22}}, |
| 78 | "left": { |
| 79 | "type": "PrivateName", |
| 80 | "start":57,"end":61,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":15}}, |
| 81 | "id": { |
| 82 | "type": "Identifier", |
| 83 | "start":58,"end":61,"loc":{"start":{"line":4,"column":12},"end":{"line":4,"column":15},"identifierName":"foo"}, |
| 84 | "name": "foo" |
| 85 | } |
| 86 | }, |
| 87 | "operator": "in", |
| 88 | "right": { |
| 89 | "type": "Identifier", |
| 90 | "start":65,"end":68,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":22},"identifierName":"obj"}, |
| 91 | "name": "obj" |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | ] |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | ] |
| 100 | } |
| 101 | } |
| 102 | ] |
| 103 | } |
| 104 | } |