We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quote: 'single'
After merging #678, builders.stringLiteral generates a node.extra object with extra.raw having double quotes due to JSON.stringify:
builders.stringLiteral
node.extra
extra.raw
JSON.stringify
recast.print has this code that doesn't reformat any quotes if extra.raw is present:
recast.print
case "BooleanLiteral": // Babel 6 Literal split case "StringLiteral": // Babel 6 Literal split case "Literal": return fromString( getPossibleRaw(n) || (typeof n.value === "string" ? nodeStr(n.value, options) : n.value), options, );
getPossibleRaw wins here; nodeStr which respects options.quote is not called.
getPossibleRaw
nodeStr
options.quote
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After merging #678,
builders.stringLiteral
generates anode.extra
object withextra.raw
having double quotes due toJSON.stringify
:recast.print
has this code that doesn't reformat any quotes ifextra.raw
is present:getPossibleRaw
wins here;nodeStr
which respectsoptions.quote
is not called.The text was updated successfully, but these errors were encountered: