Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/meta-properties/invalid-arrow-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
4 "errors": [
5 "SyntaxError: `new.target` can only be used in functions or class properties. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":33,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":3,"column":1,"index":33}},
20 "id": {
21 "type": "Identifier",
22 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
23 "name": "A"
24 },
25 "init": {
26 "type": "ArrowFunctionExpression",
27 "start":10,"end":33,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":3,"column":1,"index":33}},
28 "id": null,
29 "generator": false,
30 "async": false,
31 "params": [],
32 "body": {
33 "type": "BlockStatement",
34 "start":16,"end":33,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":33}},
35 "body": [
36 {
37 "type": "ExpressionStatement",
38 "start":20,"end":31,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":13,"index":31}},
39 "expression": {
40 "type": "MetaProperty",
41 "start":20,"end":30,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":12,"index":30}},
42 "meta": {
43 "type": "Identifier",
44 "start":20,"end":23,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":5,"index":23},"identifierName":"new"},
45 "name": "new"
46 },
47 "property": {
48 "type": "Identifier",
49 "start":24,"end":30,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":12,"index":30},"identifierName":"target"},
50 "name": "target"
51 }
52 }
53 }
54 ],
55 "directives": []
56 }
57 }
58 }
59 ],
60 "kind": "const"
61 }
62 ],
63 "directives": []
64 }
65 }