Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":8,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":8,"index":36}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
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 "kind": "var"
26 },
27 {
28 "type": "ExportNamedDeclaration",
29 "start":9,"end":27,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":2,"column":18,"index":27}},
30 "specifiers": [
31 {
32 "type": "ExportSpecifier",
33 "start":17,"end":20,"loc":{"start":{"line":2,"column":8,"index":17},"end":{"line":2,"column":11,"index":20}},
34 "local": {
35 "type": "Identifier",
36 "start":17,"end":20,"loc":{"start":{"line":2,"column":8,"index":17},"end":{"line":2,"column":11,"index":20},"identifierName":"foo"},
37 "name": "foo"
38 },
39 "exported": {
40 "type": "Identifier",
41 "start":17,"end":20,"loc":{"start":{"line":2,"column":8,"index":17},"end":{"line":2,"column":11,"index":20},"identifierName":"foo"},
42 "name": "foo"
43 }
44 },
45 {
46 "type": "ExportSpecifier",
47 "start":22,"end":25,"loc":{"start":{"line":2,"column":13,"index":22},"end":{"line":2,"column":16,"index":25}},
48 "local": {
49 "type": "Identifier",
50 "start":22,"end":25,"loc":{"start":{"line":2,"column":13,"index":22},"end":{"line":2,"column":16,"index":25},"identifierName":"bar"},
51 "name": "bar"
52 },
53 "exported": {
54 "type": "Identifier",
55 "start":22,"end":25,"loc":{"start":{"line":2,"column":13,"index":22},"end":{"line":2,"column":16,"index":25},"identifierName":"bar"},
56 "name": "bar"
57 }
58 }
59 ],
60 "source": null,
61 "declaration": null
62 },
63 {
64 "type": "VariableDeclaration",
65 "start":28,"end":36,"loc":{"start":{"line":3,"column":0,"index":28},"end":{"line":3,"column":8,"index":36}},
66 "declarations": [
67 {
68 "type": "VariableDeclarator",
69 "start":32,"end":35,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":7,"index":35}},
70 "id": {
71 "type": "Identifier",
72 "start":32,"end":35,"loc":{"start":{"line":3,"column":4,"index":32},"end":{"line":3,"column":7,"index":35},"identifierName":"bar"},
73 "name": "bar"
74 },
75 "init": null
76 }
77 ],
78 "kind": "var"
79 }
80 ],
81 "directives": []
82 }
83 }