Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":75,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":75,"index":75}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":75,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":75,"index":75}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ImportDeclaration",
12 "start":0,"end":75,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":75,"index":75}},
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":48,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":48,"index":48}},
37 "key": {
38 "type": "Identifier",
39 "start":36,"end":40,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":40,"index":40},"identifierName":"type"},
40 "name": "type"
41 },
42 "value": {
43 "type": "StringLiteral",
44 "start":42,"end":48,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":48,"index":48}},
45 "extra": {
46 "rawValue": "json",
47 "raw": "\"json\""
48 },
49 "value": "json"
50 }
51 },
52 {
53 "type": "ImportAttribute",
54 "start":50,"end":72,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":1,"column":72,"index":72}},
55 "key": {
56 "type": "Identifier",
57 "start":50,"end":64,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":1,"column":64,"index":64},"identifierName":"hasOwnProperty"},
58 "name": "hasOwnProperty"
59 },
60 "value": {
61 "type": "StringLiteral",
62 "start":66,"end":72,"loc":{"start":{"line":1,"column":66,"index":66},"end":{"line":1,"column":72,"index":72}},
63 "extra": {
64 "rawValue": "true",
65 "raw": "\"true\""
66 },
67 "value": "true"
68 }
69 }
70 ]
71 }
72 ],
73 "directives": []
74 }
75 }