Debian Codegraph @

packages/babel-parser/test/fixtures/flow/scope/abcdef/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":73}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":73}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":73}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"f"},
16 "name": "f"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":13,"end":73,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":5,"column":1,"index":73}},
24 "body": [
25 {
26 "type": "VariableDeclaration",
27 "start":17,"end":50,"loc":{"start":{"line":2,"column":2,"index":17},"end":{"line":2,"column":35,"index":50}},
28 "declarations": [
29 {
30 "type": "VariableDeclarator",
31 "start":23,"end":49,"loc":{"start":{"line":2,"column":8,"index":23},"end":{"line":2,"column":34,"index":49}},
32 "id": {
33 "type": "Identifier",
34 "start":23,"end":24,"loc":{"start":{"line":2,"column":8,"index":23},"end":{"line":2,"column":9,"index":24},"identifierName":"g"},
35 "name": "g"
36 },
37 "init": {
38 "type": "ConditionalExpression",
39 "start":27,"end":49,"loc":{"start":{"line":2,"column":12,"index":27},"end":{"line":2,"column":34,"index":49}},
40 "test": {
41 "type": "BooleanLiteral",
42 "start":27,"end":31,"loc":{"start":{"line":2,"column":12,"index":27},"end":{"line":2,"column":16,"index":31}},
43 "value": true
44 },
45 "consequent": {
46 "type": "ArrowFunctionExpression",
47 "start":34,"end":43,"loc":{"start":{"line":2,"column":19,"index":34},"end":{"line":2,"column":28,"index":43}},
48 "id": null,
49 "generator": false,
50 "async": false,
51 "params": [
52 {
53 "type": "Identifier",
54 "start":34,"end":37,"loc":{"start":{"line":2,"column":19,"index":34},"end":{"line":2,"column":22,"index":37},"identifierName":"foo"},
55 "name": "foo"
56 }
57 ],
58 "body": {
59 "type": "BlockStatement",
60 "start":41,"end":43,"loc":{"start":{"line":2,"column":26,"index":41},"end":{"line":2,"column":28,"index":43}},
61 "body": [],
62 "directives": []
63 }
64 },
65 "alternate": {
66 "type": "NullLiteral",
67 "start":45,"end":49,"loc":{"start":{"line":2,"column":30,"index":45},"end":{"line":2,"column":34,"index":49}}
68 }
69 }
70 }
71 ],
72 "kind": "const"
73 },
74 {
75 "type": "VariableDeclaration",
76 "start":54,"end":71,"loc":{"start":{"line":4,"column":2,"index":54},"end":{"line":4,"column":19,"index":71}},
77 "declarations": [
78 {
79 "type": "VariableDeclarator",
80 "start":60,"end":71,"loc":{"start":{"line":4,"column":8,"index":60},"end":{"line":4,"column":19,"index":71}},
81 "id": {
82 "type": "Identifier",
83 "start":60,"end":63,"loc":{"start":{"line":4,"column":8,"index":60},"end":{"line":4,"column":11,"index":63},"identifierName":"foo"},
84 "name": "foo"
85 },
86 "init": {
87 "type": "StringLiteral",
88 "start":66,"end":71,"loc":{"start":{"line":4,"column":14,"index":66},"end":{"line":4,"column":19,"index":71}},
89 "extra": {
90 "rawValue": "foo",
91 "raw": "'foo'"
92 },
93 "value": "foo"
94 }
95 }
96 ],
97 "kind": "const"
98 }
99 ],
100 "directives": []
101 }
102 }
103 ],
104 "directives": []
105 }
106 }