Commit graph

5614 commits

Author SHA1 Message Date
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
Mohamed Hegazy 80cff5bf0a Merge pull request #3020 from Microsoft/exposeScanner
Fix #3012: expose scanner
2015-05-04 10:00:56 -07:00
Mohamed Hegazy 7327044410 Fix #3012: expose scanner 2015-05-04 09:51:29 -07:00
Zhengbo Li 282c1d2139 Merge pull request #3016 from zhengbli/fixFormatConfigurationIssue
Fix host formatting configuration issues
2015-05-03 23:03:06 -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
Zhengbo Li d580063083 Fix host formatting configuration issues 2015-05-03 15:31:07 -07:00
Mohamed Hegazy 3eaf2cf724 Merge pull request #3011 from frankwallis/master
Rename parameter static -> isStatic, fixes 'static is a reserved identif...
2015-05-03 14:31:08 -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
Daniel Rosenwasser d5c9857e60 Whoops. 2015-05-01 18:40:58 -07:00
Daniel Rosenwasser 9460fb580d Use 'lastOrUndefined' where appropriate in the services layer. 2015-05-01 18:34:37 -07:00
Daniel Rosenwasser 4ebfee2051 Use 'lastOrUndefined' where appropriate in the compiler. 2015-05-01 18:34:26 -07:00
Ron Buckton 1625a6c314 Merge pull request #2982 from Microsoft/fixPromiseDeclaration
Updated ES6 declarations for Promise, updated baselines
2015-05-01 17:11:29 -07:00
Ron Buckton 0982a9e70b Merge branch 'master' into fixPromiseDeclaration 2015-05-01 17:06:50 -07:00
Ron Buckton e7b6d7b7bf Updated LKG 2015-05-01 17:05:25 -07:00
Ron Buckton b6f76fd05b Updated type name 2015-05-01 17:02:43 -07:00
Ron Buckton 22515d452d Updated ES6 declarations for Promise, updated baselines 2015-05-01 17:02:39 -07:00
Ron Buckton 705432bb34 Updated LKG 2015-05-01 17:01:31 -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
Mohamed Hegazy 93bf569432 Merge branch 'feature/noEmitExtends' of https://github.com/whitneyit/TypeScript into whitneyit-feature/noEmitExtends 2015-05-01 16:04:04 -07:00
Ron Buckton 9438355f94 Merge pull request #2989 from Microsoft/fixHelpersForStrict
Fixes helpers in strict mode
2015-05-01 15:41:41 -07:00
Ron Buckton a2553fb030 Updated type name 2015-05-01 15:30:21 -07:00
Mohamed Hegazy 892bc6d7cb Update LKG 2015-05-01 15:28:38 -07:00
Zhengbo Li bc8b9ee39d Merge pull request #2990 from zhengbli/issue2984
Added overloads for HTMLCanvasElement.getContext method
2015-05-01 15:08:21 -07:00
Zhengbo Li 69a76a3b66 cf feedback 2015-05-01 12:25:30 -07:00
Zhengbo Li 79da6a5ee8 Fix issue #2984 2015-05-01 11:33:53 -07:00
Ron Buckton 60ae9bd14d Fixes helpers in strict mode 2015-05-01 10:49:54 -07:00
CyrusNajmabadi 3bd4dd4095 Merge pull request #2977 from Microsoft/getClassifications2
Add a common, dense, format for classification operations to lower cost of processing on the host side.
2015-04-30 18:02:45 -07:00
Ron Buckton 78808a8dc7 Updated ES6 declarations for Promise, updated baselines 2015-04-30 17:48:20 -07:00
Cyrus Najmabadi 7769b4cd19 Update names. 2015-04-30 17:48:01 -07:00
Cyrus Najmabadi b49e07c2fa Fix name. 2015-04-30 17:20:04 -07:00
Cyrus Najmabadi 248f9b78fb Log when the lexical classifier fails. not the perf of each line. 2015-04-30 16:14:43 -07:00
Cyrus Najmabadi c0c2c4f9a3 Unify more classification code. 2015-04-30 14:57:38 -07:00
Mohamed Hegazy a46a6106a8 Update LKG 2015-04-30 14:46:33 -07:00
Mohamed Hegazy b7bdfa6b10 Merge pull request #2976 from zhengbli/master
Added missing createEvent overloads
2015-04-30 14:35:08 -07:00
Cyrus Najmabadi 5ad7a593d4 Add a common, dense, format for classification operations to lower cost of processing on the host side.
We now just return an array of triples to represent classified results.  The triple contains:
1) the start of the classification.
2) the length of the classification.
3) the type of the clasification.

We also encode this into a comma separated string when passing over to the managed side
(as opposed to an JSON array).  That way we don't pay such a high JSON parsing cost.
Instead, we can just do a string.split(",") on the encoded triples and process each
element ourselves.
2015-04-30 14:26:46 -07:00
Zhengbo Li 125a7b9982 Added missing createEvent overloads 2015-04-30 14:24:17 -07:00
Cyrus Najmabadi d1607cfc65 Merge branch 'master' into getClassifications2 2015-04-30 13:16:47 -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
CyrusNajmabadi 5eefc4264a Merge pull request #2964 from Microsoft/checkerSimplification
Restore checker simplification that was reverted due to a bad merge.
2015-04-29 15:21:34 -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
Mohamed Hegazy 40aaefd5af Merge pull request #2960 from Microsoft/DataViewDefinition
Fix #2953: Put DataView definition back into lib.d.ts
2015-04-29 14:57:11 -07:00