https://github.com/Microsoft/TypeScript
Revision 237ea526f9b120f515f98c88ee7c31078565cbb9 authored by Andrew Branch on 19 March 2020, 16:46:00 UTC, committed by GitHub on 19 March 2020, 16:46:00 UTC
* Allow emitter to write multiple newlines in node lists

* Progress

* Progress

* Fix recomputeIndentation

* Add tests, fix leading line terminator count

* Do a bit less work when `preserveNewlines` is off

* Fix accidental find/replace rename

* Restore some monomorphism

* Fix single line writer

* Fix other writers

* Revert "Fix other writers"

This reverts commit 21b0cb8f3beb6915eb969e4924ce0ad4b1645876.

* Revert "Fix single line writer"

This reverts commit e535e279f99a423aab44dca8eca46f46669d045f.

* Revert "Restore some monomorphism"

This reverts commit e3ef42743a99333a15d3cb357125c67aa13f2d03.

* Add equal position optimization to getLinesBetweenRangeEndAndRangeStart

* Add one more test

* Actually save the test file

* Rename preserveNewlines to preserveSourceNewlines

* Make ignoreSourceNewlines internal

* Optimize lines-between functions

* Add comment;

* Fix trailing line terminator count bug for function parameters

* Preserve newlines around parenthesized expressions

* Back to speculative microoptimizations, yay

* Don’t call getEffectiveLines during tsc emit at all
1 parent 667f3b4
History
Tip revision: 237ea526f9b120f515f98c88ee7c31078565cbb9 authored by Andrew Branch on 19 March 2020, 16:46:00 UTC
Preserve newlines from original source when printing nodes from TextChanges (#36688)
Tip revision: 237ea52
File Mode Size
.github
.vscode
bin
doc
lib
loc
scripts
src
tests
.dockerignore -rw-r--r-- 1.0 KB
.editorconfig -rw-r--r-- 188 bytes
.eslintignore -rw-r--r-- 59 bytes
.eslintrc.json -rw-r--r-- 4.2 KB
.gitattributes -rw-r--r-- 42 bytes
.gitignore -rw-r--r-- 2.8 KB
.gitmodules -rw-r--r-- 0 bytes
.mailmap -rw-r--r-- 18.7 KB
.npmignore -rw-r--r-- 411 bytes
.npmrc -rw-r--r-- 18 bytes
.travis.yml -rw-r--r-- 296 bytes
.yarnrc -rw-r--r-- 27 bytes
AUTHORS.md -rw-r--r-- 8.3 KB
CODE_OF_CONDUCT.md -rw-r--r-- 333 bytes
CONTRIBUTING.md -rw-r--r-- 10.5 KB
CopyrightNotice.txt -rw-r--r-- 812 bytes
Dockerfile -rw-r--r-- 257 bytes
Gulpfile.js -rw-r--r-- 32.6 KB
LICENSE.txt -rw-r--r-- 9.0 KB
README.md -rw-r--r-- 5.5 KB
ThirdPartyNoticeText.txt -rw-r--r-- 36.9 KB
package.json -rw-r--r-- 4.2 KB

README.md

back to top