112 lines
2.7 KiB
JSON
112 lines
2.7 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 0,
|
|
"end": 40,
|
|
"expression": {
|
|
"type": "JSXElement",
|
|
"start": 0,
|
|
"end": 38,
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start": 0,
|
|
"end": 3,
|
|
"attributes": [],
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 1,
|
|
"end": 2,
|
|
"name": "p"
|
|
},
|
|
"selfClosing": false
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"start": 34,
|
|
"end": 38,
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 36,
|
|
"end": 37,
|
|
"name": "p"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "Literal",
|
|
"start": 3,
|
|
"end": 7,
|
|
"value": "foo ",
|
|
"raw": "foo "
|
|
},
|
|
{
|
|
"type": "JSXElement",
|
|
"start": 7,
|
|
"end": 30,
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start": 7,
|
|
"end": 22,
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"start": 10,
|
|
"end": 21,
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 10,
|
|
"end": 14,
|
|
"name": "href"
|
|
},
|
|
"value": {
|
|
"type": "Literal",
|
|
"start": 15,
|
|
"end": 21,
|
|
"value": "test",
|
|
"raw": "\"test\""
|
|
}
|
|
}
|
|
],
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 8,
|
|
"end": 9,
|
|
"name": "a"
|
|
},
|
|
"selfClosing": false
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"start": 26,
|
|
"end": 30,
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start": 28,
|
|
"end": 29,
|
|
"name": "a"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "Literal",
|
|
"start": 22,
|
|
"end": 26,
|
|
"value": " bar",
|
|
"raw": " bar"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"start": 30,
|
|
"end": 34,
|
|
"value": " baz",
|
|
"raw": " baz"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |