Commit Graph
506 Commits
Author SHA1 Message Date
Mohamed Hegazy c68f837052 Merge branch 'amd-es3' of https://github.com/Smarp/TypeScript into Smarp-amd-es3 2015-04-17 15:39:23 -07:00
TruongSinh Tran-Nguyen d55dcc61cc exports.default in ES5 vs exports["default"] in ES3 2015-04-17 20:29:05 +03:00
Mohamed Hegazy 55af7b36c7 Fix #2801: Sort module names for AMD preamble 2015-04-16 14:56:22 -07:00
Mohamed Hegazy 39d9720dd1 wire module lookcups for default import in ambient module declarations 2015-04-16 14:54:47 -07:00
Jason Freeman edf1ae6d36 Merge branch 'master' of https://github.com/Microsoft/TypeScript into destructuringFixes
Conflicts:
	src/compiler/utilities.ts
2015-04-15 17:23:12 -07:00
Jason Freeman 1cda3dc45d Fix parenthesizeForAccess to always parenthesize NewExpressions and NumberLiterals 2015-04-15 17:22:19 -07:00
Jason Freeman 1d8fb49f4c Source type parameter extending union works even when target is a type parameter 2015-04-15 11:49:06 -07:00
Yui T a15fcf662b Add test for askeyword 2015-04-14 17:00:50 -07:00
Jason Freeman 70c06ce8c6 Fix crash in emitter on rest parameters with binding patterns 2015-04-13 17:29:35 -07:00
Jason Freeman e6ffb33adf Fix crash in rest element destructuring 2015-04-13 17:29:18 -07:00
Yui T 63a2359d1a Merge branch 'master' into migrateStrictModeCheck 2015-04-11 21:02:56 -07:00
Yui T 65b8792be7 Organize test cases for strict mode 2015-04-11 12:15:47 -07:00
CyrusNajmabadi 1c7d8a2e21 Merge pull request #2706 from Microsoft/emitYieldStart
Emit generator functions and yield expressions in ES6.
2015-04-11 02:40:42 -07:00
Yui T 8448ba7b13 Allow IdentifierName in memberExpression 2015-04-10 16:22:09 -07:00
Yui T bf60eabdbb Update tests cases 2015-04-10 14:24:10 -07:00
Cyrus Najmabadi f777011fc0 Emit generator functions and yield expressions in ES6. 2015-04-09 22:57:13 -07:00
Mohamed Hegazy dc4d8c8d1f Emit temp var declaration for 'export default <expression>' in declaration emit 2015-04-09 16:34:16 -07:00
Mohamed Hegazy afe35c810a Revert "Support an optional type annotation on export default statement"
This reverts commit a6a8a96249.
2015-04-09 16:32:23 -07:00
Yui T 39f7247004 Add more tests 2015-04-09 15:59:49 -07:00
Yui T 4b7d2f2411 Address code review 2015-04-09 14:46:02 -07:00
Yui T 8ad9c0bee7 Add more test for import, import equal, module 2015-04-08 22:07:09 -07:00
Yui T 9d29629662 Remove old tests 2015-04-08 22:07:06 -07:00
Yui T 958f7b8202 Add more test to cover strict mode code 2015-04-08 22:06:59 -07:00
Mohamed Hegazy 863f0b6180 Merge pull request #2643 from Microsoft/checkForOmittedExpression
Check for omitted expressions when checking const and let declaration names
2015-04-06 16:42:51 -07:00
Mohamed Hegazy 238a33daa0 Rename test case 2015-04-06 16:24:55 -07:00
Mohamed Hegazy d71632aa38 Check for omitted expressions when checking const and let declaration names 2015-04-06 15:32:22 -07:00
Mohamed Hegazy 3ca76ca53b Add null check when querying for exports from a module 2015-04-06 14:54:22 -07:00
Mohamed Hegazy 29fe9f560f Merge branch 'master' into APISamples
Conflicts:
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-04-06 13:38:16 -07:00
Cyrus Najmabadi 8537232d32 Add decorator test for a decorator on a class expression. 2015-04-03 13:04:56 -07:00
Cyrus Najmabadi be26d417a3 Add additional tests. 2015-04-02 17:50:11 -07:00
Cyrus Najmabadi 7562a34ae8 Add support for emitting static properties in class expressions in ES6. 2015-04-02 17:43:41 -07:00
Mohamed Hegazy 8ceebaa985 Update APISample tests for 1.5-alpha release 2015-04-02 15:45:52 -07:00
unknown ba8be9eef4 Support classes without names in our AST. Report any issues with this at 'check' time. 2015-04-01 17:20:20 -07:00
unknown 22a87fb9ca Class declarations should be block scoped. 2015-04-01 16:24:51 -07:00
Mohamed Hegazy f75c1dd7b6 Merge branch 'master' into exportDefaultReference
Conflicts:
	src/compiler/utilities.ts
2015-03-31 21:35:21 -07:00
Mohamed Hegazy 4577959246 Merge pull request #2557 from Microsoft/exportEqualsDtsFix
Ensure export= is emitted correctelly in declaration files
2015-03-31 20:39:15 -07:00
Cyrus Najmabadi 3df576d112 Adding a couple of class tests. 2015-03-31 18:11:54 -07:00
Vladimir Matveev cfda7df900 revert fix for #2456 'Import namespace exports should be immutable' 2015-03-31 17:35:26 -07:00
Vladimir Matveev f239bbc3b1 Merge pull request #2550 from Microsoft/separateCompilation
Relax import/export elision rules for separate compilation
2015-03-31 14:51:39 -07:00
Vladimir Matveev 1bdcaa3d43 added tests for import\export elision 2015-03-31 13:54:33 -07:00
Vladimir Matveev 1803d730c2 added initial set of unit tests for separate compilation mode 2015-03-30 23:17:45 -07:00
Mohamed Hegazy 757257b9a1 Ensure export= is emitted correctelly in declaration files 2015-03-30 22:18:13 -07:00
Mohamed Hegazy bea7221174 Ensure we find export default declaration targets if we search for them by name 2015-03-30 16:59:34 -07:00
Yui T c1d9cfe640 Add test for emit destructuring invariable declaration with omitted expression 2015-03-30 16:45:20 -07:00
Yui T a26368a7d2 Merge branch 'master' into allowDestructuringInAmbient 2015-03-30 14:44:03 -07:00
Yui T 1f055b95aa Emit ommittedExpression in binding pattern 2015-03-30 13:25:46 -07:00
Cyrus Najmabadi ceeeb9cd11 Always preserve new lines for array and object literals and additional constructs like blocks. 2015-03-26 13:46:35 -07:00
Mohamed Hegazy fad889283e Merge branch 'master' into exportEqualsMerged
Conflicts:
	src/compiler/checker.ts
	src/compiler/emitter.ts
	src/compiler/types.ts
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/es5ExportDefaultClassDeclaration2.js
	tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js
	tests/baselines/reference/es6ExportAllInEs5.js
	tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js
2015-03-25 00:06:38 -07:00
Ron Buckton ea15225a9e Merge pull request #2399 from Microsoft/decorators_min 2015-03-24 19:57:21 -07:00
Ron Buckton f531193557 Updates to emit and updated baselines 2015-03-24 17:00:29 -07:00