10890 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
0e1be3efa1 Always enable evolving types in Javascript files 2016-11-18 15:52:34 -08:00
Nathan Shively-Sanders
90fa6335c8 Disable evolving types with implicit any
That is, without --noImplicitAny
2016-11-18 15:52:24 -08:00
Sheetal Nandi
707ed699bb Merge pull request #12366 from Microsoft/declarationsInFilesWithErrors
[Release 2.1] Fixes for #12291 and #12326: Declaration emit when there are errors in the source file
2016-11-18 15:46:58 -08:00
Anders Hejlsberg
dad5736306 Support apparent types for T[K] indexed access types 2016-11-18 15:24:47 -08:00
Anders Hejlsberg
47cf1ff5fc Error on circular constraints in mapped types 2016-11-18 15:24:32 -08:00
Anders Hejlsberg
398244177d Type relations for generic mapped types 2016-11-18 15:24:26 -08:00
Sheetal Nandi
6f1c3b3b49 Handle when type alias's type parameter extends type that wont get emitted in .d.ts
Fixes #12326
2016-11-18 14:58:17 -08:00
Sheetal Nandi
9ce544e229 Handle the scenario when heritage clause of interface is not entity name expression
Fixes #12291
2016-11-18 14:58:14 -08:00
Vladimir Matveev
30fde91970 use location of config file as initial location for automatic type reference inclusion if possible (#12341) (#12361) 2016-11-18 14:25:26 -08:00
Vladimir Matveev
5f6ec46bf8 pass project name as a constructor parameter (#12333) (#12337) 2016-11-17 16:49:16 -08:00
Mohamed Hegazy
efe2c56b5e Disable code fixes for now 2016-11-17 15:41:07 -08:00
Mohamed Hegazy
7da6391ca8 Revert versions after merge 2016-11-17 14:39:01 -08:00
Ryan Cavanaugh
29481f67f4 Revert "fix #11670, support type guards in NumberConstructor (#11722)"
This reverts commit 4fbbbed321baa58418b9379b418278d31400fe3e.
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
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
Zhengbo Li
6f409b580e Fix grammar issue (#12096)
* Fix grammar issue

* Improve the error message

* cr feedback
2016-11-16 14:13:29 -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
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
cd023b2715 PR Feedback 2016-11-16 10:06:16 -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
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
Anders Hejlsberg
d32196ff36 Add predefined mapped types and revise Object.freeze 2016-11-15 12:14:46 -08:00
Anders Hejlsberg
fe3f88cd08 Properly handle identity relation for mapped types 2016-11-15 12:14:02 -08:00
Nathan Shively-Sanders
bb46e789d5 Fix spread/rest emit for symbols.
It used the index of the symbol property as the name, not the symbol
itself.
2016-11-15 11:31:21 -08:00
Nathan Shively-Sanders
2496756aed Merge branch 'master' into object-spread-rest-fixes 2016-11-15 11:19:01 -08:00
Nathan Shively-Sanders
47f331926e Improve rest/spread emit for symbols
Previously, symbols were not handled.
2016-11-15 10:58:33 -08:00
Paul van Brenk
1924298d87 Merge branch 'master' into unusedidentifier 2016-11-15 10:17:37 -08:00
Nathan Shively-Sanders
b4d3bca32b Object rest emit for method and accessor parameters
I missed these before, so emit was incorrect for object rest in a method
or accessor parameter.
2016-11-15 09:50:29 -08:00
Nathan Shively-Sanders
b9fa06f90b Address PR commennts
Update baselines with smaller emit as part of that.
2016-11-15 09:10:55 -08:00
Nathan Shively-Sanders
a74e9d8ccf Merge pull request #12158 from Microsoft/fix-literal-comparability-in-relational-comparison-operators
Fix literal comparability in relational comparison operators
2016-11-15 08:24:06 -08:00
Ron Buckton
dff9849ac9 Make multiLine optional in convertToFunctionBody 2016-11-14 18:33:21 -08:00
Ron Buckton
ddcd22e4de Removed esnext dependency on convertForOf/transformFunctionBody in factory 2016-11-14 18:30:42 -08:00
Anders Hejlsberg
d2c0952801 Revert type predicates to not have instanceof special casing 2016-11-14 17:13:49 -08:00
Mohamed Hegazy
ddf2ad4ba1 Merge pull request #12247 from Microsoft/fix10840
Fix missing alias for decorated classes in es5
2016-11-14 17:09:33 -08:00