Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/errors/attribute-sequence-expression-babel-7/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":55,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}},
19 "name": {
20 "type": "JSXIdentifier",
21 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
22 "name": "div"
23 },
24 "attributes": [
25 {
26 "type": "JSXAttribute",
27 "start":5,"end":52,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":52,"index":52}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8}},
31 "name": "key"
32 },
33 "value": {
34 "type": "JSXExpressionContainer",
35 "start":9,"end":52,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":52,"index":52}},
36 "expression": {
37 "type": "SequenceExpression",
38 "start":10,"end":51,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":51,"index":51}},
39 "expressions": [
40 {
41 "type": "CallExpression",
42 "start":10,"end":28,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":28,"index":28}},
43 "callee": {
44 "type": "MemberExpression",
45 "start":10,"end":21,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":21,"index":21}},
46 "object": {
47 "type": "Identifier",
48 "start":10,"end":17,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":17,"index":17},"identifierName":"console"},
49 "name": "console"
50 },
51 "computed": false,
52 "property": {
53 "type": "Identifier",
54 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"log"},
55 "name": "log"
56 }
57 },
58 "arguments": [
59 {
60 "type": "StringLiteral",
61 "start":22,"end":27,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":27,"index":27}},
62 "extra": {
63 "rawValue": "foo",
64 "raw": "'foo'"
65 },
66 "value": "foo"
67 }
68 ]
69 },
70 {
71 "type": "CallExpression",
72 "start":30,"end":51,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":51,"index":51}},
73 "callee": {
74 "type": "MemberExpression",
75 "start":30,"end":44,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":44,"index":44}},
76 "object": {
77 "type": "Identifier",
78 "start":30,"end":34,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":34,"index":34},"identifierName":"JSON"},
79 "name": "JSON"
80 },
81 "computed": false,
82 "property": {
83 "type": "Identifier",
84 "start":35,"end":44,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":44,"index":44},"identifierName":"stringify"},
85 "name": "stringify"
86 }
87 },
88 "arguments": [
89 {
90 "type": "Identifier",
91 "start":45,"end":50,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":50,"index":50},"identifierName":"props"},
92 "name": "props"
93 }
94 ]
95 }
96 ]
97 }
98 }
99 }
100 ],
101 "selfClosing": true
102 },
103 "closingElement": null,
104 "children": []
105 }
106 }
107 ],
108 "directives": []
109 }
110 }