Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/meta-properties/new-invalid-prop/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}},
4 "errors": [
5 "SyntaxError: The only valid meta property for new is new.target. (2:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"f"},
19 "name": "f"
20 },
21 "generator": false,
22 "async": false,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":13,"end":27,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":3,"column":1,"index":27}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":17,"end":25,"loc":{"start":{"line":2,"column":2,"index":17},"end":{"line":2,"column":10,"index":25}},
31 "expression": {
32 "type": "MetaProperty",
33 "start":17,"end":25,"loc":{"start":{"line":2,"column":2,"index":17},"end":{"line":2,"column":10,"index":25}},
34 "meta": {
35 "type": "Identifier",
36 "start":17,"end":20,"loc":{"start":{"line":2,"column":2,"index":17},"end":{"line":2,"column":5,"index":20},"identifierName":"new"},
37 "name": "new"
38 },
39 "property": {
40 "type": "Identifier",
41 "start":21,"end":25,"loc":{"start":{"line":2,"column":6,"index":21},"end":{"line":2,"column":10,"index":25},"identifierName":"prop"},
42 "name": "prop"
43 }
44 }
45 }
46 ],
47 "directives": []
48 }
49 }
50 ],
51 "directives": []
52 }
53 }