Mohamed Hegazy
8b43b3d18c
Update test
2015-05-06 20:18:32 -07:00
Mohamed Hegazy
ac9b16cff3
refactor narrowTypeByInstanceof
2015-05-06 20:11:31 -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
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
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
Anders Hejlsberg
f08d3793a3
Adding regression test
2015-05-05 10:02:29 -07:00
Jason Freeman
08cffc598c
Rebaseline tests
2015-05-04 17:30:06 -07:00
Mohamed Hegazy
15f4b58d6c
Merge pull request #2966 from Microsoft/getTypeDefinitionAtPosition
...
Get type definition at position
2015-05-04 14:51:10 -07:00
Mohamed Hegazy
11166d2f08
Merge branch 'kmashint-master'
2015-05-04 13:23:24 -07:00
Vladimir Matveev
bd47ae4886
Merge pull request #3001 from Microsoft/formattingOnChainedCallbacks
...
fix formatting for chained callbacks
2015-05-04 12:46:08 -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
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
Mohamed Hegazy
7fc6142def
Merge branch 'master' into getTypeDefinitionAtPosition
...
Conflicts:
src/services/services.ts
2015-05-04 10:02:37 -07:00
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
Anders Hejlsberg
7efd93a965
Adding test
2015-05-02 16:57:18 -07:00
Anders Hejlsberg
d0e526983a
Accepting new baselines
2015-05-02 16:37:45 -07:00
vvakame
ab10d509f5
support instantiate signature, it has type parameters.
2015-05-02 15:27:06 +09:00
Vladimir Matveev
f5b13bdb6d
fix formatting for chained callbacks
2015-05-01 23:13:23 -07: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
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
Anders Hejlsberg
8600fef2bd
Accepting new baselines
2015-05-01 15:05:42 -07:00
Anders Hejlsberg
a133684b36
Modifying test
2015-05-01 15:03:52 -07:00
Mohamed Hegazy
1de5ea802b
Respond to code review comments
2015-05-01 14:58:23 -07:00
Ron Buckton
60ae9bd14d
Fixes helpers in strict mode
2015-05-01 10:49:54 -07:00
Cyrus Najmabadi
c0c2c4f9a3
Unify more classification code.
2015-04-30 14:57:38 -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
vvakame
35d6e98e98
type narrowing by constructor signiture of interface
2015-04-30 23:12:35 +09:00
Mohamed Hegazy
b6905aff0c
Add getTypeDefinitionAtPosition to tsserver
2015-04-29 22:55:05 -07:00
Mohamed Hegazy
6f1c307319
Add test to shims
2015-04-29 22:54:57 -07:00
Mohamed Hegazy
e9f76d0002
Add implementation for getTypeDefinitionAtPosition
2015-04-29 22:54:49 -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