Instead of letting `createTemplate*` generate a broken raw string from the cooked one, grab the source code for it. Also, add a missing bit to `\`-quote `$`s. As the comment in the code says, it could just `\`-quote `${` since other `$`s are valid, but I think that it's less confusing to always quote $s (but the change is in the comment if minimalism is preferred). Also, a small-but-confusing bug in `getCookedText()`. Many tests for all of this. Fixes #40625 |
||
---|---|---|
.. | ||
baseNodeFactory.ts | ||
emitHelpers.ts | ||
emitNode.ts | ||
nodeConverters.ts | ||
nodeFactory.ts | ||
nodeTests.ts | ||
parenthesizerRules.ts | ||
utilities.ts | ||
utilitiesPublic.ts |