Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/regression/issue-2114/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":51,"index":51}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":51,"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":1,"column":51,"index":51}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":50,"index":50}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}},
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":43,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":43,"index":43}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":5,"end":12,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":12,"index":12}},
31 "name": "pattern"
32 },
33 "value": {
34 "type": "StringLiteral",
35 "start":13,"end":43,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":43,"index":43}},
36 "extra": {
37 "rawValue": "^([\\w\\.\\-]+\\s)*[\\w\\.\\-]+\\s?$",
38 "raw": "\"^([\\w\\.\\-]+\\s)*[\\w\\.\\-]+\\s?$\""
39 },
40 "value": "^([\\w\\.\\-]+\\s)*[\\w\\.\\-]+\\s?$"
41 }
42 }
43 ],
44 "selfClosing": false
45 },
46 "closingElement": {
47 "type": "JSXClosingElement",
48 "start":44,"end":50,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":50,"index":50}},
49 "name": {
50 "type": "JSXIdentifier",
51 "start":46,"end":49,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":49,"index":49}},
52 "name": "div"
53 }
54 },
55 "children": []
56 }
57 }
58 ],
59 "directives": []
60 }
61 }