Anders Hejlsberg
63387bb5e0
Error on circular constraints in mapped types
2016-11-18 06:13:04 -08:00
Anders Hejlsberg
2646828198
Type relations for generic mapped types
2016-11-17 20:18:00 -08:00
Mohamed Hegazy
9fec77551c
Merge pull request #12217 from subzey/feature/rest-loop-index
...
Codegen: Do not subtract 0 in arguments to rest array loop
2016-11-17 17:31:57 -08:00
Nathan Shively-Sanders
e81cfa10d6
Clean cache code and streamline other code
...
Cache only uses one property now. getJSDocs isn't generic and doesn't
take a function parameter any more. The code is overall easier to read.
2016-11-17 15:32:16 -08:00
Vladimir Matveev
a2b13d05f2
pass project name as a constructor parameter ( #12333 )
2016-11-17 15:12:32 -08:00
Nathan Shively-Sanders
ddffe209f9
Clean up getJSDocParameterTag
...
And delete its near-duplicate which was much less correct. The callers
that had to switch are slightly more complex and more correct now.
2016-11-17 14:26:38 -08:00
Nathan Shively-Sanders
5a05b94fb5
Clean up getJSDocs
...
1. Get rid of parent check.
2. Use a couple of nested functions, one of them a recursive worker.
2016-11-17 13:27:57 -08:00
Ryan Cavanaugh
c90a40c58f
Merge pull request #12317 from RyanCavanaugh/fix12302
...
Revert "fix #11670 , support type guards in NumberConstructor (#11722 )"
2016-11-17 11:17:04 -08:00
Nathan Shively-Sanders
ad9ad8f948
Clean up getJSDocTypeForVariableLikeDeclarationFromJSDocComment
...
Yeah, that name is way too long.
2016-11-17 11:08:11 -08:00
Anton Khlynovskiy
3e52f3dfe9
Codegen: Do not subtract 0 in arguments to rest array loop
2016-11-17 22:06:45 +03:00
Ryan Cavanaugh
29481f67f4
Revert "fix #11670 , support type guards in NumberConstructor ( #11722 )"
...
This reverts commit 4fbbbed321
.
2016-11-16 16:25:23 -08:00
Paul van Brenk
52ec508e27
Code fix for missing imports ( #11768 )
...
* Add codefix for missing imports + tests
* Re-order and cleanup
* refactor
* make tests pass
* Make import specifier for new imports more comprehensive
* Fix existing import cases
* refactor
* Fix multiple import statement case
* add multiple code fixes and code action filtering and polishing
* not using the generic verify method for import fixes.
* Correct insert position for new imports
* improve the code action filtering logic
* Fix line ending issue
* cache where we can
2016-11-16 16:01:16 -08:00
Nathan Shively-Sanders
eaf2f6ce69
Merge branch 'master' into getJSDoc-cleanup
2016-11-16 15:52:01 -08:00
Nathan Shively-Sanders
0b0b68e79a
Merge pull request #12312 from Microsoft/widen-literal-types-of-parameter-properties
...
Widen literal types of parameter properties
2016-11-16 15:51:42 -08:00
Nathan Shively-Sanders
5dbe5f4fbd
Widen literal types of parameter properties
2016-11-16 15:24:42 -08:00
Nathan Shively-Sanders
c7b0083820
Test widen literal types of parameter properties
2016-11-16 15:15:30 -08:00
Zhengbo Li
6f409b580e
Fix grammar issue ( #12096 )
...
* Fix grammar issue
* Improve the error message
* cr feedback
2016-11-16 14:13:29 -08:00
Andy
6e6bea6913
Merge pull request #12309 from Microsoft/issue_template
...
Update issue template
2016-11-16 14:11:56 -08:00
Nathan Shively-Sanders
074014e039
Check assignability: rest destructuring assignment
2016-11-16 13:41:25 -08:00
Nathan Shively-Sanders
641948fb0c
Test assignability checking of object rests
2016-11-16 13:41:18 -08:00
Andy Hanson
4e954a1962
Update issue template
2016-11-16 13:25:48 -08:00
Nathan Shively-Sanders
6a13fda60c
Merge pull request #12304 from Microsoft/improve-spread-helper-emit
...
Improve spread helper emit
2016-11-16 12:35:32 -08:00
Ron Buckton
d775f0f569
Improve diagnostic messages for imported helpers
2016-11-16 11:54:02 -08:00
Nathan Shively-Sanders
d566c3be43
Merge branch 'master' into improve-spread-helper-emit
2016-11-16 10:53:05 -08:00
Ron Buckton
3a95f9244b
Merge pull request #11874 from Microsoft/emitHelper
...
Move emit helpers into related transformers
2016-11-16 10:37:35 -08:00
Anders Hejlsberg
a5d9e9624d
Merge pull request #12301 from Microsoft/recursiveMappedTypes
...
Fix recursive mapped types
2016-11-16 10:23:14 -08:00
Nathan Shively-Sanders
e7bfd02ca9
Update baselines with new __assign emit
2016-11-16 10:15:57 -08:00
Ron Buckton
9a1a605f7c
Merge branch 'master' into emitHelper
2016-11-16 10:14:20 -08:00
Nathan Shively-Sanders
8d24712d85
Improve __assign emit:remove getOwnPropertySymbols
...
Since __assign defaults to Object.assign if present, our own helper will
never be used in ES6 and higher, and `getOwnPropertySymbols` is not
needed in ES5 and below because symbols don't exist there.
2016-11-16 10:14:16 -08:00
Ron Buckton
3110f40abf
Merge pull request #12250 from Microsoft/streamlineDestructuring
...
Streamline destructuring
2016-11-16 10:09:09 -08:00
Ron Buckton
cd023b2715
PR Feedback
2016-11-16 10:06:16 -08:00
Anders Hejlsberg
78726aeb3d
Accept new baselines
2016-11-16 06:49:15 -08:00
Anders Hejlsberg
c00a04d781
Add tests
2016-11-16 06:49:04 -08:00
Anders Hejlsberg
c5ab4735ac
Resolve upfront so recursive mapped types appear empty
2016-11-16 06:48:51 -08:00
Ron Buckton
63b154056e
Merge branch 'streamlineDestructuring' into emitHelper
2016-11-15 18:28:19 -08:00
Ron Buckton
ec95f4f0f7
Merge branch 'streamlineDestructuring' into emitHelper
2016-11-15 18:13:52 -08:00
Ron Buckton
3a67174314
Merge branch 'master' into streamlineDestructuring
2016-11-15 18:10:02 -08:00
Ron Buckton
a0da47fc89
Added missing places for visitParameterList
2016-11-15 18:09:47 -08:00
Ron Buckton
346d488c62
Merge branch 'master' into emitHelper
2016-11-15 17:13:57 -08:00
Ron Buckton
ba4f52c055
Merge remote-tracking branch 'origin/object-rest-emit-for-method-and-accessor-parameters' into streamlineDestructuring
2016-11-15 17:09:49 -08:00
Ron Buckton
a7d97c0ece
Merge pull request #12280 from Microsoft/fix12262
...
Fix argument list for new containing yield
2016-11-15 15:26:54 -08:00
Ron Buckton
8733973d1f
Merge branch 'streamlineDestructuring' into isolateObjectSpread
2016-11-15 14:50:42 -08:00
Ron Buckton
e389e08f71
Fix argument list for new containing yield
2016-11-15 14:04:07 -08:00
Ron Buckton
0dd96f52e8
Merge branch 'master' into streamlineDestructuring
2016-11-15 13:38:56 -08:00
Anders Hejlsberg
73ada7a78d
Merge pull request #12251 from Microsoft/fixTypePredicateStructuralMatch
...
Fix type predicates with structurally identical types
2016-11-15 13:20:35 -08:00
Anders Hejlsberg
0ba23483e8
Merge pull request #12276 from Microsoft/libMappedTypes
...
Predefined mapped types in lib.d.ts
2016-11-15 13:19:58 -08:00
Vladimir Matveev
4c2474463c
ports #12237 , #12258 and #12259 into master ( #12274 )
...
* treat failures to resolve module name as missing packages (#12237 )
* added extra check to prevent multiple installation of the same typing, added version field to telemetry event (#12258 )
* added extra check to prevent multiple installation of the same typing, added version field to telemetry event
* use ts.version
* switch to execSync to ensure that no install orders are interleaved (#12259 )
* Make sure version is public
* Update file with version string for nightly release
2016-11-15 12:53:46 -08:00
Ron Buckton
98e192f357
Move transformFunctionBody back into es2015
2016-11-15 12:32:43 -08:00
Nathan Shively-Sanders
d96a0ad2df
Merge pull request #12248 from Microsoft/object-spread-rest-fixes
...
Object spread rest fixes
2016-11-15 12:32:02 -08:00
Anders Hejlsberg
997c586252
Accept new baselines
2016-11-15 12:15:42 -08:00