| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":129,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":35,"index":129}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":129,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":35,"index":129}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ClassDeclaration", |
| 12 |
"start":0,"end":93,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":93,"index":93}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"}, |
| 16 |
"name": "C" |
| 17 |
}, |
| 18 |
"superClass": null, |
| 19 |
"body": { |
| 20 |
"type": "ClassBody", |
| 21 |
"start":8,"end":93,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":93,"index":93}}, |
| 22 |
"body": [ |
| 23 |
{ |
| 24 |
"type": "ClassMethod", |
| 25 |
"start":18,"end":91,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":91,"index":91}}, |
| 26 |
"static": false, |
| 27 |
"key": { |
| 28 |
"type": "Identifier", |
| 29 |
"start":42,"end":43,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":43,"index":43},"identifierName":"f"}, |
| 30 |
"name": "f", |
| 31 |
"trailingComments": [ |
| 32 |
{ |
| 33 |
"type": "CommentBlock", |
| 34 |
"value": " 4 ", |
| 35 |
"start":44,"end":51,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":51,"index":51}} |
| 36 |
} |
| 37 |
], |
| 38 |
"leadingComments": [ |
| 39 |
{ |
| 40 |
"type": "CommentBlock", |
| 41 |
"value": " 3 ", |
| 42 |
"start":34,"end":41,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":41,"index":41}} |
| 43 |
} |
| 44 |
] |
| 45 |
}, |
| 46 |
"computed": false, |
| 47 |
"kind": "method", |
| 48 |
"id": null, |
| 49 |
"generator": true, |
| 50 |
"async": true, |
| 51 |
"params": [ |
| 52 |
{ |
| 53 |
"type": "Identifier", |
| 54 |
"start":61,"end":62,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":62,"index":62},"identifierName":"a"}, |
| 55 |
"name": "a", |
| 56 |
"trailingComments": [ |
| 57 |
{ |
| 58 |
"type": "CommentBlock", |
| 59 |
"value": " 6 ", |
| 60 |
"start":63,"end":70,"loc":{"start":{"line":1,"column":63,"index":63},"end":{"line":1,"column":70,"index":70}} |
| 61 |
}, |
| 62 |
{ |
| 63 |
"type": "CommentBlock", |
| 64 |
"value": " 7 ", |
| 65 |
"start":72,"end":79,"loc":{"start":{"line":1,"column":72,"index":72},"end":{"line":1,"column":79,"index":79}} |
| 66 |
} |
| 67 |
], |
| 68 |
"leadingComments": [ |
| 69 |
{ |
| 70 |
"type": "CommentBlock", |
| 71 |
"value": " 5 ", |
| 72 |
"start":53,"end":60,"loc":{"start":{"line":1,"column":53,"index":53},"end":{"line":1,"column":60,"index":60}} |
| 73 |
} |
| 74 |
] |
| 75 |
} |
| 76 |
], |
| 77 |
"body": { |
| 78 |
"type": "BlockStatement", |
| 79 |
"start":89,"end":91,"loc":{"start":{"line":1,"column":89,"index":89},"end":{"line":1,"column":91,"index":91}}, |
| 80 |
"body": [], |
| 81 |
"directives": [], |
| 82 |
"leadingComments": [ |
| 83 |
{ |
| 84 |
"type": "CommentBlock", |
| 85 |
"value": " 8 ", |
| 86 |
"start":81,"end":88,"loc":{"start":{"line":1,"column":81,"index":81},"end":{"line":1,"column":88,"index":88}} |
| 87 |
} |
| 88 |
] |
| 89 |
}, |
| 90 |
"innerComments": [ |
| 91 |
{ |
| 92 |
"type": "CommentBlock", |
| 93 |
"value": " 2 ", |
| 94 |
"start":24,"end":31,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":31,"index":31}} |
| 95 |
} |
| 96 |
], |
| 97 |
"leadingComments": [ |
| 98 |
{ |
| 99 |
"type": "CommentBlock", |
| 100 |
"value": " 1 ", |
| 101 |
"start":10,"end":17,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":17,"index":17}} |
| 102 |
} |
| 103 |
] |
| 104 |
} |
| 105 |
] |
| 106 |
} |
| 107 |
}, |
| 108 |
{ |
| 109 |
"type": "ExpressionStatement", |
| 110 |
"start":94,"end":129,"loc":{"start":{"line":2,"column":0,"index":94},"end":{"line":2,"column":35,"index":129}}, |
| 111 |
"expression": { |
| 112 |
"type": "ClassExpression", |
| 113 |
"start":95,"end":127,"loc":{"start":{"line":2,"column":1,"index":95},"end":{"line":2,"column":33,"index":127}}, |
| 114 |
"id": null, |
| 115 |
"superClass": null, |
| 116 |
"body": { |
| 117 |
"type": "ClassBody", |
| 118 |
"start":101,"end":127,"loc":{"start":{"line":2,"column":7,"index":101},"end":{"line":2,"column":33,"index":127}}, |
| 119 |
"body": [ |
| 120 |
{ |
| 121 |
"type": "ClassMethod", |
| 122 |
"start":103,"end":125,"loc":{"start":{"line":2,"column":9,"index":103},"end":{"line":2,"column":31,"index":125}}, |
| 123 |
"static": false, |
| 124 |
"key": { |
| 125 |
"type": "Identifier", |
| 126 |
"start":118,"end":119,"loc":{"start":{"line":2,"column":24,"index":118},"end":{"line":2,"column":25,"index":119},"identifierName":"f"}, |
| 127 |
"name": "f" |
| 128 |
}, |
| 129 |
"computed": false, |
| 130 |
"kind": "method", |
| 131 |
"id": null, |
| 132 |
"generator": true, |
| 133 |
"async": true, |
| 134 |
"params": [], |
| 135 |
"body": { |
| 136 |
"type": "BlockStatement", |
| 137 |
"start":123,"end":125,"loc":{"start":{"line":2,"column":29,"index":123},"end":{"line":2,"column":31,"index":125}}, |
| 138 |
"body": [], |
| 139 |
"directives": [] |
| 140 |
}, |
| 141 |
"innerComments": [ |
| 142 |
{ |
| 143 |
"type": "CommentBlock", |
| 144 |
"value": " 1 ", |
| 145 |
"start":109,"end":116,"loc":{"start":{"line":2,"column":15,"index":109},"end":{"line":2,"column":22,"index":116}} |
| 146 |
} |
| 147 |
] |
| 148 |
} |
| 149 |
] |
| 150 |
}, |
| 151 |
"extra": { |
| 152 |
"parenthesized": true, |
| 153 |
"parenStart": 94 |
| 154 |
} |
| 155 |
} |
| 156 |
} |
| 157 |
], |
| 158 |
"directives": [] |
| 159 |
}, |
| 160 |
"comments": [ |
| 161 |
{ |
| 162 |
"type": "CommentBlock", |
| 163 |
"value": " 1 ", |
| 164 |
"start":10,"end":17,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":17,"index":17}} |
| 165 |
}, |
| 166 |
{ |
| 167 |
"type": "CommentBlock", |
| 168 |
"value": " 2 ", |
| 169 |
"start":24,"end":31,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":31,"index":31}} |
| 170 |
}, |
| 171 |
{ |
| 172 |
"type": "CommentBlock", |
| 173 |
"value": " 3 ", |
| 174 |
"start":34,"end":41,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":41,"index":41}} |
| 175 |
}, |
| 176 |
{ |
| 177 |
"type": "CommentBlock", |
| 178 |
"value": " 4 ", |
| 179 |
"start":44,"end":51,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":51,"index":51}} |
| 180 |
}, |
| 181 |
{ |
| 182 |
"type": "CommentBlock", |
| 183 |
"value": " 5 ", |
| 184 |
"start":53,"end":60,"loc":{"start":{"line":1,"column":53,"index":53},"end":{"line":1,"column":60,"index":60}} |
| 185 |
}, |
| 186 |
{ |
| 187 |
"type": "CommentBlock", |
| 188 |
"value": " 6 ", |
| 189 |
"start":63,"end":70,"loc":{"start":{"line":1,"column":63,"index":63},"end":{"line":1,"column":70,"index":70}} |
| 190 |
}, |
| 191 |
{ |
| 192 |
"type": "CommentBlock", |
| 193 |
"value": " 7 ", |
| 194 |
"start":72,"end":79,"loc":{"start":{"line":1,"column":72,"index":72},"end":{"line":1,"column":79,"index":79}} |
| 195 |
}, |
| 196 |
{ |
| 197 |
"type": "CommentBlock", |
| 198 |
"value": " 8 ", |
| 199 |
"start":81,"end":88,"loc":{"start":{"line":1,"column":81,"index":81},"end":{"line":1,"column":88,"index":88}} |
| 200 |
}, |
| 201 |
{ |
| 202 |
"type": "CommentBlock", |
| 203 |
"value": " 1 ", |
| 204 |
"start":109,"end":116,"loc":{"start":{"line":2,"column":15,"index":109},"end":{"line":2,"column":22,"index":116}} |
| 205 |
} |
| 206 |
] |
| 207 |
} |