Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/string-literal/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":101,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":52,"index":101}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":101,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":52,"index":101}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ImportDeclaration",
12 "start":0,"end":48,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":48,"index":48}},
13 "specifiers": [
14 {
15 "type": "ImportDefaultSpecifier",
16 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
17 "local": {
18 "type": "Identifier",
19 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10},"identifierName":"foo"},
20 "name": "foo"
21 }
22 }
23 ],
24 "source": {
25 "type": "StringLiteral",
26 "start":16,"end":26,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":26,"index":26}},
27 "extra": {
28 "rawValue": "foo.json",
29 "raw": "\"foo.json\""
30 },
31 "value": "foo.json"
32 },
33 "assertions": [
34 {
35 "type": "ImportAttribute",
36 "start":36,"end":46,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":46,"index":46}},
37 "key": {
38 "type": "Identifier",
39 "start":36,"end":39,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":39,"index":39},"identifierName":"for"},
40 "name": "for"
41 },
42 "value": {
43 "type": "StringLiteral",
44 "start":41,"end":46,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":46,"index":46}},
45 "extra": {
46 "rawValue": "for",
47 "raw": "\"for\""
48 },
49 "value": "for"
50 }
51 }
52 ]
53 },
54 {
55 "type": "ExportNamedDeclaration",
56 "start":49,"end":101,"loc":{"start":{"line":2,"column":0,"index":49},"end":{"line":2,"column":52,"index":101}},
57 "specifiers": [
58 {
59 "type": "ExportSpecifier",
60 "start":58,"end":61,"loc":{"start":{"line":2,"column":9,"index":58},"end":{"line":2,"column":12,"index":61}},
61 "local": {
62 "type": "Identifier",
63 "start":58,"end":61,"loc":{"start":{"line":2,"column":9,"index":58},"end":{"line":2,"column":12,"index":61},"identifierName":"foo"},
64 "name": "foo"
65 },
66 "exported": {
67 "type": "Identifier",
68 "start":58,"end":61,"loc":{"start":{"line":2,"column":9,"index":58},"end":{"line":2,"column":12,"index":61},"identifierName":"foo"},
69 "name": "foo"
70 }
71 }
72 ],
73 "source": {
74 "type": "StringLiteral",
75 "start":69,"end":79,"loc":{"start":{"line":2,"column":20,"index":69},"end":{"line":2,"column":30,"index":79}},
76 "extra": {
77 "rawValue": "foo.json",
78 "raw": "\"foo.json\""
79 },
80 "value": "foo.json"
81 },
82 "declaration": null,
83 "assertions": [
84 {
85 "type": "ImportAttribute",
86 "start":89,"end":99,"loc":{"start":{"line":2,"column":40,"index":89},"end":{"line":2,"column":50,"index":99}},
87 "key": {
88 "type": "Identifier",
89 "start":89,"end":92,"loc":{"start":{"line":2,"column":40,"index":89},"end":{"line":2,"column":43,"index":92},"identifierName":"for"},
90 "name": "for"
91 },
92 "value": {
93 "type": "StringLiteral",
94 "start":94,"end":99,"loc":{"start":{"line":2,"column":45,"index":94},"end":{"line":2,"column":50,"index":99}},
95 "extra": {
96 "rawValue": "for",
97 "raw": "\"for\""
98 },
99 "value": "for"
100 }
101 }
102 ]
103 }
104 ],
105 "directives": []
106 }
107 }