Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":3,"index":64}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":64,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":3,"index":64}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExportNamedDeclaration",
12 "start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":60,"index":60}},
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": "StringLiteral",
19 "start":9,"end":18,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":18,"index":18}},
20 "extra": {
21 "rawValue": "default",
22 "raw": "\"default\""
23 },
24 "value": "default"
25 },
26 "exported": {
27 "type": "Identifier",
28 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"x"},
29 "name": "x"
30 }
31 }
32 ],
33 "source": {
34 "type": "StringLiteral",
35 "start":31,"end":36,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":36,"index":36}},
36 "extra": {
37 "rawValue": "foo",
38 "raw": "\"foo\""
39 },
40 "value": "foo"
41 },
42 "declaration": null,
43 "assertions": [
44 {
45 "type": "ImportAttribute",
46 "start":46,"end":58,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":58,"index":58}},
47 "key": {
48 "type": "Identifier",
49 "start":46,"end":50,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":50,"index":50},"identifierName":"type"},
50 "name": "type"
51 },
52 "value": {
53 "type": "StringLiteral",
54 "start":52,"end":58,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":58,"index":58}},
55 "extra": {
56 "rawValue": "json",
57 "raw": "\"json\""
58 },
59 "value": "json"
60 }
61 }
62 ]
63 },
64 {
65 "type": "ExpressionStatement",
66 "start":61,"end":64,"loc":{"start":{"line":2,"column":0,"index":61},"end":{"line":2,"column":3,"index":64}},
67 "expression": {
68 "type": "ArrayExpression",
69 "start":61,"end":64,"loc":{"start":{"line":2,"column":0,"index":61},"end":{"line":2,"column":3,"index":64}},
70 "elements": [
71 {
72 "type": "NumericLiteral",
73 "start":62,"end":63,"loc":{"start":{"line":2,"column":1,"index":62},"end":{"line":2,"column":2,"index":63}},
74 "extra": {
75 "rawValue": 0,
76 "raw": "0"
77 },
78 "value": 0
79 }
80 ]
81 }
82 }
83 ],
84 "directives": []
85 }
86 }