Debian Codegraph @

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

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