Debian Codegraph @

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

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