| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":39}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: Unexpected reserved word 'public'. (2:8)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":25,"index":39}}, |
| 10 | "sourceType": "script", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "VariableDeclaration", |
| 15 | "start":14,"end":39,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":25,"index":39}}, |
| 16 | "declarations": [ |
| 17 | { |
| 18 | "type": "VariableDeclarator", |
| 19 | "start":20,"end":38,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":24,"index":38}}, |
| 20 | "id": { |
| 21 | "type": "ObjectPattern", |
| 22 | "start":20,"end":30,"loc":{"start":{"line":2,"column":6,"index":20},"end":{"line":2,"column":16,"index":30}}, |
| 23 | "properties": [ |
| 24 | { |
| 25 | "type": "ObjectProperty", |
| 26 | "start":22,"end":28,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":14,"index":28}}, |
| 27 | "key": { |
| 28 | "type": "Identifier", |
| 29 | "start":22,"end":28,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":14,"index":28},"identifierName":"public"}, |
| 30 | "name": "public" |
| 31 | }, |
| 32 | "computed": false, |
| 33 | "method": false, |
| 34 | "shorthand": true, |
| 35 | "value": { |
| 36 | "type": "Identifier", |
| 37 | "start":22,"end":28,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":14,"index":28},"identifierName":"public"}, |
| 38 | "name": "public" |
| 39 | }, |
| 40 | "extra": { |
| 41 | "shorthand": true |
| 42 | } |
| 43 | } |
| 44 | ] |
| 45 | }, |
| 46 | "init": { |
| 47 | "type": "CallExpression", |
| 48 | "start":33,"end":38,"loc":{"start":{"line":2,"column":19,"index":33},"end":{"line":2,"column":24,"index":38}}, |
| 49 | "callee": { |
| 50 | "type": "Identifier", |
| 51 | "start":33,"end":36,"loc":{"start":{"line":2,"column":19,"index":33},"end":{"line":2,"column":22,"index":36},"identifierName":"foo"}, |
| 52 | "name": "foo" |
| 53 | }, |
| 54 | "arguments": [] |
| 55 | } |
| 56 | } |
| 57 | ], |
| 58 | "kind": "const" |
| 59 | } |
| 60 | ], |
| 61 | "directives": [ |
| 62 | { |
| 63 | "type": "Directive", |
| 64 | "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}}, |
| 65 | "value": { |
| 66 | "type": "DirectiveLiteral", |
| 67 | "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}}, |
| 68 | "extra": { |
| 69 | "rawValue": "use strict", |
| 70 | "raw": "\"use strict\"", |
| 71 | "expressionValue": "use strict" |
| 72 | }, |
| 73 | "value": "use strict" |
| 74 | } |
| 75 | } |
| 76 | ] |
| 77 | } |
| 78 | } |