Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/decorators/invalid-undefined-private-access/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":28}},
4 "errors": [
5 "SyntaxError: Private name #dec is not defined. (2:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":28}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":28}},
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":"C"},
19 "name": "C"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":8,"end":28,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":28}},
25 "body": [
26 {
27 "type": "ClassMethod",
28 "start":12,"end":26,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":16,"index":26}},
29 "decorators": [
30 {
31 "type": "Decorator",
32 "start":12,"end":19,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":9,"index":19}},
33 "expression": {
34 "type": "MemberExpression",
35 "start":13,"end":19,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":9,"index":19}},
36 "object": {
37 "type": "Identifier",
38 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"C"},
39 "name": "C"
40 },
41 "property": {
42 "type": "PrivateName",
43 "start":15,"end":19,"loc":{"start":{"line":2,"column":5,"index":15},"end":{"line":2,"column":9,"index":19}},
44 "id": {
45 "type": "Identifier",
46 "start":16,"end":19,"loc":{"start":{"line":2,"column":6,"index":16},"end":{"line":2,"column":9,"index":19},"identifierName":"dec"},
47 "name": "dec"
48 }
49 },
50 "computed": false
51 }
52 }
53 ],
54 "static": false,
55 "key": {
56 "type": "Identifier",
57 "start":20,"end":21,"loc":{"start":{"line":2,"column":10,"index":20},"end":{"line":2,"column":11,"index":21},"identifierName":"m"},
58 "name": "m"
59 },
60 "computed": false,
61 "kind": "method",
62 "id": null,
63 "generator": false,
64 "async": false,
65 "params": [],
66 "body": {
67 "type": "BlockStatement",
68 "start":24,"end":26,"loc":{"start":{"line":2,"column":14,"index":24},"end":{"line":2,"column":16,"index":26}},
69 "body": [],
70 "directives": []
71 }
72 }
73 ]
74 }
75 }
76 ],
77 "directives": []
78 }
79 }