Skip to content

Never escape string literals from textChanges#26971

Merged
2 commits merged into
masterfrom
neverAsciiEscape
Sep 17, 2018
Merged

Never escape string literals from textChanges#26971
2 commits merged into
masterfrom
neverAsciiEscape

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 7, 2018

Fixes #26967
Does not fix issue #26972

@ghost ghost requested a review from rbuckton September 7, 2018 22:22
Comment thread src/compiler/emitter.ts Outdated
}

function getLiteralTextOfNode(node: LiteralLikeNode): string {
function getLiteralTextOfNode(node: LiteralLikeNode, neverAsciiEscape: boolean): string {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make neverAsciiEscape Boolean | undefined so that in above change you don't need to pass || false?

@ghost
Copy link
Copy Markdown
Author

ghost commented Sep 17, 2018

@sheetalkamat Please re-review

@ghost ghost merged commit e710645 into master Sep 17, 2018
@ghost ghost deleted the neverAsciiEscape branch September 17, 2018 18:06
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto import unicode escapes characters in path

1 participant