Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-export/export-named-pattern/output.json

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