4974 Commits

Author SHA1 Message Date
Mohamed Hegazy
72df02cbbd Add function 2016-11-21 23:27:18 -08:00
Mohamed Hegazy
8a334ac00d Add special handeling for function and array in Object.freeze 2016-11-21 23:13:22 -08:00
Anders Hejlsberg
77c0540433 Merge pull request #12425 from Microsoft/keyofOnlyStrings
Change 'keyof T' to always be string-like
2016-11-21 15:51:00 -08:00
Anders Hejlsberg
b662a8b319 Add test case 2016-11-21 13:10:42 -08:00
Vladimir Matveev
4c6b94f16f wrap subexpressions of conditional expressions in parens if necessary (#12420) 2016-11-21 12:52:13 -08:00
Anders Hejlsberg
5498a95245 Update tests 2016-11-21 11:42:38 -08:00
Vladimir Matveev
b060107b51 recompute character to column when comparing indentations (#12375)
recompute character to column when comparing indentations
2016-11-21 11:34:09 -08:00
Anders Hejlsberg
998246af9c Merge pull request #12389 from Microsoft/keyofRelations
Minor fixes for 'keyof T' and indexed acces types
2016-11-20 15:54:41 -08:00
Anders Hejlsberg
a439e62138 Add tests 2016-11-19 15:10:22 -08:00
Nathan Shively-Sanders
71b28a024a Merge pull request #12310 from Microsoft/check-object-rest-destructuring-assignment
Check object rest destructuring assignment
2016-11-18 16:01:25 -08:00
Nathan Shively-Sanders
b514d7c91c Merge pull request #12362 from Microsoft/disable-evolving-types-with-implicit-any
Disable evolving types with implicit any
2016-11-18 15:39:02 -08:00
Sheetal Nandi
f626ff777f Merge pull request #12363 from Microsoft/declarationsInFilesWithErrors
Fixes for #12291 and  #12326: Declaration emit when there are errors in the source file
2016-11-18 14:57:09 -08:00
Nathan Shively-Sanders
7750fe1a7c Always enable evolving types in Javascript files 2016-11-18 14:13:56 -08:00
Sheetal Nandi
aa556502f3 Handle when type alias's type parameter extends type that wont get emitted in .d.ts
Fixes #12326
2016-11-18 14:02:57 -08:00
Nathan Shively-Sanders
8674d92bdb Disable evolving types with implicit any
That is, without --noImplicitAny
2016-11-18 13:51:44 -08:00
Anders Hejlsberg
a789990781 Add tests 2016-11-18 13:31:10 -08:00
Sheetal Nandi
cbde25f229 Handle the scenario when heritage clause of interface is not entity name expression
Fixes #12291
2016-11-18 13:11:33 -08:00
Anders Hejlsberg
075a3eb98f Add new tests 2016-11-18 06:27:45 -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
c7b0083820 Test widen literal types of parameter properties 2016-11-16 15:15:30 -08:00
Nathan Shively-Sanders
641948fb0c Test assignability checking of object rests 2016-11-16 13:41:18 -08:00
Anders Hejlsberg
a5d9e9624d Merge pull request #12301 from Microsoft/recursiveMappedTypes
Fix recursive mapped types
2016-11-16 10:23:14 -08:00
Anders Hejlsberg
c00a04d781 Add tests 2016-11-16 06:49:04 -08:00
Ron Buckton
3a67174314 Merge branch 'master' into streamlineDestructuring 2016-11-15 18:10:02 -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
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
Anders Hejlsberg
04a0f55e96 Revise tests 2016-11-15 12:15:11 -08:00
Nathan Shively-Sanders
2496756aed Merge branch 'master' into object-spread-rest-fixes 2016-11-15 11:19:01 -08:00
Paul van Brenk
1924298d87 Merge branch 'master' into unusedidentifier 2016-11-15 10:17:37 -08:00
Nathan Shively-Sanders
498d978c21 Test object rest parameter emit: methods/accessors 2016-11-15 09:55:56 -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
Anders Hejlsberg
6d28595e5a Add repro test 2016-11-14 17:06:46 -08:00
Nathan Shively-Sanders
fe66d9ef9f Add spread tests and update rest tests 2016-11-14 16:23:40 -08:00
Nathan Shively-Sanders
e50adc0904 Merge pull request #12223 from Microsoft/fix-object-spread-rest-async-emit
Fix object spread+async emit
2016-11-14 16:15:15 -08:00
Mohamed Hegazy
1164df2c6d Merge pull request #12197 from Microsoft/commentsSuperCallReturns
Fix up comments for super calls rewritten as returns
2016-11-14 16:10:03 -08:00
Ron Buckton
06a13b9d10 Fix string constituent check in checkElementTypeOfArrayOrString 2016-11-14 15:22:04 -08:00
Mohamed Hegazy
2827b370cc Merge pull request #12207 from ethanresnick/precise-object-entry-types
More precise Object.entries type declarations
2016-11-14 13:55:27 -08:00
Mohamed Hegazy
a0338d15e1 Ignore optionality in the comparable relationship (#12202)
* Added tests.

* Accepted baselines.

* Avoid checking for optionality in comparability checks.

* Accepted baselines.
2016-11-14 10:47:48 -08:00
Nathan Shively-Sanders
0adc76bd2b Test object spread+async emit & nested spread emit 2016-11-14 08:54:32 -08:00
Nathan Shively-Sanders
0cda239e1c Merge pull request #12156 from Microsoft/fix-jsdoc-missing-space-from-bad-indent
Fix jsdoc missing space from bad indent
2016-11-14 08:21:40 -08:00
Anders Hejlsberg
f437c8f318 Merge pull request #12114 from Microsoft/mappedTypes
Mapped types
2016-11-13 15:39:32 -08:00
Anders Hejlsberg
85702197b4 Add regression test 2016-11-13 08:35:40 -08:00
Ethan Resnick
ea33d6e501 More precise Object.entries type declarations
We can leverage the new index type queries and indexed access types
from #11929 to get better type inference for Object.entries.
2016-11-13 02:59:50 -05:00
Daniel Rosenwasser
ffed2484d3 Added tests. 2016-11-12 12:46:01 -08:00
Anders Hejlsberg
9ac7667d5c Address CR feedback 2016-11-12 08:55:23 -08:00
Daniel Rosenwasser
486f156a69 Added test. 2016-11-12 01:40:37 -08:00
Andy Hanson
1e92a9803b Merge branch 'master' into path_mapping_exact_extension 2016-11-11 14:11:40 -08:00
Andy Hanson
a0e4ab94f1 Allow JS files 2016-11-11 13:59:13 -08:00
Andy Hanson
240b474ba3 Merge branch 'master' into path_mapping_exact_extension 2016-11-11 13:52:10 -08:00