TypeScript/src/compiler/factory
Eli Barzilay 7e8bba6908 Fix template string refactoring and nodeFactory bug
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
2021-07-29 04:23:06 -04:00
..
baseNodeFactory.ts Refactor node factory API, use node factory in parser (#35282) 2020-06-16 16:55:03 -07:00
emitHelpers.ts Improve __spreadArray perf, and other fixes related to SpreadElement (#44527) 2021-06-11 16:21:55 -07:00
emitNode.ts Improve __spreadArray perf, and other fixes related to SpreadElement (#44527) 2021-06-11 16:21:55 -07:00
nodeConverters.ts Refactor node factory API, use node factory in parser (#35282) 2020-06-16 16:55:03 -07:00
nodeFactory.ts Fix template string refactoring and nodeFactory bug 2021-07-29 04:23:06 -04:00
nodeTests.ts Proposal class static block support (#43370) 2021-06-25 09:24:05 -07:00
parenthesizerRules.ts feat(eslint): consistent-type-assertions (#43556) 2021-05-18 06:20:57 -07:00
utilities.ts Change static fields emits (#43114) 2021-06-25 15:49:27 -07:00
utilitiesPublic.ts Refactor node factory API, use node factory in parser (#35282) 2020-06-16 16:55:03 -07:00