Debian Codegraph @

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

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