Debian Codegraph @

packages/babel-parser/test/fixtures/flow/iterator/10/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":34}},
4 "errors": [
5 "SyntaxError: Invalid identifier @@asyncIterator. (2:17)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":34}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":34}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":34,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":3,"column":1,"index":34}},
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": "ObjectExpression",
27 "start":8,"end":34,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":34}},
28 "properties": [
29 {
30 "type": "ObjectMethod",
31 "start":12,"end":32,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":22,"index":32}},
32 "method": true,
33 "key": {
34 "type": "Identifier",
35 "start":12,"end":27,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":17,"index":27},"identifierName":"@@asyncIterator"},
36 "name": "@@asyncIterator"
37 },
38 "computed": false,
39 "kind": "method",
40 "id": null,
41 "generator": false,
42 "async": false,
43 "params": [],
44 "body": {
45 "type": "BlockStatement",
46 "start":30,"end":32,"loc":{"start":{"line":2,"column":20,"index":30},"end":{"line":2,"column":22,"index":32}},
47 "body": [],
48 "directives": []
49 }
50 }
51 ]
52 }
53 }
54 ],
55 "kind": "let"
56 }
57 ],
58 "directives": []
59 }
60 }