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
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
Alexander T
d20132026e
remove sudo: false setting from travis.yml ( #30231 )
2019-03-05 15:06:30 -08:00
Sheetal Nandi
e55fbffed6
Rename the request as updateOpen
2019-03-05 14:34:08 -08:00
Sheetal Nandi
67071723aa
Fix unnecessary additional deletion paths from cleanLssl target
2019-03-05 14:14:02 -08:00
Sheetal Nandi
0469cc6c96
Update LKG
2019-03-05 13:58:39 -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
Sheetal Nandi
69f65f5445
Update LKG
2019-03-05 12:58:12 -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
cde94441d3
Accept new baselines
2019-03-05 06:10:21 -08:00
Anders Hejlsberg
ad823daabb
Consistently defer generic functions to second type inference pass
2019-03-05 06:09:54 -08:00
TypeScript Bot
a5f93ef7a4
Update user baselines ( #30211 )
2019-03-04 13:19:39 -08:00
Anders Hejlsberg
bf326aaabf
Fix lint error
2019-03-04 11:15:09 -08:00
Anders Hejlsberg
5fe8ebb502
Accept new baselines
2019-03-04 11:07:11 -08:00
Anders Hejlsberg
22c934a065
Add tests
2019-03-04 11:07:02 -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
Gabriela Araujo Britto
8c4ab69d09
add test for non-transient symbol
2019-03-04 09:34:04 -08:00