Anders Hejlsberg
e9eb73bfe6
Accept new baselines
2019-03-17 17:39:16 -10:00
Anders Hejlsberg
b6aff98fd7
Add test relating type predicates with and without this parameters
2019-03-17 17:39:08 -10:00
Anders Hejlsberg
3dd0814069
Make IdentifierTypePredicate.parameterIndex index into signature.parameters
2019-03-17 15:58:13 -10:00
Anders Hejlsberg
e7afa6c0a9
Accept new baselines
2019-03-13 06:51:39 -07:00
Anders Hejlsberg
fd0d477519
Add test
2019-03-13 06:51:13 -07:00
Anders Hejlsberg
6656671536
Proper contravariance in type parameter promotion
2019-03-13 06:51:05 -07:00
Anders Hejlsberg
edf8954aae
Accept new baselines
2019-03-12 17:30:35 -07:00
Anders Hejlsberg
4f4d9f6819
Add test
2019-03-12 17:29:44 -07:00
Anders Hejlsberg
475b103314
Only promote type parameters when they're referenced in input positions
2019-03-12 17:29:19 -07:00
Anders Hejlsberg
ba95fcac87
Merge pull request #30334 from Microsoft/inferenceContextCleanup
...
Revise InferenceContext implementation
2019-03-12 10:13:55 -07:00
Anders Hejlsberg
12cd995e04
Change casts to non-null assertions
2019-03-12 06:59:25 -07:00
Anders Hejlsberg
4b2fc79451
Accept new baselines
2019-03-12 06:29:40 -07:00
Anders Hejlsberg
7f90ad1155
Add tests
2019-03-12 06:29:33 -07:00
Anders Hejlsberg
de3f5f90cd
Remove redundant typeParameters property from InferenceContext
2019-03-12 06:17:33 -07:00
Wenlu Wang
b97b1a8de6
add jsx factory and hold text in jsxtext node ( #29439 )
...
* add jsx factory and hold text in jsxtext node
* update jsxtext prop name and factory
2019-03-11 16:00:18 -07:00
Anders Hejlsberg
af8cf90e49
InferenceContext has-a (not is-a) mapper and has-a new nonFixingMapper
2019-03-11 15:56:03 -07:00
Wesley Wigham
3ba5aa9f60
Add regression test for #29692 ( #30325 )
2019-03-11 15:41:05 -07:00
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
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
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