19797 Commits

Author SHA1 Message Date
Sheetal Nandi
f8ec54c223 Rename setGetSourceFileAsHashVersioned 2019-03-08 16:52:07 -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
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
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
Gabriela Britto
d2364f555f
Merge pull request #30089 from Microsoft/convert-to-named-parameters
Convert to named parameters
2019-03-06 09:33:01 -08:00
Anders Hejlsberg
b34fe67ac5 Fix issue of more inferences leading to worse results 2019-03-05 17:49:58 -08:00
Anders Hejlsberg
6d882513ea Minor change to heuristic for deferring generic calls 2019-03-05 17:45:09 -08:00
Gabriela Araujo Britto
60b2d6a2f5 remove unnecessary closures 2019-03-05 16:56:30 -08:00
Sheetal Nandi
d62c8a403c
Merge pull request #30107 from Microsoft/applyChangesToOpenFiles
Add UpdateOpen to request
2019-03-05 15:54:34 -08:00
Sheetal Nandi
e55fbffed6 Rename the request as updateOpen 2019-03-05 14:34:08 -08:00
Sheetal Nandi
67930ead81 Store semantic diagnostics as well (for future tsc without build but incremental) 2019-03-05 13:51:44 -08:00
Anders Hejlsberg
6c790c02d9 Remove unnecessary excludeArgument array and getExcludeArgument function 2019-03-05 12:42:54 -08:00
Sheetal Nandi
6e1e1e7bd5 Merge branch 'master' into incrementalBuildInfo 2019-03-05 12:02:27 -08:00
Sheetal Nandi
ac55310c48 Fix prologue emitting in case of modules with --out scenario 2019-03-05 11:48:09 -08:00
Sheetal Nandi
b879b435ef Add tests to verify output of --out with modules as output 2019-03-05 11:08:44 -08:00
Anders Hejlsberg
ad823daabb Consistently defer generic functions to second type inference pass 2019-03-05 06:09:54 -08:00
Anders Hejlsberg
bf326aaabf Fix lint error 2019-03-04 11:15:09 -08:00
Anders Hejlsberg
549c684517 Minor fix 2019-03-04 11:02:55 -08:00
Anders Hejlsberg
919ade1dbd Improve scheme for creating unique type parameter names 2019-03-04 10:57:08 -08:00
Anders Hejlsberg
c344ef3123 Infer higher order function types when possible 2019-03-03 14:34:38 -08:00
Anders Hejlsberg
91f8fc60f1 Defer calls to generic functions returning generic functions 2019-03-02 10:34:23 -08:00
Anders Hejlsberg
3afe0a4d43 Fix out-of-bounds issue in getParameterNameAtPosition 2019-03-01 16:34:09 -08:00
Sheetal Nandi
d78335581e Update gulp to build using this branch 2019-03-01 13:44:14 -08:00