Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ImportDeclaration",
12 "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},
13 "specifiers": [
14 {
15 "type": "ImportDefaultSpecifier",
16 "start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10}},
17 "local": {
18 "type": "Identifier",
19 "start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10},"identifierName":"foo"},
20 "name": "foo"
21 }
22 }
23 ],
24 "importKind": "value",
25 "source": {
26 "type": "Literal",
27 "start":16,"end":26,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":26}},
28 "value": "foo.json",
29 "raw": "\"foo.json\""
30 },
31 "assertions": [
32 {
33 "type": "ImportAttribute",
34 "start":36,"end":48,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":48}},
35 "key": {
36 "type": "Identifier",
37 "start":36,"end":40,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":40},"identifierName":"type"},
38 "name": "type"
39 },
40 "value": {
41 "type": "Literal",
42 "start":42,"end":48,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":48}},
43 "value": "json",
44 "raw": "\"json\""
45 }
46 }
47 ]
48 }
49 ]
50 }
51 }