kmashint
be3e3e7646
Compiler flag to specify line ending #1693 unit test adjustments
2015-05-03 02:18:20 -04:00
kmashint
86bd1fc894
Compiler flag to specify line ending #1693 unit test adjustments
2015-05-03 02:07:51 -04:00
kmashint
47c4c125fe
Compiler flag to specify line ending #1693 unit test adjustments
2015-05-03 02:07:45 -04:00
kmashint
2e0a55c4d3
Compiler flag to specify line ending #1693 unit tests
2015-05-03 02:07:39 -04:00
Mohamed Hegazy
3c99527e6e
Add tests for __metadata and __param
2015-05-01 16:30:30 -07:00
Mohamed Hegazy
101aedbf4e
Do not emit __extends if --noEmitHelpers is set
2015-05-01 16:29:41 -07:00
James Whitney
76fa4b838f
Add support for --noEmitHelpers flag
...
This PR is a Work In Progress that addresses multiple `__extends`
being output as described in #1350 : Multiple `__extends` being output
when `--module amd` is set.
The issue still exists as of `v1.5.0 - f53e6a8`.
Apparently a fix was created for this in #1356 but according to #2009 , a
[comment](https://github.com/Microsoft/TypeScript/issues/2009#issuecomment-74136291 )
later indicated that this was never merged in.
Further conversation continued in #2487 but did not yield any result. I
refer to my earlier recommendation in #1350 .
> My question is this, would the TypeScript team be open to a flag that
> can be passed to tsc that will generate something like the following
> ```ts
> define(["require", "exports", "__extends", './mammal'], function (require, exports, __extends, Mammal) {
> var Human = (function (_super) {
> __extends(Human, _super);
> function Human() {
> _super.apply(this, arguments);
> }
> return Human;
> })(Mammal);
> return Human;
> });
> ```
To continue with the naming convention I have chosen the flag
`--noEmitHelpers`.
2015-04-30 13:23:30 +10:00
Mohamed Hegazy
64f3798bd7
Merge pull request #2935 from Microsoft/relaxExportEqualsCheck
...
Fix #2929 : relax the check for export= in ES6 if it is resulting from an ambient declaration
2015-04-29 17:26:55 -07:00
Vladimir Matveev
4a919d4f04
exclude 'default' from star exports
2015-04-29 11:43:23 -07:00
Vladimir Matveev
5f18d9b912
extract emitExportStar in separate function
2015-04-28 20:17:55 -07:00
Vladimir Matveev
054b22ebc5
Merge remote-tracking branch 'origin/master' into localStorageForExportedNames
2015-04-28 16:19:13 -07:00
Vladimir Matveev
aa1ad5233e
generate local storage for all exported names to avoid overwriting them via star exports
2015-04-28 16:18:33 -07:00
Vladimir Matveev
56bf73aa8b
added tests
2015-04-27 16:37:36 -07:00
Mohamed Hegazy
992bbff5b1
Fix #2929 : relax the check for export= in ES6 if it is resulting from an ambient declaration
2015-04-27 13:46:45 -07:00
Mohamed Hegazy
32409f9b9b
Merge branch 'master' into inlineSourceMaps
2015-04-27 10:11:43 -07:00
Vladimir Matveev
b1cc06e44c
merge with master
2015-04-23 20:50:35 -07:00
Mohamed Hegazy
5172c172b7
Add more tests
2015-04-23 10:44:44 -07:00
Colin Snover
378b5ffd1a
Add support for UMD-like module export format
...
The new module format enables global-less universal modules,
compatible with both AMD and CJS module loaders.
Fixes #2036 .
2015-04-22 14:21:33 -05:00
Vladimir Matveev
afc3dd3c62
addressed PR feedback
2015-04-21 22:27:42 -07:00
Cyrus Najmabadi
92756e135b
Blocks with locals should be added to the container chain so we can detect name collisions in them.
2015-04-21 17:03:15 -07:00
Vladimir Matveev
3f7e64661d
do not hoist non-top level block scoped variables
2015-04-21 08:41:54 -07:00
Mohamed Hegazy
658bba9eaf
Add --inlineSources option
2015-04-20 20:33:31 -07:00
Vladimir Matveev
6e5082658d
skip 'import ...' nodes when creating variable statement for imports
2015-04-20 14:17:38 -07:00
Vladimir Matveev
dcb4c24b43
merge with master
2015-04-20 13:40:13 -07:00
Mohamed Hegazy
c940b1651a
Merge branch 'master' into inlineSourceMaps
2015-04-19 13:33:50 -07:00
Jason Freeman
ccf4104779
Change TypeMapper to only take a type parameter, and fix combineTypeMappers to comply with that rule
2015-04-17 18:28:38 -07:00
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
Vladimir Matveev
0feebd44b3
publish exported postfix operators as 'E("", ++x) - 1' and 'E("", --x) + 1'
2015-04-13 21:32:27 -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
Vladimir Matveev
5d2897d67f
export imported aliases
2015-04-13 13:00:00 -07:00
Yui T
63a2359d1a
Merge branch 'master' into migrateStrictModeCheck
2015-04-11 21:02:56 -07:00
Vladimir Matveev
1781ce1bd8
Merge remote-tracking branch 'origin/master' into systemModule
2015-04-11 12:31:52 -07:00
Yui T
65b8792be7
Organize test cases for strict mode
2015-04-11 12:15:47 -07:00
Vladimir Matveev
e622c8ec34
added tests
2015-04-11 08:50:11 -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