Debian Codegraph @

packages/babel-parser/test/fixtures/core/scope/undecl-export-var/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":36}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "BlockStatement",
12 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":17}},
13 "body": [
14 {
15 "type": "VariableDeclaration",
16 "start":4,"end":15,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":13,"index":15}},
17 "declarations": [
18 {
19 "type": "VariableDeclarator",
20 "start":8,"end":15,"loc":{"start":{"line":2,"column":6,"index":8},"end":{"line":2,"column":13,"index":15}},
21 "id": {
22 "type": "Identifier",
23 "start":8,"end":15,"loc":{"start":{"line":2,"column":6,"index":8},"end":{"line":2,"column":13,"index":15},"identifierName":"encrypt"},
24 "name": "encrypt"
25 },
26 "init": null
27 }
28 ],
29 "kind": "var"
30 }
31 ],
32 "directives": []
33 },
34 {
35 "type": "ExportNamedDeclaration",
36 "start":18,"end":36,"loc":{"start":{"line":4,"column":0,"index":18},"end":{"line":4,"column":18,"index":36}},
37 "specifiers": [
38 {
39 "type": "ExportSpecifier",
40 "start":27,"end":34,"loc":{"start":{"line":4,"column":9,"index":27},"end":{"line":4,"column":16,"index":34}},
41 "local": {
42 "type": "Identifier",
43 "start":27,"end":34,"loc":{"start":{"line":4,"column":9,"index":27},"end":{"line":4,"column":16,"index":34},"identifierName":"encrypt"},
44 "name": "encrypt"
45 },
46 "exported": {
47 "type": "Identifier",
48 "start":27,"end":34,"loc":{"start":{"line":4,"column":9,"index":27},"end":{"line":4,"column":16,"index":34},"identifierName":"encrypt"},
49 "name": "encrypt"
50 }
51 }
52 ],
53 "source": null,
54 "declaration": null
55 }
56 ],
57 "directives": []
58 }
59 }