Debian Codegraph @

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

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