Commit graph

27090 commits

Author SHA1 Message Date
Wesley Wigham ca9566fcde
Forbid contravariant inferences to conditional type branches (#30287) 2019-03-11 15:21:03 -07:00
Anders Hejlsberg 281eeac249
Merge pull request #30292 from Microsoft/fixRestSignatureRelation
Fix relation of signatures with rest parameter
2019-03-11 13:07:22 -07:00
TypeScript Bot e906d23c87 Update user baselines (#30317) 2019-03-11 07:29:12 -07:00
Anders Hejlsberg 42b6ef0c96 Rename contextualMapper to inferenceContext (which it always is) 2019-03-11 06:45:26 -07:00
Titian Cernicova-Dragomir d433042386 Fixed isVariadic handling when signature parameters are expanded for itemInfoForParameters 2019-03-11 02:55:10 +02:00
Titian Cernicova-Dragomir 88babf2a90 Merge remote-tracking branch 'remotes/origin/master' into GH-26563 2019-03-11 02:31:07 +02:00
Anders Hejlsberg 62b0d984bf
Merge pull request #30303 from Microsoft/fixSignatureQuickInfo
Fix quick info for higher order generic functions
2019-03-10 09:02:10 -07:00
Anders Hejlsberg cc9e9ecb8e Fix signature cloning to ensure target and mapper are propagated 2019-03-09 18:05:44 -08:00
Anders Hejlsberg 8e2a154680
Merge pull request #30299 from Microsoft/showExpandedParameters
Show expanded parameter lists in signature help
2019-03-09 13:16:05 -08:00
Anders Hejlsberg 91996b1901 Accept new baselines 2019-03-09 13:07:07 -08:00
Anders Hejlsberg 79813b8ece Show expanded parameter lists in signature help 2019-03-09 12:23:57 -08:00
Anders Hejlsberg fcc2d22cf5 Fix case where getParameterTypeAtPosition didn't return undefined for out of bounds 2019-03-09 06:55:14 -08:00
Ryan Cavanaugh c9fd1c3728
Merge pull request #30278 from Microsoft/fasterhash
Improve performance of fallback hash function
2019-03-09 06:36:04 -08:00
Sheetal Nandi 927c10ae31 Add output declaration files from referenced project into program if module: none 2019-03-08 17:48:14 -08:00
Sheetal Nandi 409e076425
Merge pull request #30232 from Microsoft/incrementalWithNormalTsc
Use .tsbuildinfo to build with tsc and tsc --w when not using build mode
2019-03-08 17:18:19 -08:00
Sheetal Nandi f8ec54c223 Rename setGetSourceFileAsHashVersioned 2019-03-08 16:52:07 -08:00
Ryan Cavanaugh 156566311b Rewrite fallback hash to be faster 2019-03-08 16:38:02 -08:00
Sheetal Nandi f82cb2370f Udpate LKG 2019-03-08 16:35:58 -08:00
Sheetal Nandi 0b202b2095 Fix tests after rebase 2019-03-08 16:33:53 -08:00
Sheetal Nandi e41cbb6316 Add incremental to normal tsc 2019-03-08 15:59:59 -08:00
Sheetal Nandi 6c0b4568a0 Enable incremental program updates through tsbuildinfo in tsc --watch mode 2019-03-08 15:56:09 -08:00
Sheetal Nandi 8527be9ea8 Read program from buildInfo 2019-03-08 15:56:08 -08:00
Sheetal Nandi ec47859624 Make watch use sourceFileHash so it can be used with --incremental as well 2019-03-08 15:56:08 -08:00
Sheetal Nandi 97fbc87e98
Merge pull request #29813 from Microsoft/incrementalBuildInfo
Build .tsbuildinfo file when building using tsc --b
2019-03-08 15:49:44 -08:00
Wesley Wigham a9ad94ab3c
Conditional type simplifications & Globally cached conditional type instances (#29437)
* Introduce simpliciations for extract/exclude-like conditional types and fix restrictive instantiations

* Add test for the common simplifications

* unify true branch constraint generation logic and true branch simplification

* Use identical check on instantiated types

* Add late-instantiate conditionals to test

* Globally cache conditional type instantiations ala indexed access types

* Handle `any` simplifications

* Factor empty intersection check into function

* Modifify conditional type constraints to better handle single-branch `any` and restrictive type parameters

* Add test case motivating prior commit

* Fix lint

* Factor logic into worker vs cacheing function

* Remove now unneeded casts
2019-03-08 15:33:12 -08:00
Sheetal Nandi b2cda168fd Update LKG 2019-03-08 15:20:37 -08:00
Sheetal Nandi 68e28da141 Build project if existing project was built with different compiler version 2019-03-08 15:14:34 -08:00
Ron Buckton 6607e00b8f
Merge pull request #30259 from Microsoft/transformFlagCleanup
Transform flag cleanup
2019-03-08 15:08:26 -08:00
Sheetal Nandi ecb2ce429d Add tests that will verify that all rebuilding with new compiler version builds again 2019-03-08 14:19:41 -08:00
Wesley Wigham 58e847abb5
Add assignability rule relaxing the assignability of partial mapped types (#30112)
* Add assignability rule relaxing the assignability of partial mapped types

* Update comment
2019-03-08 14:01:27 -08:00
Wesley Wigham 45a6cb7066
Reset toplevel flag when higher priority inference takes place (#30265) 2019-03-08 13:57:43 -08:00
Sheetal Nandi 409d6c911e Add compiler version to buildInfo 2019-03-08 13:32:43 -08:00
Sheetal Nandi d4cfa41931 To test platform independent buildInfo baselines, move the logic to writeFile of SolutionBuilderHost 2019-03-08 13:00:29 -08:00
Sheetal Nandi 990b199ebd Merge branch 'master' into incrementalBuildInfo 2019-03-08 11:42:19 -08:00
Anders Hejlsberg d59e51b063
Merge pull request #30215 from Microsoft/higherOrderFunctionTypeInference
Higher order function type inference
2019-03-08 10:41:32 -08:00
Wesley Wigham a887c6ba40
Remove unused (and sometimes broken) targets and scripts (#30054)
* Remove unused (and sometimes broken) targets and scripts

* Remove browser-specific harness code
2019-03-08 10:34:35 -08:00
Sheetal Nandi fbfd349127 Change to debug fail instead of assert never 2019-03-08 10:22:44 -08:00
Wesley Wigham e982240500
Instantiating a signature in the context of another should infer from return type predicates if they match up (#30242)
* Instantiating a signature in the context of another should infer from return type predicates if they match up

* Invert condition per PR feedback
2019-03-07 17:39:58 -08:00
Wesley Wigham 4c9ad08610
Add fix for webpack history merge bug (#29339)
* Add fix for webpack history merge bug

* Add test case
2019-03-07 13:34:28 -08:00
Sheetal Nandi 3f7357d37f
Merge pull request #30247 from Microsoft/recursiveDirectoryIgnore
Ignore the directories or files in node_modules starting with "." and any file or directory starting with ".git" even in the recursive directory watching logic
2019-03-07 11:24:03 -08:00
Ron Buckton 1c0f9a8ce3 Renumber transform flags 2019-03-07 10:52:17 -08:00
Ron Buckton 8e5178d6e6 Merge branch 'master' into transformFlagCleanup 2019-03-07 10:46:38 -08:00
Anders Hejlsberg a9e924b6f0 Fix check for function type (allow checked type to have overloads) 2019-03-07 07:06:48 -08:00
Sheetal Nandi 825cde2a4e
Merge pull request #30244 from Microsoft/declarationEmitError
Handle error when type parameter of mapped type uses private type
2019-03-07 00:16:22 -08:00
Ron Buckton 1f212ec265 Remove DestructuringAssignment and Generator flags 2019-03-06 15:04:13 -08:00
Sheetal Nandi ec2ee9ff3a Ignore anything starting with ".git"
Fixes #29782
2019-03-06 15:00:26 -08:00
Sheetal Nandi 79a1f29727 In recursive directory watching ignore folders and files in node_modules starting with "."
Fixes #30004
2019-03-06 14:46:14 -08:00
Ron Buckton cc9e2f4e57 Remove Super/ContainsSuper transform flags 2019-03-06 14:33:42 -08:00
Sheetal Nandi fe9f42480a Handle error when type parameter of mapped type uses private type
Fixes #30201
2019-03-06 13:30:48 -08:00
Ron Buckton 2fb0b85cf0 Restore ContainsLexicalThsi flag for performance 2019-03-06 11:34:28 -08:00