Debian Codegraph @

packages/babel-parser/test/fixtures/flow/this-annotation/this-arrow-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
4 "errors": [
5 "SyntaxError: Binding invalid left-hand side in function parameter list. (1:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":28,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":28,"index":28}},
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": "ArrowFunctionExpression",
27 "start":8,"end":28,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":28,"index":28}},
28 "id": null,
29 "generator": false,
30 "async": false,
31 "params": [
32 {
33 "type": "ThisExpression",
34 "start":9,"end":22,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":22,"index":22}},
35 "typeAnnotation": {
36 "type": "TypeAnnotation",
37 "start":14,"end":22,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":22,"index":22}},
38 "typeAnnotation": {
39 "type": "NumberTypeAnnotation",
40 "start":16,"end":22,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":22,"index":22}}
41 }
42 }
43 }
44 ],
45 "body": {
46 "type": "NumericLiteral",
47 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28}},
48 "extra": {
49 "rawValue": 0,
50 "raw": "0"
51 },
52 "value": 0
53 }
54 }
55 }
56 ],
57 "kind": "let"
58 }
59 ],
60 "directives": []
61 }
62 }