swc/ecmascript/parser/tests/jsx/basic/fragment-2/input.js.json

98 lines
1.8 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 0,
"end": 22,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 22
}
}
},
"body": [
{
"type": "JSXFragment",
"span": {
"start": 0,
"end": 22,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 22
}
}
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 1,
"end": 2,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 2
}
}
}
},
"children": [
{
"type": "JSXText",
"span": {
"start": 2,
"end": 19,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 19
}
}
},
"value": "Hi, I'm a string!",
"raw": "Hi, I'm a string!"
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 21,
"end": 22,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 22
}
}
}
}
}
],
"interpreter": null
}