Francisco Ryan Tolmasky I 966387d263
Always expose expressionValue in DirectiveLiteral nodes (#13960)
* 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.
2021-11-13 20:46:16 -05:00

41 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"type": "File",
"start":0,"end":103,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":87}},
"program": {
"type": "Program",
"start":0,"end":103,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":87}},
"sourceType": "script",
"interpreter": null,
"body": [],
"directives": [
{
"type": "Directive",
"start":0,"end":15,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":7}},
"value": {
"type": "DirectiveLiteral",
"start":0,"end":14,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":6}},
"extra": {
"rawValue": "beforeafter",
"raw": "\"beforeafter\"",
"expressionValue": "beforeafter"
},
"value": "beforeafter"
},
"trailingComments": [
{
"type": "CommentLine",
"value": " ^ That's a U+2029 PARAGRAPH SEPARATOR UTF-16 char (between 'before' and 'after')",
"start":16,"end":103,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":87}}
}
]
}
]
},
"comments": [
{
"type": "CommentLine",
"value": " ^ That's a U+2029 PARAGRAPH SEPARATOR UTF-16 char (between 'before' and 'after')",
"start":16,"end":103,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":87}}
}
]
}