Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/basic/7/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":10,"index":51}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":10,"index":51}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":10,"index":51}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":10,"index":51}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":23,"index":32}},
19 "name": {
20 "type": "JSXIdentifier",
21 "start":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
22 "name": "AbC-def"
23 },
24 "attributes": [
25 {
26 "type": "JSXAttribute",
27 "start":11,"end":31,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":22,"index":31}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":11,"end":15,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":6,"index":15}},
31 "name": "test"
32 },
33 "value": {
34 "type": "StringLiteral",
35 "start":16,"end":31,"loc":{"start":{"line":2,"column":7,"index":16},"end":{"line":2,"column":22,"index":31}},
36 "extra": {
37 "rawValue": "&&",
38 "raw": "\"&&\""
39 },
40 "value": "&&"
41 }
42 }
43 ],
44 "selfClosing": false
45 },
46 "closingElement": {
47 "type": "JSXClosingElement",
48 "start":41,"end":51,"loc":{"start":{"line":5,"column":0,"index":41},"end":{"line":5,"column":10,"index":51}},
49 "name": {
50 "type": "JSXIdentifier",
51 "start":43,"end":50,"loc":{"start":{"line":5,"column":2,"index":43},"end":{"line":5,"column":9,"index":50}},
52 "name": "AbC-def"
53 }
54 },
55 "children": [
56 {
57 "type": "JSXText",
58 "start":32,"end":41,"loc":{"start":{"line":2,"column":23,"index":32},"end":{"line":5,"column":0,"index":41}},
59 "extra": {
60 "rawValue": "\nbar\nbaz\n",
61 "raw": "\nbar\nbaz\n"
62 },
63 "value": "\nbar\nbaz\n"
64 }
65 ]
66 }
67 }
68 ],
69 "directives": []
70 }
71 }