19832 Commits

Author SHA1 Message Date
Gabriela Araujo Britto
b29ed70ddb Merge branch 'master' into fixFindAllRefsOfDefaultExport 2019-03-13 16:04:23 -07:00
Sheetal Nandi
342616781e
Merge pull request #30381 from Microsoft/mapConstructor
Fix map constructor to accept readonly tuple
2019-03-13 15:24:22 -07:00
Wesley Wigham
5d08b68122
Fix react-redux break on DT (#30375)
* Forbid reentrancy in conditional type creation (force deferal on occurance)

* Add repro from react-redux, accept updated baselines
2019-03-13 15:21:46 -07:00
Gabriela Araujo Britto
c130fde79e fix check for default export 2019-03-13 15:10:54 -07:00
Sheetal Nandi
e42f37fccd
Merge pull request #30374 from Microsoft/jsonSourceFile
Correct the generation of output file names for tsc --b
2019-03-13 15:00:59 -07:00
Sheetal Nandi
027d65a920 Fix map constructor to accept readonly tuple
Fixes #29721
2019-03-13 14:52:58 -07:00
Sheetal Nandi
b6d520a7a5 Handle recursive symlinks when matching file names
Fixes #28842
2019-03-13 12:30:47 -07:00
Sheetal Nandi
812ff98f61 Correct the generation of output file names for tsc --b
Fixes #30356
2019-03-13 11:23:14 -07:00
Sheetal Nandi
b762d6205e
Merge pull request #30344 from Microsoft/uptoDate
Set oldestOutputFileName in uptodate status when updating just timestamps of output
2019-03-13 10:54:59 -07:00
Sheetal Nandi
8800cc2d15
Merge pull request #30288 from Microsoft/nonModuleNonPrepend
Add output declaration files from referenced project into program if module: none
2019-03-13 10:54:35 -07:00
Sheetal Nandi
1463b327fc
Merge pull request #30348 from Microsoft/nonIncrementalPrepend
Schedule bundle update only if project supports incremental build
2019-03-12 18:43:50 -07:00
Sheetal Nandi
73f6886cd7 Mark tsc.release as incremental 2019-03-12 16:14:23 -07:00
Sheetal Nandi
2477159782 Do not schedule updating bundle if the buildInfo file wont be generated for the project
Fixes #30346
2019-03-12 16:08:01 -07:00
Collins Abitekaniza
7b55d1846b Giving too many arguments should error on the first argument that exceeds arity (#27982)
* span on first arg that exceeds arity

* refactor baseline

* handle cases for spread arguments

* refactor + add coverage for tuple spread cases

* create diagnostic on NodeArray of exceeding args

* test function overloading
2019-03-12 15:57:12 -07:00
Matt McCutchen
ab8153602a Fix mixin logic to preserve at least one constructor type even when the (#27701)
intersection also contains non-constructor types.

Fixes #17388.
2019-03-12 14:30:43 -07:00
Matt McCutchen
6c6f216d0d Handle generic mapped types in getTypeOfPropertyOfContextualType. (#27586)
* Handle generic mapped types in getTypeOfPropertyOfContextualType.

The changes to existing baselines look acceptable to me.

Fixes #24694.

* Minor reorganization, add test case from @yortus
2019-03-12 14:13:32 -07:00
Sheetal Nandi
ffeb38456f Set oldestOutputFileName in uptodate status when updating just timestamps of output
Fixes #29875
2019-03-12 13:30:17 -07:00
Wenlu Wang
d2476759e2 add related error span for default exports (#25396)
* add related error span for default exports

* accept baseline

* stash

* accept baseline and fix lint

* update testcase

* Add missing semicolon
2019-03-12 13:15:14 -07:00
Wenlu Wang
bd27296ba6 improve stripInternal with inline comments (#23611)
* improve stripInternal with inline comments

* fix lint

* stash

* simptify StripInternal

* fix internal type declaration

* fix internal type declaration again

* accept baseline

* refactor inline

* simply prev check

* remove getTrailingCommentRangesOfNode

* Merge implementation with new isInternalDeclaration method, accept lkg-based baseline
2019-03-12 13:14:47 -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
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
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
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
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
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
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
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