Commit Graph

2684 Commits

Author SHA1 Message Date
Ron Buckton
39a6cce789 Cleaned up diagnostic messages 2015-05-08 21:37:43 -07:00
Ron Buckton
655f2ec74e Cleanup and PR feedback 2015-05-08 16:51:35 -07:00
Ron Buckton
1718ff2915 Merge branch 'master' into asyncFunctions 2015-05-07 18:06:11 -07:00
Ron Buckton
80edb2de4a Bug fixes and baselines 2015-05-07 11:13:45 -07:00
Ron Buckton
e82e8419c2 Added emit for async functions in ES6 2015-05-06 17:33:58 -07:00
Ron Buckton
7acc488757 Removed Object.defineProperty for function name 2015-05-06 17:23:04 -07:00
Mohamed Hegazy
0a28a3ec80 Remove getUnionTypeOfSubtypeConstituents 2015-05-06 13:05:12 -07:00
Mohamed Hegazy
5e94ce65ed Merge branch 'typeguardsByConstructorSigniture' of https://github.com/vvakame/TypeScript into vvakame-typeguardsByConstructorSigniture 2015-05-06 12:44:45 -07:00
vvakame
ee4a15c602 PR feedback 2015-05-06 10:13:46 -07:00
Mohamed Hegazy
e43680de11 show more clearly error message when found missing module name
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-05-06 10:13:32 -07:00
vvakame
776f390786 PR feedback 2015-05-06 21:18:15 +09:00
Ron Buckton
d19a200750 Added types, scan, parse, and check for async functions 2015-05-05 17:57:21 -07:00
Anders Hejlsberg
7b860f5df0 Merge pull request #2991 from Microsoft/circularVar
Error when variable is circularly referenced in type annotation
2015-05-05 13:07:29 -07:00
Anders Hejlsberg
69de046074 Merge pull request #3041 from Microsoft/fixCircularAliasError
Fix circular alias error
2015-05-05 12:24:14 -07:00
Mohamed Hegazy
13e4450de0 Delete emitter.js 2015-05-05 10:57:15 -07:00
Anders Hejlsberg
6338e2b192 Fix 'resolveName' to correctly obtain local name of export default 2015-05-05 09:50:11 -07:00
vvakame
e342c95562 fix code styling 2015-05-06 01:00:17 +09:00
Anders Hejlsberg
eeb23ad96e Addressing CR feedback 2015-05-05 07:23:56 -07:00
vvakame
880ccf0221 PR feedback 2015-05-05 20:29:43 +09:00
Vladimir Matveev
3c9a3c558f Merge pull request #3029 from Microsoft/outputJsFiles
emit input non .ts files as separate files when 'allowNonTsExtensions' a...
2015-05-04 18:02:19 -07:00
Vladimir Matveev
82796673ca use only 'separateCompilation' flag when checking of file should be emitted 2015-05-04 17:49:13 -07:00
Mohamed Hegazy
91fedf4df1 Update description message and variable names 2015-05-04 13:21:39 -07:00
Mohamed Hegazy
07719e32f7 Merge branch 'master' of https://github.com/kmashint/TypeScript into kmashint-master 2015-05-04 12:42:54 -07:00
Vladimir Matveev
60f3fe3de2 emit input non .ts files as separate files when 'allowNonTsExtensions' and 'separateCompilation' flags are specified (used in 'transpile' related scenarios) 2015-05-04 11:21:35 -07:00
Mohamed Hegazy
7327044410 Fix #3012: expose scanner 2015-05-04 09:51:29 -07:00
Daniel Rosenwasser
4cc1848a17 Merge pull request #2996 from Microsoft/lastOrUndefinedReplacement
Replace awkward last-element selection pattern with 'lastOrUndefined'
2015-05-03 22:28:51 -07:00
Anders Hejlsberg
4186167015 Removing 'resolvingType' special type 2015-05-03 15:05:10 -07:00
Frank Wallis
76dceb89e4 Rename parameter static -> isStatic, fixes 'static is a reserved identifier' error when running in strict mode (#3006) 2015-05-03 19:14:09 +01:00
kmashint
2e0a55c4d3 Compiler flag to specify line ending #1693 unit tests 2015-05-03 02:07:39 -04:00
kmashint
bcdf5bba64 Compiler flag to specify line ending #1693 code review adjustments 2015-05-03 02:07:33 -04:00
kmashint
c783e3781a Compiler flag to specify line ending #1693 code review adjustments 2015-05-03 02:07:28 -04:00
kmashint
c1d2aeab84 Compiler flag to specify line ending #1693 code review adjustments 2015-05-03 02:07:18 -04:00
Keith Mashinter
16d7e5cad7 Compiler flag to specify line ending #1693 fix whitespace 2015-05-03 02:07:13 -04:00
Keith Mashinter
532f92b88f Compiler flag to specify line ending #1693 2015-05-03 02:07:03 -04:00
Anders Hejlsberg
2792614f8b Improved circularity detection for types 2015-05-02 16:35:58 -07:00
vvakame
ab10d509f5 support instantiate signature, it has type parameters. 2015-05-02 15:27:06 +09:00
Daniel Rosenwasser
4ebfee2051 Use 'lastOrUndefined' where appropriate in the compiler. 2015-05-01 18:34:26 -07:00
Mohamed Hegazy
689c09cb10 Merge branch 'whitneyit-feature/noEmitExtends' 2015-05-01 16:41:32 -07:00
Mohamed Hegazy
101aedbf4e Do not emit __extends if --noEmitHelpers is set 2015-05-01 16:29:41 -07:00
Anders Hejlsberg
a0f44788ff Merge branch 'master' into circularVar 2015-05-01 14:44:45 -07:00
Anders Hejlsberg
05f51dc781 Error when variable is circularly referenced in type annotation 2015-05-01 14:44:06 -07:00
Ron Buckton
60ae9bd14d Fixes helpers in strict mode 2015-05-01 10:49:54 -07:00
vvakame
35d6e98e98 type narrowing by constructor signiture of interface 2015-04-30 23:12:35 +09: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
Cyrus Najmabadi
85d0c2226f Restore checker simplification that was reverted due to a bad merge. 2015-04-29 15:10:25 -07:00
Paul van Brenk
270a149571 Merge pull request #2963 from Microsoft/RenameHeritageClauseElement
Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods.
2015-04-29 15:01:29 -07:00
Paul van Brenk
54ef1bf93d Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods. 2015-04-29 14:49:03 -07:00
Vladimir Matveev
2184be883c addressed PR feedback 2015-04-29 13:56:17 -07:00
Vladimir Matveev
4a919d4f04 exclude 'default' from star exports 2015-04-29 11:43:23 -07:00