Commit graph

10795 commits

Author SHA1 Message Date
Vladimir Matveev 489bf921ff Merge pull request #7464 from Microsoft/capturedLetConstInDestructuringAssignment
correctly recognize captured loop variables in destructuring assignment
2016-03-10 10:17:19 -08:00
Ryan Cavanaugh 043b338024 Add export = class scenario 2016-03-10 10:11:48 -08:00
Vladimir Matveev 7344d9ca47 correctly recognize captured loop variables in destructuring assignment 2016-03-10 09:59:09 -08:00
Bill Ticehurst bda5737c50 Merge pull request #7455 from Microsoft/port7249
Ports CommonJS module fix #7249
2016-03-10 09:22:19 -08:00
Zhengbo Li e151d49e7f Merge pull request #7307 from zhengbli/fixFormatOnEnter
Avoid removing indentation on a new line as trailing white spaces
2016-03-10 09:18:56 -08:00
Anders Hejlsberg 796613ce09 Better error message + fix assignment analysis of 'switch' statement 2016-03-10 06:51:57 -08:00
Bill Ticehurst 9924e0a801 Addressed feedback
(cherry picked from commit fa6db1b8c9)
2016-03-09 19:13:14 -08:00
Bill Ticehurst 3ebf0fc383 Fixed default import from export equals
(cherry picked from commit c4a10cfcdd)
2016-03-09 19:13:14 -08:00
Bill Ticehurst b760fc0ae0 Fixed es2015 imports from export=
(cherry picked from commit 9e46c180b4)
2016-03-09 19:13:13 -08:00
Bill Ticehurst 4ec4ce814d Updated binding for module.exports
(cherry picked from commit 62bf4aefe2)
2016-03-09 19:13:13 -08:00
Vladimir Matveev f06423bffc Revert "add part of test baselines"
This reverts commit 502b2ba321.
2016-03-09 17:08:26 -08:00
Vladimir Matveev 502b2ba321 add part of test baselines 2016-03-09 17:06:19 -08:00
Ryan Cavanaugh 8cef251b14 Add test for function export 2016-03-09 16:24:54 -08:00
Ryan Cavanaugh c72f1c354b Reuse existing var 2016-03-09 16:08:08 -08:00
Ryan Cavanaugh 14941f26a0 Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
Nathan Shively-Sanders 93510e8261 Merge pull request #7451 from Microsoft/runtest-parallel-runs-lint
Always run lint, even for runtests-parallel
2016-03-09 13:05:27 -08:00
Yui 05baf3dac7 Merge pull request #7356 from Microsoft/fix7354
Concat declaration error so we report them
2016-03-09 13:02:45 -08:00
Anders Hejlsberg cf9e08b75c Merge branch 'master' into strictNullChecks
Conflicts:
	src/compiler/checker.ts
2016-03-09 13:00:59 -08:00
Vladimir Matveev 5d5fee2ef1 Merge pull request #7450 from Microsoft/noImplicitReturnsInAsync
unwrap promised typed in async function before doing 'noImplicitRetur…
2016-03-09 12:42:10 -08:00
Nathan Shively-Sanders 8a01a973bb Always run lint, even for runtests-parallel
The first runner runs lint, not the first to complete.
2016-03-09 12:40:53 -08:00
Anders Hejlsberg 614afb740d Merge pull request #7448 from Microsoft/optimizeInstantiation
Skip unnecessary instatiation of anonymous types
2016-03-09 12:40:32 -08:00
Anders Hejlsberg 4f441bd553 Adding comment to test 2016-03-09 11:37:40 -08:00
Vladimir Matveev 907ce8fb38 unwrap promised typed in async function before doing 'noImplicitReturns' check 2016-03-09 11:23:55 -08:00
Anders Hejlsberg 1d181360cc Adding tests 2016-03-09 11:03:40 -08:00
Ryan Cavanaugh ac147b18a6 Merge pull request #7442 from Victorystick/fix-property-shorthand-emit
Fix shorthand properties for non-es6 module formats
2016-03-09 10:30:58 -08:00
Ryan Cavanaugh 2875326735 Use existing function to resolve export= declarations 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 3d948be4c6 Support module augmentation 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 132d75c267 Support UMD when targeted module uses export = 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 34cf10542c Lint 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 887adb0146 Move checks from checker to binder 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh e9f4bef3ac Address CR feedback 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh 44aa7388ea UMD support 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh b29f460641 Merge pull request #7449 from RyanCavanaugh/port6993fix
Fix duplicate errors in JSDoc function types with anon parameters
2016-03-09 09:57:11 -08:00
Oskar Segersvärd 2e23010437 Add three tests 2016-03-09 18:43:21 +01:00
Ryan Cavanaugh 5dbf252dc5 Fix duplicate errors in JSDoc function types with anon parameters
Fixes #6993
2016-03-09 09:18:54 -08:00
Anders Hejlsberg bf97250306 Skip unnecessary instatiation of anonymous types 2016-03-09 09:14:55 -08:00
Oskar Segersvärd ccd5352eb8 System doesn't have direct identifier access in TS's generated code. 2016-03-09 12:13:27 +01:00
Oskar Segersvärd d742ca50f4 Fix shorthand properties for non-es6 module formats 2016-03-09 11:22:47 +01:00
Mohamed Hegazy cc57ae0205 Merge pull request #7439 from Microsoft/moduleAugmentationWithExportEquals
Handel module augmentation with export= var + uninstantiated module
2016-03-08 21:22:28 -08:00
Mohamed Hegazy 7acf58ba52 Handel module augmentation with export= var + uninstantiated module 2016-03-08 17:16:19 -08:00
Anders Hejlsberg 868e53df25 Accepting new baselines 2016-03-08 11:47:18 -08:00
Anders Hejlsberg fbda0bdd94 Adding another check for undefined 2016-03-08 11:46:47 -08:00
Anders Hejlsberg 187eaaee7f Fix issue with narrowing exported variables 2016-03-07 13:20:07 -08:00
Daniel Rosenwasser 01c329c05e Merge pull request #7396 from mattmccutchen/issue7359
Expose ts.isExternalModule as public API.
2016-03-07 10:15:06 -08:00
Anders Hejlsberg 0a25bb58a4 Make 'undefined' assignable to 'void' 2016-03-06 13:59:09 -08:00
Anders Hejlsberg 50d874e09d Improve type relationship error reporting for nullable types 2016-03-05 16:55:54 -08:00
Anders Hejlsberg 129a4f1908 Check return type includes 'undefined' in function with implicit return 2016-03-05 16:16:19 -08:00
Anders Hejlsberg d0e4b4ae35 Treat 'return' as 'return undefined' for type checking purposes 2016-03-05 15:23:00 -08:00
Anders Hejlsberg 8db7af035d Proper handling of 'null' and 'undefined' in equals and not equals guards 2016-03-05 11:16:31 -08:00
Anders Hejlsberg 689e28d3ac Keep linter happy with fix in reduceLeft/reduceRight 2016-03-05 11:14:57 -08:00