Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/decorators/no-function-parameters/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "errors": [
5 "SyntaxError: Decorators cannot be used to decorate parameters. (1:14)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13},"identifierName":"func"},
19 "name": "func"
20 },
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "Identifier",
26 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20},"identifierName":"x"},
27 "name": "x",
28 "decorators": [
29 {
30 "type": "Decorator",
31 "start":14,"end":18,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":18,"index":18}},
32 "expression": {
33 "type": "Identifier",
34 "start":15,"end":18,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":18,"index":18},"identifierName":"foo"},
35 "name": "foo"
36 }
37 }
38 ]
39 }
40 ],
41 "body": {
42 "type": "BlockStatement",
43 "start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24}},
44 "body": [],
45 "directives": []
46 }
47 }
48 ],
49 "directives": []
50 }
51 }