Anders Hejlsberg
7798f532df
Fix crash caused by assertion with evolving array type ( #38398 )
...
* Properly finalize evolving array type in getTypeAtFlowCall
* Add regression test
2020-05-07 14:05:57 -07:00
TypeScript Bot
f08863d2fc
Update user baselines ( #38128 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-05-07 13:05:02 -07:00
csigs
35d4a063eb
LEGO: Merge pull request 38393
...
LEGO: Merge pull request 38393
2020-05-07 09:11:27 -07:00
csigs
1d2414822d
LEGO: check in for master to temporary branch.
2020-05-07 16:10:38 +00:00
Eli Barzilay
29cf049e61
moveToNewFile: handle namespace imports too
...
Fixes #35591
2020-05-07 11:46:36 -04:00
Jack Williams
05d59a1f1a
Unify logic in typeof narrowing ( #33434 )
2020-05-06 15:15:24 -07:00
csigs
ab63176052
LEGO: Merge pull request 38375
...
LEGO: Merge pull request 38375
2020-05-06 15:11:42 -07:00
csigs
c08b020ae9
LEGO: check in for master to temporary branch.
2020-05-06 22:10:57 +00:00
Alexander T
683b3ec058
feat(37782): 'declare method' quick fix for adding a private method ( #37806 )
...
* feat(37782): add quick-fix action to declare a private method for names that start from underscore
* better merge order in messages json
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-05-06 15:10:02 -07:00
Wenlu Wang
e66ce879a9
expose jsdoc factory ( #29539 )
...
* expose jsdoc factory
* refactor jsdoc factory
* correctly jsdoc factory types
* update jsdoc factory
* Add check for delete expression must be optional
* accept new basseline
* Revert "Add check for delete expression must be optional"
This reverts commit 76937c3b1a5c3acbb3da8e449f5f88978be4eed0.
* remove newline
* make linter happy
* Add deprecated comment
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-05-06 15:06:12 -07:00
Wenlu Wang
8d78984558
Add support of contextual quick info ( #37451 )
...
* Add support of contextual quick info
* Avoid document comment map
* Make lint happy
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-05-06 15:05:31 -07:00
Nathan Shively-Sanders
35c1ba67ba
Update LKG 2020 05 06 ( #38371 )
...
* Update LKG
* remove now-extraneous casts
2020-05-06 14:42:05 -07:00
Josh Goldberg
be2eb8a2e1
Allowed comment directives to be multiline ( #38228 )
...
* Allowed comment directives to be multiline
* Added tests, and perhaps fixed a test runner bug?
* I think it's going to need a consistent variable to loop over
* Used dynamically computed indexes in verifies
* Added multiline tests
* Increased flexibility for multiline comment parsing
* Undid a couple of formatting changes; removed backslashes from multiline regexp
* Added baseline tests for multiline comment skipping
Co-authored-by: Orta Therox <orta.therox@gmail.com>
2020-05-06 13:09:29 -07:00
Ron Buckton
4b08c0582d
Fix regression in name resolution in parameter ( #38351 )
2020-05-06 12:04:28 -07:00
Alexander T
ec93a7cf7b
fix(36055): forbid union type with invalid types in the 'in' operator ( #37786 )
2020-05-06 11:41:50 -07:00
Andrei Arkhipov
8746d1708f
Updating dependencies ( #37788 )
...
* Bump fs-extra from 6.0.1 to 9.0.0
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra ) from 6.0.1 to 9.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases )
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/6.0.1...9.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump azure-devops-node-api from 8.1.1 to 10.1.0
Bumps [azure-devops-node-api](https://github.com/Microsoft/azure-devops-node-api ) from 8.1.1 to 10.1.0.
- [Release notes](https://github.com/Microsoft/azure-devops-node-api/releases )
- [Commits](https://github.com/Microsoft/azure-devops-node-api/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump eslint-plugin-jsdoc from 21.0.0 to 22.1.0
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) from 21.0.0 to 22.1.0.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v21.0.0...v22.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump @typescript-eslint/eslint-plugin from 2.18.0 to 2.26.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 2.18.0 to 2.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.26.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump eslint-plugin-import from 2.20.0 to 2.20.2
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.20.0 to 2.20.2.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.20.0...v2.20.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump eslint-formatter-autolinkable-stylish from 1.1.1 to 1.1.2
Bumps [eslint-formatter-autolinkable-stylish](https://github.com/a-tarasyuk/eslint-formatter-autolinkable-stylish ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/a-tarasyuk/eslint-formatter-autolinkable-stylish/releases )
- [Commits](https://github.com/a-tarasyuk/eslint-formatter-autolinkable-stylish/compare/v1.1.1...v1.1.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump @typescript-eslint/parser from 2.18.0 to 2.27.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 2.18.0 to 2.27.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.27.0/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.27.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump @typescript-eslint/experimental-utils from 2.18.0 to 2.27.0
Bumps [@typescript-eslint/experimental-utils](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/experimental-utils ) from 2.18.0 to 2.27.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/experimental-utils/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.27.0/packages/experimental-utils )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-06 11:38:49 -07:00
csigs
4f4b44cc20
LEGO: Merge pull request 38355
...
LEGO: Merge pull request 38355
2020-05-05 21:11:30 -07:00
csigs
c33d6044fa
LEGO: check in for master to temporary branch.
2020-05-06 04:10:41 +00:00
Anders Hejlsberg
2524fb164a
Consistent narrowing by discriminant ( #38311 )
...
* Consistent requirements for narrowing by discriminant
* Add tests
2020-05-05 20:06:07 -07:00
Alexander T
c219fdae08
fix(37703): forbid required parameter after optional ( #38155 )
2020-05-05 10:29:17 -07:00
Alexander T
d86bdf4e5c
add outlining spans for the tuple type ( #38179 )
2020-05-05 09:48:33 -07:00
Alexander T
2bdc8fdc94
add outlining spans for array destructuring elements ( #38191 )
2020-05-05 09:29:24 -07:00
Marcel Laverdet
44c6cf74cb
Fix updateBinary operator parameter ( #38129 )
...
* Fix `updateBinary` `operator` parameter
There is an issue in `updateBinary` where attempting to update
`operator` without updating `left` or `right` results in a silent no-op.
* Use defaulted parameter in `updateBinary`
2020-05-05 09:05:02 -07:00
Daniel Rosenwasser
94c5c3ff47
Add missing arguments to typeToTypeNode. ( #38336 )
...
* Add missing arguments to typeToTypeNode.
* Use returnTypeNode as the enclosingDeclaration.
* Add a test.
2020-05-04 19:32:27 -07:00
Anders Hejlsberg
e6390efb01
Properly handle private/protected members in unions of object types ( #38277 )
...
* Property handle private/protected properties in unions of object types
* Add regression test
2020-05-04 15:28:00 -07:00
Wesley Wigham
d9c9c9d9e4
Harden node builder APIs to no longer return undefined for a node when NodeBuilderFlags.IgnoreErrors is provided ( #38273 )
2020-05-04 14:47:39 -07:00
Sheetal Nandi
aa37b28246
Fix incorrect line text computation to stop comment directive searching ( #38296 )
...
Fixes #38289
2020-05-04 13:02:54 -07:00
Anders Hejlsberg
a09470f013
Fix index signatures on unions of intersections ( #38278 )
...
* Add missing getApparentType call
* Add regression tests
2020-05-04 12:46:14 -07:00
Alexander T
5e0e254ef7
fix(38177): add auto-import for missing argument type in new functions/methods ( #38213 )
2020-05-04 12:37:04 -07:00
Eli Barzilay
ba02f4303e
Make getAwaitedType private
...
Also, fix an additional baseline change and break up huge line.
2020-05-04 13:18:52 -04:00
Alexander T
0503da225d
feat(36266): add a quick fix for incorrect return types in async functions
2020-05-04 13:18:52 -04:00
Eli Barzilay
ca234d2b60
Adjust to newer changes
2020-05-04 13:14:48 -04:00
Leko
275ed548df
disallows exponentials with BigInts for targets lower than ES2016
2020-05-04 13:14:48 -04:00
Wesley Wigham
5b0194b311
Fix jsdoc variadic type nodes not being remapped to equivalent TS in output ( #38276 )
2020-05-02 01:43:59 -07:00
csigs
b57dd52afa
LEGO: Merge pull request 38280
...
LEGO: Merge pull request 38280
2020-04-30 15:11:27 -07:00
csigs
e746c6883b
LEGO: check in for master to temporary branch.
2020-04-30 22:10:46 +00:00
Andrew Branch
53320f59a4
Fix crash on duplicate default exports ( #38272 )
2020-04-30 12:21:02 -07:00
Jack Works
6f7faa7636
Fix: convertFunctionToEs6Class cannot recognize x.prototype = {} pattern ( #35219 )
...
* fix: convertFunctionToEs6Class cannot recognize `x.prototype = {}` pattern
* test: add test for convert fn to es6
* chore: add more tests
* chore: move tests around
* chore: make code more clear
2020-04-30 11:06:46 -07:00
csigs
10fc8c379f
LEGO: Merge pull request 38268
...
LEGO: Merge pull request 38268
2020-04-30 09:11:29 -07:00
csigs
836d9aaac0
LEGO: check in for master to temporary branch.
2020-04-30 16:10:36 +00:00
csigs
64d6a1e729
LEGO: Merge pull request 38253
...
LEGO: Merge pull request 38253
2020-04-29 15:11:45 -07:00
csigs
10fd1fa347
LEGO: check in for master to temporary branch.
2020-04-29 22:10:59 +00:00
csigs
70b9b08b4e
LEGO: Merge pull request 38245
...
LEGO: Merge pull request 38245
2020-04-29 09:11:42 -07:00
csigs
6916387597
LEGO: check in for master to temporary branch.
2020-04-29 16:10:44 +00:00
Orta
0258db2210
Adds support for looking up past Blocks in expando objects ( #38031 )
...
* Adds support for looking up past Blocks in expando objects
* Adds JS tests to validate the JS parsing also works
* Get the top level block expando tests green
2020-04-29 10:35:33 -04:00
Anders Hejlsberg
d9ad27f2dd
Early couldContainTypeVariables check in instantiateType ( #37844 )
...
* Shared early couldContainTypeVariables check in instantiateType
* Defer creation of map object in createUnionOrIntersectionProperty
* Types with top-level non-generic type alias reference no type variables
2020-04-28 17:02:52 -07:00
Anders Hejlsberg
3919042c7f
Control flow for constructor initialized properties ( #37920 )
...
* Use CFA to determine types of properties declared by this.xxx assignments
* Accept new baselines
* Also use CFA in constructor functions
* Accept new baselines
* Fix lint error
* Only widen fresh literal types in CFA of assignment to auto-typed
* Auto-typing for declared properties with no type annotation or initializer
* Add optionality if declaration includes '?' modifier
* Always use CFA for properties with no initializer in .js files
* Small fix
2020-04-28 16:59:03 -07:00
Anders Hejlsberg
a0ebd2c26e
Guard against recursion in inferTypeForHomomorphicMappedType ( #38224 )
...
* Guard against recursion in inferTypeForHomomorphicMappedType
* Add regression test
2020-04-28 16:56:35 -07:00
Anders Hejlsberg
16d2eb7075
Error on this.xxx access of previously declared but uninitialized property ( #38030 )
...
* Error on this.xxx access of previously declared but uninitialized property
* Add tests
* Accept new baselines
2020-04-28 12:52:14 -07:00
Andrew Casey
9d8a70c809
Include a stack in InitializationFailedResponse ( #38223 )
...
* Include a stack in InitializationFailedResponse
* Update API baselines
2020-04-28 11:12:38 -07:00