Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":46}},
4 "errors": [
5 "SyntaxError: Export 'encrypt' is not defined. (4:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":18,"index":46}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "BlockStatement",
15 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":27}},
16 "body": [
17 {
18 "type": "FunctionDeclaration",
19 "start":4,"end":25,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":23,"index":25}},
20 "id": {
21 "type": "Identifier",
22 "start":13,"end":20,"loc":{"start":{"line":2,"column":11,"index":13},"end":{"line":2,"column":18,"index":20},"identifierName":"encrypt"},
23 "name": "encrypt"
24 },
25 "generator": false,
26 "async": false,
27 "params": [],
28 "body": {
29 "type": "BlockStatement",
30 "start":23,"end":25,"loc":{"start":{"line":2,"column":21,"index":23},"end":{"line":2,"column":23,"index":25}},
31 "body": [],
32 "directives": []
33 }
34 }
35 ],
36 "directives": []
37 },
38 {
39 "type": "ExportNamedDeclaration",
40 "start":28,"end":46,"loc":{"start":{"line":4,"column":0,"index":28},"end":{"line":4,"column":18,"index":46}},
41 "specifiers": [
42 {
43 "type": "ExportSpecifier",
44 "start":37,"end":44,"loc":{"start":{"line":4,"column":9,"index":37},"end":{"line":4,"column":16,"index":44}},
45 "local": {
46 "type": "Identifier",
47 "start":37,"end":44,"loc":{"start":{"line":4,"column":9,"index":37},"end":{"line":4,"column":16,"index":44},"identifierName":"encrypt"},
48 "name": "encrypt"
49 },
50 "exported": {
51 "type": "Identifier",
52 "start":37,"end":44,"loc":{"start":{"line":4,"column":9,"index":37},"end":{"line":4,"column":16,"index":44},"identifierName":"encrypt"},
53 "name": "encrypt"
54 }
55 }
56 ],
57 "source": null,
58 "declaration": null
59 }
60 ],
61 "directives": []
62 }
63 }