mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
b44da9dbe4
swc_common: - don't emit `loc` for dummy spans swc_ecma_transforms: - prevent hygiene from changing key in object pattern (#369) - fix module tests (iteration order of FxHashSet is changed) swc_ecma_parser: - fix parsing of arrow function (#370)
289 lines
6.5 KiB
JSON
289 lines
6.5 KiB
JSON
{
|
|
"type": "Module",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 49,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "JSXFragment",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 49,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
"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": 5,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 2
|
|
}
|
|
}
|
|
},
|
|
"value": "\n\n ",
|
|
"raw": "\n\n "
|
|
},
|
|
{
|
|
"type": "JSXFragment",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 45,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningFragment",
|
|
"span": {
|
|
"start": 6,
|
|
"end": 7,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 4
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXText",
|
|
"span": {
|
|
"start": 7,
|
|
"end": 12,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 4
|
|
}
|
|
}
|
|
},
|
|
"value": "\n\n ",
|
|
"raw": "\n\n "
|
|
},
|
|
{
|
|
"type": "JSXFragment",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 39,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
"opening": {
|
|
"type": "JSXOpeningFragment",
|
|
"span": {
|
|
"start": 13,
|
|
"end": 14,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 6
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXText",
|
|
"span": {
|
|
"start": 14,
|
|
"end": 36,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 4
|
|
}
|
|
}
|
|
},
|
|
"value": "\n\n super deep\n\n ",
|
|
"raw": "\n\n super deep\n\n "
|
|
}
|
|
],
|
|
"closing": {
|
|
"type": "JSXClosingFragment",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 39,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXText",
|
|
"span": {
|
|
"start": 39,
|
|
"end": 42,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 2
|
|
}
|
|
}
|
|
},
|
|
"value": "\n\n ",
|
|
"raw": "\n\n "
|
|
}
|
|
],
|
|
"closing": {
|
|
"type": "JSXClosingFragment",
|
|
"span": {
|
|
"start": 44,
|
|
"end": 45,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 5
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXText",
|
|
"span": {
|
|
"start": 45,
|
|
"end": 46,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 0
|
|
}
|
|
}
|
|
},
|
|
"value": "\n\n",
|
|
"raw": "\n\n"
|
|
}
|
|
],
|
|
"closing": {
|
|
"type": "JSXClosingFragment",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 49,
|
|
"ctxt": 0,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 2
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|