Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/record-and-tuple/as-jsx-attribute-value-hash/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":29,"index":29}},
19 "name": {
20 "type": "JSXIdentifier",
21 "start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5}},
22 "name": "Card"
23 },
24 "attributes": [
25 {
26 "type": "JSXAttribute",
27 "start":6,"end":28,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":28,"index":28}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10}},
31 "name": "card"
32 },
33 "value": {
34 "type": "JSXExpressionContainer",
35 "start":11,"end":28,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":28,"index":28}},
36 "expression": {
37 "type": "RecordExpression",
38 "start":12,"end":27,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":27,"index":27}},
39 "properties": [
40 {
41 "type": "ObjectProperty",
42 "start":14,"end":26,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":26,"index":26}},
43 "method": false,
44 "key": {
45 "type": "Identifier",
46 "start":14,"end":19,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":19,"index":19},"identifierName":"title"},
47 "name": "title"
48 },
49 "computed": false,
50 "shorthand": false,
51 "value": {
52 "type": "StringLiteral",
53 "start":21,"end":26,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":26,"index":26}},
54 "extra": {
55 "rawValue": "foo",
56 "raw": "\"foo\""
57 },
58 "value": "foo"
59 }
60 }
61 ]
62 }
63 }
64 }
65 ],
66 "selfClosing": false
67 },
68 "closingElement": {
69 "type": "JSXClosingElement",
70 "start":29,"end":36,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":36,"index":36}},
71 "name": {
72 "type": "JSXIdentifier",
73 "start":31,"end":35,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":35,"index":35}},
74 "name": "Card"
75 }
76 },
77 "children": []
78 }
79 }
80 ],
81 "directives": []
82 }
83 }