* fix(babel-parser): Move storage of expressionValue in DirectiveLiteral to main parser so it is accessible to others. Closes #13953. Reviewed by @tolmasky. * Add results from running `OVERWRITE=true yarn jest babel-parser`. Reviewed by @tolmasky.
27 lines
843 B
JSON
27 lines
843 B
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [],
|
|
"directives": [
|
|
{
|
|
"type": "Directive",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
|
|
"value": {
|
|
"type": "DirectiveLiteral",
|
|
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
|
|
"extra": {
|
|
"rawValue": "Hello\\122World",
|
|
"raw": "\"Hello\\122World\"",
|
|
"expressionValue": "HelloRWorld"
|
|
},
|
|
"value": "Hello\\122World"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |