Please sign in to comment.
fix(ivy): i18n - ensure that escaped chars are handled in localized s…
…trings (#34065) When creating synthesized tagged template literals, one must provide both the "cooked" text and the "raw" (unparsed) text. Previously there were no good APIs for creating the AST nodes with raw text for such literals. Recently the APIs were improved to support this, and they do an extra check to ensure that the raw text parses to be equal to the cooked text. It turns out there is a bug in this check - see microsoft/TypeScript#35374. This commit works around the bug by synthesizing a "head" node and morphing it by changing its `kind` into the required node type. // FW-1747 PR Close #34065
- Loading branch information
Showing with 50 additions and 11 deletions.