Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/invalid-undefined-export-in-module-blocks01/output.json

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