| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":106,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":32,"index":106}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Identifier 'as' has already been declared. (3:15)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":106,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":32,"index":106}}, |
| 10 |
"sourceType": "module", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "ImportDeclaration", |
| 15 |
"start":9,"end":41,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":32,"index":41}}, |
| 16 |
"specifiers": [ |
| 17 |
{ |
| 18 |
"type": "ImportSpecifier", |
| 19 |
"start":18,"end":27,"loc":{"start":{"line":2,"column":9,"index":18},"end":{"line":2,"column":18,"index":27}}, |
| 20 |
"imported": { |
| 21 |
"type": "Identifier", |
| 22 |
"start":18,"end":21,"loc":{"start":{"line":2,"column":9,"index":18},"end":{"line":2,"column":12,"index":21},"identifierName":"foo"}, |
| 23 |
"name": "foo" |
| 24 |
}, |
| 25 |
"importKind": null, |
| 26 |
"local": { |
| 27 |
"type": "Identifier", |
| 28 |
"start":25,"end":27,"loc":{"start":{"line":2,"column":16,"index":25},"end":{"line":2,"column":18,"index":27},"identifierName":"as"}, |
| 29 |
"name": "as" |
| 30 |
} |
| 31 |
} |
| 32 |
], |
| 33 |
"importKind": "value", |
| 34 |
"source": { |
| 35 |
"type": "StringLiteral", |
| 36 |
"start":35,"end":40,"loc":{"start":{"line":2,"column":26,"index":35},"end":{"line":2,"column":31,"index":40}}, |
| 37 |
"extra": { |
| 38 |
"rawValue": "foo", |
| 39 |
"raw": "\"foo\"" |
| 40 |
}, |
| 41 |
"value": "foo" |
| 42 |
}, |
| 43 |
"leadingComments": [ |
| 44 |
{ |
| 45 |
"type": "CommentLine", |
| 46 |
"value": " @flow", |
| 47 |
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}} |
| 48 |
} |
| 49 |
] |
| 50 |
}, |
| 51 |
{ |
| 52 |
"type": "ImportDeclaration", |
| 53 |
"start":42,"end":73,"loc":{"start":{"line":3,"column":0,"index":42},"end":{"line":3,"column":31,"index":73}}, |
| 54 |
"specifiers": [ |
| 55 |
{ |
| 56 |
"type": "ImportSpecifier", |
| 57 |
"start":51,"end":59,"loc":{"start":{"line":3,"column":9,"index":51},"end":{"line":3,"column":17,"index":59}}, |
| 58 |
"imported": { |
| 59 |
"type": "Identifier", |
| 60 |
"start":51,"end":53,"loc":{"start":{"line":3,"column":9,"index":51},"end":{"line":3,"column":11,"index":53},"identifierName":"as"}, |
| 61 |
"name": "as" |
| 62 |
}, |
| 63 |
"importKind": null, |
| 64 |
"local": { |
| 65 |
"type": "Identifier", |
| 66 |
"start":57,"end":59,"loc":{"start":{"line":3,"column":15,"index":57},"end":{"line":3,"column":17,"index":59},"identifierName":"as"}, |
| 67 |
"name": "as" |
| 68 |
} |
| 69 |
} |
| 70 |
], |
| 71 |
"importKind": "value", |
| 72 |
"source": { |
| 73 |
"type": "StringLiteral", |
| 74 |
"start":67,"end":72,"loc":{"start":{"line":3,"column":25,"index":67},"end":{"line":3,"column":30,"index":72}}, |
| 75 |
"extra": { |
| 76 |
"rawValue": "foo", |
| 77 |
"raw": "\"foo\"" |
| 78 |
}, |
| 79 |
"value": "foo" |
| 80 |
} |
| 81 |
}, |
| 82 |
{ |
| 83 |
"type": "ImportDeclaration", |
| 84 |
"start":74,"end":106,"loc":{"start":{"line":4,"column":0,"index":74},"end":{"line":4,"column":32,"index":106}}, |
| 85 |
"specifiers": [ |
| 86 |
{ |
| 87 |
"type": "ImportSpecifier", |
| 88 |
"start":83,"end":92,"loc":{"start":{"line":4,"column":9,"index":83},"end":{"line":4,"column":18,"index":92}}, |
| 89 |
"imported": { |
| 90 |
"type": "Identifier", |
| 91 |
"start":83,"end":85,"loc":{"start":{"line":4,"column":9,"index":83},"end":{"line":4,"column":11,"index":85},"identifierName":"as"}, |
| 92 |
"name": "as" |
| 93 |
}, |
| 94 |
"importKind": null, |
| 95 |
"local": { |
| 96 |
"type": "Identifier", |
| 97 |
"start":89,"end":92,"loc":{"start":{"line":4,"column":15,"index":89},"end":{"line":4,"column":18,"index":92},"identifierName":"foo"}, |
| 98 |
"name": "foo" |
| 99 |
} |
| 100 |
} |
| 101 |
], |
| 102 |
"importKind": "value", |
| 103 |
"source": { |
| 104 |
"type": "StringLiteral", |
| 105 |
"start":100,"end":105,"loc":{"start":{"line":4,"column":26,"index":100},"end":{"line":4,"column":31,"index":105}}, |
| 106 |
"extra": { |
| 107 |
"rawValue": "foo", |
| 108 |
"raw": "\"foo\"" |
| 109 |
}, |
| 110 |
"value": "foo" |
| 111 |
} |
| 112 |
} |
| 113 |
], |
| 114 |
"directives": [] |
| 115 |
}, |
| 116 |
"comments": [ |
| 117 |
{ |
| 118 |
"type": "CommentLine", |
| 119 |
"value": " @flow", |
| 120 |
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}} |
| 121 |
} |
| 122 |
] |
| 123 |
} |