| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":61,"index":95}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":95,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":61,"index":95}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "VariableDeclaration", |
| 12 |
"start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}}, |
| 13 |
"declarations": [ |
| 14 |
{ |
| 15 |
"type": "VariableDeclarator", |
| 16 |
"start":4,"end":28,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":28,"index":28}}, |
| 17 |
"id": { |
| 18 |
"type": "Identifier", |
| 19 |
"start":4,"end":28,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":28,"index":28},"identifierName":"data"}, |
| 20 |
"name": "data", |
| 21 |
"typeAnnotation": { |
| 22 |
"type": "TypeAnnotation", |
| 23 |
"start":11,"end":28,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":28,"index":28}}, |
| 24 |
"typeAnnotation": { |
| 25 |
"type": "GenericTypeAnnotation", |
| 26 |
"start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28}}, |
| 27 |
"typeParameters": null, |
| 28 |
"id": { |
| 29 |
"type": "Identifier", |
| 30 |
"start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28},"identifierName":"T"}, |
| 31 |
"name": "T" |
| 32 |
}, |
| 33 |
"leadingComments": [ |
| 34 |
{ |
| 35 |
"type": "CommentBlock", |
| 36 |
"value": " comment ", |
| 37 |
"start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}} |
| 38 |
} |
| 39 |
] |
| 40 |
} |
| 41 |
} |
| 42 |
}, |
| 43 |
"init": null |
| 44 |
} |
| 45 |
], |
| 46 |
"kind": "let" |
| 47 |
}, |
| 48 |
{ |
| 49 |
"type": "VariableDeclaration", |
| 50 |
"start":34,"end":95,"loc":{"start":{"line":3,"column":0,"index":34},"end":{"line":3,"column":61,"index":95}}, |
| 51 |
"declarations": [ |
| 52 |
{ |
| 53 |
"type": "VariableDeclarator", |
| 54 |
"start":40,"end":94,"loc":{"start":{"line":3,"column":6,"index":40},"end":{"line":3,"column":60,"index":94}}, |
| 55 |
"id": { |
| 56 |
"type": "Identifier", |
| 57 |
"start":40,"end":41,"loc":{"start":{"line":3,"column":6,"index":40},"end":{"line":3,"column":7,"index":41},"identifierName":"c"}, |
| 58 |
"name": "c" |
| 59 |
}, |
| 60 |
"init": { |
| 61 |
"type": "ArrowFunctionExpression", |
| 62 |
"start":44,"end":94,"loc":{"start":{"line":3,"column":10,"index":44},"end":{"line":3,"column":60,"index":94}}, |
| 63 |
"id": null, |
| 64 |
"generator": false, |
| 65 |
"async": false, |
| 66 |
"params": [ |
| 67 |
{ |
| 68 |
"type": "Identifier", |
| 69 |
"start":45,"end":84,"loc":{"start":{"line":3,"column":11,"index":45},"end":{"line":3,"column":50,"index":84},"identifierName":"data"}, |
| 70 |
"name": "data", |
| 71 |
"typeAnnotation": { |
| 72 |
"type": "TypeAnnotation", |
| 73 |
"start":51,"end":84,"loc":{"start":{"line":3,"column":17,"index":51},"end":{"line":3,"column":50,"index":84}}, |
| 74 |
"typeAnnotation": { |
| 75 |
"type": "GenericTypeAnnotation", |
| 76 |
"start":78,"end":84,"loc":{"start":{"line":3,"column":44,"index":78},"end":{"line":3,"column":50,"index":84}}, |
| 77 |
"typeParameters": null, |
| 78 |
"id": { |
| 79 |
"type": "Identifier", |
| 80 |
"start":78,"end":84,"loc":{"start":{"line":3,"column":44,"index":78},"end":{"line":3,"column":50,"index":84},"identifierName":"Object"}, |
| 81 |
"name": "Object" |
| 82 |
}, |
| 83 |
"leadingComments": [ |
| 84 |
{ |
| 85 |
"type": "CommentBlock", |
| 86 |
"value": " this is an object ", |
| 87 |
"start":53,"end":77,"loc":{"start":{"line":3,"column":19,"index":53},"end":{"line":3,"column":43,"index":77}} |
| 88 |
} |
| 89 |
] |
| 90 |
} |
| 91 |
} |
| 92 |
} |
| 93 |
], |
| 94 |
"body": { |
| 95 |
"type": "BlockStatement", |
| 96 |
"start":92,"end":94,"loc":{"start":{"line":3,"column":58,"index":92},"end":{"line":3,"column":60,"index":94}}, |
| 97 |
"body": [], |
| 98 |
"directives": [] |
| 99 |
} |
| 100 |
} |
| 101 |
} |
| 102 |
], |
| 103 |
"kind": "const" |
| 104 |
} |
| 105 |
], |
| 106 |
"directives": [] |
| 107 |
}, |
| 108 |
"comments": [ |
| 109 |
{ |
| 110 |
"type": "CommentBlock", |
| 111 |
"value": " comment ", |
| 112 |
"start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":27,"index":27}} |
| 113 |
}, |
| 114 |
{ |
| 115 |
"type": "CommentBlock", |
| 116 |
"value": " this is an object ", |
| 117 |
"start":53,"end":77,"loc":{"start":{"line":3,"column":19,"index":53},"end":{"line":3,"column":43,"index":77}} |
| 118 |
} |
| 119 |
] |
| 120 |
} |