Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-properties/new-target-invalid/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
4 "errors": [
5 "SyntaxError: `new.target` can only be used in functions or class properties. (1:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":18,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":18,"index":18}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
23 "name": "x"
24 },
25 "init": {
26 "type": "MetaProperty",
27 "start":8,"end":18,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":18,"index":18}},
28 "meta": {
29 "type": "Identifier",
30 "start":8,"end":11,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":11,"index":11},"identifierName":"new"},
31 "name": "new"
32 },
33 "property": {
34 "type": "Identifier",
35 "start":12,"end":18,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":18,"index":18},"identifierName":"target"},
36 "name": "target"
37 }
38 }
39 }
40 ],
41 "kind": "var"
42 }
43 ],
44 "directives": []
45 }
46 }