Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/trailing-comma/output.json

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