Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-export-declaration/export-named-as-specifier/output.json

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