Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/import/default-named/output.json

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