141 lines
5.5 KiB
JSON
141 lines
5.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
|
|
"expression": {
|
|
"type": "JSXElement",
|
|
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":15}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":1,"end":2,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":2}},
|
|
"name": "a"
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"start":3,"end":14,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":14}},
|
|
"name": {
|
|
"type": "JSXNamespacedName",
|
|
"start":3,"end":8,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":8}},
|
|
"namespace": {
|
|
"type": "JSXIdentifier",
|
|
"start":3,"end":4,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":4}},
|
|
"name": "n"
|
|
},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":5,"end":8,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":8}},
|
|
"name": "foo"
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":9,"end":14,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":14}},
|
|
"extra": {
|
|
"rawValue": "bar",
|
|
"raw": "\"bar\""
|
|
},
|
|
"value": "bar"
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": false
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"start":36,"end":40,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":40}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39}},
|
|
"name": "a"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXText",
|
|
"start":15,"end":16,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":16}},
|
|
"extra": {
|
|
"rawValue": " ",
|
|
"raw": " "
|
|
},
|
|
"value": " "
|
|
},
|
|
{
|
|
"type": "JSXExpressionContainer",
|
|
"start":16,"end":23,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":23}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":17,"end":22,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":22},"identifierName":"value"},
|
|
"name": "value"
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXText",
|
|
"start":23,"end":24,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":24}},
|
|
"extra": {
|
|
"rawValue": " ",
|
|
"raw": " "
|
|
},
|
|
"value": " "
|
|
},
|
|
{
|
|
"type": "JSXElement",
|
|
"start":24,"end":36,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":36}},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start":24,"end":27,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":27}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":25,"end":26,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":26}},
|
|
"name": "b"
|
|
},
|
|
"attributes": [],
|
|
"selfClosing": false
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"start":32,"end":36,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":36}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35}},
|
|
"name": "b"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXElement",
|
|
"start":27,"end":32,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":32}},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start":27,"end":32,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":32}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":28,"end":29,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":29}},
|
|
"name": "c"
|
|
},
|
|
"attributes": [],
|
|
"selfClosing": true
|
|
},
|
|
"closingElement": null,
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |