Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-attributes/output.json

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