Commit graph

1702 commits

Author SHA1 Message Date
Mohamed Hegazy 07719e32f7 Merge branch 'master' of https://github.com/kmashint/TypeScript into kmashint-master 2015-05-04 12:42:54 -07:00
Yui T e0ec6e6e71 Update baselines 2015-05-04 11:18:25 -07:00
Yui fce012d370 Merge pull request #2735 from Microsoft/conformanceParameterDecl
Conformance test for Spec Change in Section 3.8.2.2 parameter Declaration and 6.4 Destructuring parameter declarations
2015-05-04 10:50:53 -07:00
Yui 183c1c47ab Merge pull request #2753 from Microsoft/conformanceArrayLiteral
Conformance test for update in section 4.6 Array Literal
2015-05-04 10:50:41 -07:00
Yui 3da13152f0 Merge pull request #2761 from Microsoft/conformanceContextuallyTypedFuncExp
Conformance test for update spec section 4.9.3 contextual typing in function expression
2015-05-04 10:48:42 -07:00
Yui 75c0bbcfa3 Merge pull request #2773 from Microsoft/conformanceDestructuringAssignment
Conformance test spec change in section 4.17.1 destructuring assignment and 5.1.2 variable declaration conformance tests
2015-05-04 10:47:58 -07:00
Yui 031c344bd6 Merge pull request #2785 from Microsoft/conformanceTypeGuard
Conformance for spec update section 4.20 Add additional tests for typeguard for class or object property
2015-05-04 10:47:06 -07:00
Yui 7a167f26ca Merge pull request #2792 from Microsoft/conformanceConstEnum
Conformance for spec update section 9.4, 12.1.4 const enum
2015-05-04 10:46:21 -07:00
Yui 80103b086a Merge pull request #2814 from Microsoft/conformanceContextuallyTypedExp
Conformance test for 4.19 Contextually Typed Expressions
2015-05-04 10:45:56 -07:00
kmashint 2e0a55c4d3 Compiler flag to specify line ending #1693 unit tests 2015-05-03 02:07:39 -04:00
Ron Buckton 22515d452d Updated ES6 declarations for Promise, updated baselines 2015-05-01 17:02:39 -07:00
Mohamed Hegazy 689c09cb10 Merge branch 'whitneyit-feature/noEmitExtends' 2015-05-01 16:41:32 -07: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
Ron Buckton 60ae9bd14d Fixes helpers in strict mode 2015-05-01 10:49:54 -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 3af5592243 allow module to reserve slots for names that they export 2015-04-28 18:51:29 -07:00
Vladimir Matveev c057c0a22a merge with master 2015-04-28 18:00:26 -07:00
Mohamed Hegazy 4db61d84be Accept baselines 2015-04-28 17:13:47 -07:00
Anders Hejlsberg 477189dbb9 Accepting new baselines 2015-04-28 17:03:39 -07:00
Anders Hejlsberg 4c5aeaf0c9 Merge branch 'master' into namespaces
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/program.ts
	tests/baselines/reference/constDeclarations-access5.errors.txt
	tests/baselines/reference/es6-amd.errors.txt
	tests/baselines/reference/es6-declaration-amd.errors.txt
	tests/baselines/reference/es6-sourcemap-amd.errors.txt
	tests/baselines/reference/es6-umd.errors.txt
	tests/baselines/reference/es6-umd2.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt
	tests/baselines/reference/es6ImportNameSpaceImport.errors.txt
	tests/baselines/reference/es6ImportNamedImport.errors.txt
	tests/baselines/reference/es6ImportNamedImportInExportAssignment.errors.txt
	tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt
	tests/baselines/reference/es6ModuleWithModuleGenTargetCommonjs.errors.txt
2015-04-28 16:49:23 -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
Anders Hejlsberg 330d63a173 Accepting new baselines 2015-04-26 18:31:47 -07:00
Anders Hejlsberg 9223f75d36 Accepting new baselines 2015-04-26 16:14:04 -07:00
Vladimir Matveev b1cc06e44c merge with master 2015-04-23 20:50:35 -07:00
Ron Buckton f53e6a8b85 Merge pull request #2897 from Microsoft/fixThisInDecoratorHelpers
Fix this in decorator helpers
2015-04-23 16:13:25 -07:00
Ron Buckton 1c40032579 Fixes his in decorator helpers 2015-04-23 15:36:07 -07:00
Daniel Rosenwasser f83efcc7aa Merge pull request #2895 from Microsoft/reservedNamesImportsExports
Allow contextually reserved names in import/export clauses
2015-04-23 14:52:57 -07:00
Ron Buckton bc5e5a20ea Merge pull request #2892 from Microsoft/lazyGlobalDecoratorTypes
Lazy resolution of global decorator types
2015-04-23 14:47:36 -07:00
Daniel Rosenwasser 938cfde099 Added test. 2015-04-23 14:38:36 -07:00
Daniel Rosenwasser e0c44db8dd Accepted baselines. 2015-04-23 14:23:37 -07:00
Daniel Rosenwasser 9abfc3bd1a Added test. 2015-04-23 14:07:01 -07:00
Ron Buckton ed644ddaa1 Added tests for 1.0 lib and missing decorator type 2015-04-23 12:33:12 -07:00
Ron Buckton a9e79bf06b Lazy resolution of global decorator types 2015-04-23 11:04:44 -07:00
Mohamed Hegazy ded0e398b4 update error messages 2015-04-23 10:53:19 -07:00
Mohamed Hegazy 5172c172b7 Add more tests 2015-04-23 10:44:44 -07:00
Mohamed Hegazy ae4474aa40 Merge branch 'fix-2036' of https://github.com/csnover/TypeScript into csnover-fix-2036 2015-04-23 10:21:11 -07:00
Jason Freeman 966c33796f Merge branch 'master' of https://github.com/Microsoft/TypeScript into iteratorTypeFix 2015-04-22 14:27:14 -07:00
Anders Hejlsberg 4a98c4680a Merge pull request #2804 from Microsoft/unionPropertyAccess
Only public properties accessible through union type
2015-04-22 14:16:30 -07:00
Anders Hejlsberg 3309e754c1 Merge pull request #2851 from Microsoft/circularTypeAlias
Support circular type aliases in signatures
2015-04-22 14:06:52 -07:00
Jason Freeman 2a2ef28fc6 Undo the change to return 2015-04-22 13:38:30 -07:00
Jason Freeman 4dc9da255f Fix Iterator type in es6.d.ts 2015-04-22 13:23:52 -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