Commit Graph

14913 Commits

Author SHA1 Message Date
Anders Hejlsberg a0790fba7d Add only 'undefined' to optional parameter types 2016-03-04 17:39:56 -08:00
Anders Hejlsberg 436e70ea8f Accepting new baselines 2016-03-04 17:27:42 -08:00
Anders Hejlsberg 64f572747c Introduce comparable (a.k.a. possibly assignable) relation 2016-03-04 17:26:56 -08:00
Anders Hejlsberg 25a72d6085 Removing unused functions 2016-03-04 15:51:22 -08:00
Matt McCutchen 49172207bf Expose ts.isExternalModule as public API.
Fixes #7359
2016-03-04 18:45:42 -05:00
Mohamed Hegazy a5354608fc Merge pull request #7392 from Microsoft/declarationEmitFixes
Declaration emit fixes
2016-03-04 15:35:43 -08:00
Anders Hejlsberg 15b240548f Extract and lift nullability over best common supertype 2016-03-04 15:01:11 -08:00
Mohamed Hegazy 15640492c4 Code review comments 2016-03-04 14:21:31 -08:00
Anders Hejlsberg d6fcd1af1b Consider for-in and for-of variables to be definitely assigned 2016-03-04 13:19:58 -08:00
Anders Hejlsberg 1302418776 Accepting new baselines 2016-03-04 10:43:10 -08:00
Anders Hejlsberg c623e1f8c9 No widening of 'null' and 'undefined' types in --strictNullChecks mode 2016-03-04 10:42:23 -08:00
Mohamed Hegazy 15f07e6231 Fix #4506: Remove assert to allow for invalid patterns already flagged erlier by the checker 2016-03-03 23:01:46 -08:00
Mohamed Hegazy 3bb2c57264 Fix #3810: Handel expressions in extends clauses 2016-03-03 22:35:30 -08:00
Mohamed Hegazy c98c763243 Fix #5651: Get the correct meaning for expressions in extends clauses 2016-03-03 21:47:11 -08:00
Anders Hejlsberg 87ae0489eb Reinstate separate type kinds for 'null' and 'undefined' 2016-03-03 17:44:46 -08:00
Ron Buckton 1cf183b09a Fixed invalid assertion in ts transformer 2016-03-03 17:35:27 -08:00
Ryan Cavanaugh 311f8dd7d3 Merge pull request #7309 from RyanCavanaugh/fix6878
Support JSDoc on class / obj. literal getters
2016-03-03 15:50:15 -08:00
Mohamed Hegazy baa040115e Fix #7173: Widen the type do the defualt export expression before writing it out. 2016-03-03 15:42:47 -08:00
jramsay fcfc411200 Merge pull request #7383 from Microsoft/removeCachePathFromDiscoverTypings
Removing cachePath from discoverTypings and DiscoverTypingsInfo.
2016-03-03 15:41:45 -08:00
Jason Ramsay ae2b7c2aa2 Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Mohamed Hegazy 0cba37d5b2 Merge pull request #7358 from martine/empty-return
in noImplicitReturns mode, also disallow "return;"
2016-03-03 13:56:19 -08:00
Vladimir Matveev 744e51047e Merge pull request #7373 from Microsoft/limitInferenceDepth
set the maximum depth to explore during type inference
2016-03-03 12:18:49 -08:00
Evan Martin 5132ea64ea in noImplicitReturns mode, also disallow "return;"
In --noImplicitReturns mode, if a function specifies a return type,
disallow empty "return;" statements.

Fixes #5916.
2016-03-03 12:18:23 -08:00
Anders Hejlsberg 04c28b09a9 Accepting new baselines 2016-03-03 11:18:47 -08:00
Anders Hejlsberg ed958119a1 Fix unit test 2016-03-03 11:18:33 -08:00
Anders Hejlsberg ea4b13bdf9 Allow 'null' and 'undefined' as type names 2016-03-03 11:18:12 -08:00
Vladimir Matveev 1589e4f57e set the maximum depth to explore during type inference 2016-03-03 10:47:21 -08:00
Mohamed Hegazy 24c47f18ad Merge pull request #7371 from Microsoft/checkForWatchFile
Fix #7362: check for --watchFile in tsconfig.json as well as on the c…
2016-03-03 10:44:26 -08:00
Mohamed Hegazy 30a6a33259 Fix #7362: check for --watchFile in tsconfig.json as well as on the commandline 2016-03-03 10:18:33 -08:00
Tingan Ho 194927e51b Update with master 2016-03-03 13:58:20 +08:00
Tingan Ho 99edce09bc Fixes CR feedback 2016-03-03 13:29:00 +08:00
Kanchalai Tanglertsampan 70d267419b Concat declaration error so we report them 2016-03-02 17:13:51 -08:00
Ron Buckton c267691d8a Fixed labels 2016-03-02 16:55:25 -08:00
Anders Hejlsberg 33e3825beb Assigned-before-use checking for non-nullable variables 2016-03-02 16:40:16 -08:00
Mohamed Hegazy 0f6dbd0250 Merge pull request #7350 from basarat/patch-1
fix(build) `TypingResolutionHost` interface is used by exported function `discoverTypings`
2016-03-02 16:39:56 -08:00
zhengbli 8294a18150 Add tests 2016-03-02 16:13:52 -08:00
Ron Buckton aaf3ab7406 Merge branch 'transforms-transformer-module' into transforms-transformer-es6-generators 2016-03-02 15:50:56 -08:00
Ron Buckton 72eebdb4d4 Switched to onEmitNode 2016-03-02 15:50:18 -08:00
zhengbli 2835e259aa Enable navigateTo on all projects for a file 2016-03-02 15:50:00 -08:00
Ron Buckton c4a75babc6 Merge branch 'transforms-transformer-es6' into transforms-transformer-module 2016-03-02 15:47:46 -08:00
Ron Buckton 1c738181ef Switched to onEmitNode 2016-03-02 15:47:28 -08:00
Ron Buckton 7b28b48e13 Merge branch 'transforms-transformer-es7' into transforms-transformer-es6 2016-03-02 15:42:16 -08:00
Ron Buckton 593fbd4a71 Merge branch 'transforms-transformer-jsx' into transforms-transformer-es7 2016-03-02 15:41:31 -08:00
Ron Buckton 1fdaf746f0 Merge branch 'transforms-transformer-ts' into transforms-transformer-jsx 2016-03-02 15:40:33 -08:00
Ron Buckton 8b35af4ce5 Switched to onEmitNode 2016-03-02 15:39:56 -08:00
zhengbli 7663a96a7b Enable findReferences on all projects for a file 2016-03-02 15:37:35 -08:00
Basarat Ali Syed 1bebc711b0 fix(build) TypingResolutionHost interface is used by exported function discoverTypings 2016-03-03 10:32:07 +11:00
Ron Buckton e66e51d809 Merge branch 'transforms-printer' into transforms-transformer-ts 2016-03-02 15:20:02 -08:00
Ron Buckton ebb47649ee Switch from onBefore/onAfterEmitNode to onEmitNode 2016-03-02 15:19:42 -08:00
zhengbli 55f4b02ed4 Enable rename on all projects for a file 2016-03-02 14:25:55 -08:00