Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/valid-syntax-export-with-object-method-attribute/output.json

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