Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/class-methods/getter-signature/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
4 "errors": [
5 "SyntaxError: A 'get' accessor must not have any formal parameters. (2:2)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
19 "name": "A"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":31,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":31}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":12,"end":29,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":19,"index":29}},
29 "static": false,
30 "key": {
31 "type": "Identifier",
32 "start":16,"end":20,"loc":{"start":{"line":2,"column":6,"index":16},"end":{"line":2,"column":10,"index":20},"identifierName":"prop"},
33 "name": "prop"
34 },
35 "computed": false,
36 "kind": "get",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [
41 {
42 "type": "Identifier",
43 "start":22,"end":25,"loc":{"start":{"line":2,"column":12,"index":22},"end":{"line":2,"column":15,"index":25},"identifierName":"arg"},
44 "name": "arg"
45 }
46 ],
47 "body": {
48 "type": "BlockStatement",
49 "start":27,"end":29,"loc":{"start":{"line":2,"column":17,"index":27},"end":{"line":2,"column":19,"index":29}},
50 "body": [],
51 "directives": []
52 }
53 }
54 ]
55 }
56 }
57 ],
58 "directives": []
59 }
60 }