Commit graph

15376 commits

Author SHA1 Message Date
Anders Hejlsberg 283c50c183 Merge pull request #12514 from Microsoft/keyofAndForIn
Fix issues related to 'keyof' with 'for-in' and 'in' operator
2016-11-26 18:14:00 -08:00
Mohamed Hegazy 5ab2fec6e5 Merge pull request #12482 from wittydeveloper/fix-generateClassElementDecorationExpression-documentation
doc(compiler/ts): fix documentation typo in generateClassElementDecorationExpression()
2016-11-26 14:45:12 -08:00
Anders Hejlsberg 12b63d230a Add regression test 2016-11-26 10:06:33 -08:00
Anders Hejlsberg a26a3032c8 Accept new baselines 2016-11-26 10:06:21 -08:00
Anders Hejlsberg 46ca0ba41e Fix multiple 'keyof' issues with 'for-in' and 'in' operator 2016-11-26 09:58:44 -08:00
Anders Hejlsberg 5ba678a619 Merge pull request #12480 from Microsoft/keyofIsLiteralContext
Make 'keyof T' a literal contextual type
2016-11-25 09:43:38 -08:00
Charly POLY 7b37918a11 doc(compiler/ts): fix documentation typo about __decorator code generation
When __decorator applied to method, the last parameter (descriptor)
is null, not undefined
2016-11-24 10:16:21 +01:00
Anders Hejlsberg 2cec4c5ebb Add regression test 2016-11-23 18:28:59 -08:00
Anders Hejlsberg cdda5dfd61 keyof T is a literal contextual type 2016-11-23 18:22:57 -08:00
Anders Hejlsberg e128add54e Merge pull request #12447 from Microsoft/mappedTypesAndUnions
Isomorphic mapped types and unions
2016-11-23 17:36:44 -08:00
Mohamed Hegazy 72cee3e045 Merge pull request #12434 from Microsoft/Fix12377
Add special handeling for function and array in Object.freeze
2016-11-23 13:26:36 -08:00
Sheetal Nandi c2bef6d0bd Merge pull request #12475 from Microsoft/jsxFactoryLeaf
Instead of creating clone of the jsxFactory's leaf node, create synthesized node
2016-11-23 13:23:20 -08:00
Vladimir Matveev c05bf3b0a2 respect casing when comparing names of config files (#12474) 2016-11-23 12:34:00 -08:00
Sheetal Nandi 20a8a30b76 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:26:02 -08:00
Sheetal Nandi 79bf477b67 Revert "Instead of creating clone of the jsxFactory's leaf node, create synthesized node"
This reverts commit 4e7313b4f6.
2016-11-23 12:24:44 -08:00
Sheetal Nandi 4e7313b4f6 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:22:28 -08:00
Mohamed Hegazy 15d870bdcf Use Function instead of call and construct signatures 2016-11-23 10:56:42 -08:00
Mohamed Hegazy 60395565e6 Handel call and construct signatures 2016-11-23 09:48:25 -08:00
Daniel Rosenwasser 4701eb70e2 Merge pull request #12357 from mylesmegyesi/12075-incorrectErrorMessageForUseOfTypeAsNamespace
Fixes error message when Type is used as a Namespace
2016-11-23 11:08:38 -05:00
jramsay 855431a943 Merge pull request #12373 from Microsoft/RenameTypingOptions
Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable
2016-11-22 17:22:30 -08:00
Jason Ramsay 2b89d919a0 Addressing CR feedback 2016-11-22 17:08:43 -08:00
Anders Hejlsberg 864e1797d9 Merge pull request #12396 from Microsoft/getTypeOfExpression
Introduce 'getTypeOfExpression' function
2016-11-22 15:33:37 -08:00
Vladimir Matveev 680fb2ea1b add typings installer user agent for npm requests (#12446)
* add typings installer user agent for npm requests

* address PR feedback: change name of user agent
2016-11-22 14:56:18 -08:00
Anders Hejlsberg 43e383f20b Add more tests 2016-11-22 14:28:45 -08:00
Anders Hejlsberg 973fce0f5d Accept new baselines 2016-11-22 14:28:34 -08:00
Anders Hejlsberg 66f8a406dd Update tests 2016-11-22 14:28:21 -08:00
Anders Hejlsberg d7dd0289d5 Distribute isomorphic mapped types over union types 2016-11-22 14:27:39 -08:00
Mohamed Hegazy a8ef77c33c Merge pull request #12445 from tlancina/master
Re-add sourceFiles to program emit callback
2016-11-22 12:41:39 -08:00
Tim Lancina 61204cc05d Re-add sourceFiles to program emit callback
Addresses https://github.com/Microsoft/TypeScript/issues/12444.
2016-11-22 14:20:47 -06:00
Mohamed Hegazy 75a9435d43 Merge pull request #12433 from Microsoft/updatelibreducesymbols
Port lib changes
2016-11-22 11:26:04 -08:00
Ryan Cavanaugh 86583d495c Merge pull request #12441 from RyanCavanaugh/jsDocAugments
Support JSDoc @augments tag
2016-11-22 11:23:45 -08:00
Zhengbo Li 103090b60e report config errors when config file changed (#12372) 2016-11-22 10:56:46 -08:00
Ryan Cavanaugh 6a5682c4a3 Support JSDoc @augments tag
Fixes #12428
2016-11-22 10:52:47 -08:00
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
Mohamed Hegazy ab8d6c0dab Port lib changes 2016-11-21 22:45:36 -08:00
Jason Ramsay 70e130b08c Maintain support for deprecated API typingOptions.enableAutoDiscovery 2016-11-21 18:17:27 -08:00
Mohamed Hegazy 2d16b19ef9 Merge pull request #12431 from Microsoft/rwcFixes
Rwc fixes
2016-11-21 17:37:34 -08:00
Mohamed Hegazy b8b6e61491 handel missing files gracefully 2016-11-21 17:26:18 -08:00
Mohamed Hegazy 5403ce62ed normalize path in harness 2016-11-21 17:26:10 -08:00
Mohamed Hegazy 843d08b5af increase timeout 2016-11-21 17:25:38 -08:00
Mohamed Hegazy 9009da225c Update baseline-accept configuration 2016-11-21 17:25:31 -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
Anders Hejlsberg dbc661f88e Accept new baselines 2016-11-21 12:57:43 -08:00
Anders Hejlsberg 1710df5f28 Type of for-in variable is keyof T when object type is a type parameter 2016-11-21 12:56:32 -08:00
Vladimir Matveev 4c6b94f16f wrap subexpressions of conditional expressions in parens if necessary (#12420) 2016-11-21 12:52:13 -08:00
Andy 90ee161391 Merge pull request #12350 from Microsoft/default_excludes
Make "exclude" default to empty if "include" is present.
2016-11-21 12:23:53 -08:00
Anders Hejlsberg c5558482b7 Accept new baselines 2016-11-21 11:43:15 -08:00
Anders Hejlsberg 5498a95245 Update tests 2016-11-21 11:42:38 -08:00