TypeScript/src
Nathan Shively-Sanders fe2a33fcbc
Merge existing JSDoc comments (#27978)
* Correct indentation, using correct (I hope) indentation code

Note that part of the code, in formatting.ts, is cloned but should be
extracted to a function instead.

* Remove some possibly-superfluous code

But I see 4 failures with whitespace, so perhaps not.

* Restrict indentation change to avoid breaking baselines

The indentation code is very complex so I'm just going to avoid breaking
our single-line tests for now, plus add a simple jsdoc test to show that
multiline jsdoc indentation isn't destroyed in the common case.

* Switched over to construction for @return/@type

Still doesn't merge correctly though

* Add @return tags to emitter

* Merge multiple jsdocs

(not for @param yet)

* Merge multiple jsdoc for parameters too

* Emit more jsdoc tags

Not all of them; I got cold feet since I'll have to write tests for
them. I'll do that tomorrow.

* Many fixes to JSDoc emit

And single tests (at least) for all tags

* Cleanup in textChanges.ts

* Cleanup in formatting.ts

(Plus a little more in textChanges.ts)

* Cleanup in inferFromUsage.ts

* Fix minor omissions

* Separate merged top-level JSDoc comments with \n

instead of space.

* Don't delete intrusive non-jsdoc comments

* Cleanup from PR comments

1. Refactor emit code into smaller functions.
2. Preceding-whitespace utility is slightly easier to use.
3. Better casts and types in inferFromUsage make it easier to read.

* Fix bogus newline

* Use @andy-ms' cleanup annotateJSDocParameters
2018-10-24 16:14:52 -07:00
..
cancellationToken Set "rootDir" for cancellationToken project (#26498) 2018-08-16 15:12:38 -07:00
compiler Merge existing JSDoc comments (#27978) 2018-10-24 16:14:52 -07:00
harness Remove 'verify.fileAfterCodeFix', use 'verify.codeFix' (#28110) 2018-10-24 15:34:15 -07:00
instrumenter
jsTyping Add codefix to generate types for untyped module (#26588) 2018-09-18 11:47:29 -07:00
lib Test update of DOM. (#28050) 2018-10-23 15:24:56 -07:00
loc/lcl LEGO: check in for master to temporary branch. 2018-09-17 16:10:23 +00:00
server Add generateTypesForModule to public API (#28069) 2018-10-23 16:10:26 -07:00
services Merge existing JSDoc comments (#27978) 2018-10-24 16:14:52 -07:00
testRunner Add generateTypesForModule to public API (#28069) 2018-10-23 16:10:26 -07:00
tsc Fix the usage of createProgram in tsc 2018-09-14 12:44:02 -07:00
tsserver Merge pull request #22776 from amcasey/GH22607 2018-09-19 10:57:49 -07:00
typingsInstaller Fix GH#18217 issue for FileLog. (#27430) 2018-10-02 09:09:51 -07:00
typingsInstallerCore Remove jsTypings/semver.ts, add unit tests and logging 2018-08-22 12:38:16 -07:00
watchGuard
tsconfig-base.json Set rootDir in tsconfig-base.json (#26415) 2018-08-13 15:19:27 -07:00
tsconfig.json