Commit Graph

6656 Commits

Author SHA1 Message Date
Wesley Wigham
03256e7c86 cusotm tests, forbid umd 2015-10-02 17:43:58 -07:00
Wesley Wigham
4c4087c656 Add compiler error for incompatible module formats 2015-10-02 17:03:29 -07:00
Ron Buckton
331d26f402 Merge pull request #4741 from Microsoft/es3Decorators
Allow decorators in ES3
2015-10-02 16:22:14 -07:00
Daniel Rosenwasser
d8d72aabae Separated the concept of apparent types from contextual types for string literal types.
In most cases, expressions are interested in the apparent type of the
contextual type. For instance:

    var x = { hasOwnProperty(prop) { /* ... */ };

In the above, 'prop' should be contextually typed as 'string' from the
signature of 'hasOwnProperty' in the global 'Object' type.

However, in the case of string literal types, we don't want to get the
apparent type after fetching the contextual type. This is because the
apparent type of the '"onload"' string literal type is the global 'String'
type. This has adverse effects in simple assignments like the following:

    let x: "onload" = "onload";

In this example, the right-hand side of the assignment will grab the type
of 'x'. After figuring out the type is "onload", we then get the apparent
type which is 'String'. This is problematic because when we then check the
assignment itself, 'String's are not assignable to '"onload"'s.

So in this case, we grab the contextual type *without* getting its
apparent type.
2015-10-02 16:05:32 -07:00
Nathan Shively-Sanders
be9548ade9 Merge branch 'master' into abstract-semicolon-insertion 2015-10-02 15:46:02 -07:00
Daniel Rosenwasser
f721971063 Capture compatible contextual types for unions containing string literals. 2015-10-02 15:41:12 -07:00
Wesley Wigham
e16a14b5b3 tslint had a new release and added this rule, theirs was a little stricter 2015-10-02 15:15:39 -07:00
Daniel Rosenwasser
a3e7ccb108 Use normalized text for text on string literal types. 2015-10-02 15:00:46 -07:00
Nathan Shively-Sanders
04510ac157 Automatic semicolon insertion for class modifiers
This includes public, private, protected, abstract

async and declare already work this way, but it looks
like they didn't block the completion list, so I added
them to the list too.
2015-10-02 14:30:31 -07:00
Wesley Wigham
8e409f34c7 new baselines for sourcemaps tests (given that modules can now get emitted into single out) 2015-10-02 13:22:36 -07:00
Zhengbo Li
98eaeba4f1 temp save 2015-10-02 11:49:30 -07:00
Ryan Cavanaugh
19b208cec6 Merge pull request #5040 from RyanCavanaugh/fix4688
Identify JSX Spread Attributes as Expression parents
2015-10-02 08:00:32 -07:00
Vladimir Matveev
ca0d580a14 merge with master, fix linter issues 2015-10-01 23:20:24 -07:00
Vladimir Matveev
9d24e0f223 Merge branch 'master' into reachabilityChecks 2015-10-01 23:12:23 -07:00
Ron Buckton
8a41cdeb14 Fix linter errors 2015-10-01 20:16:40 -07:00
Wesley Wigham
122753b50a sourcemap correctness 2015-10-01 19:23:12 -07:00
Wesley Wigham
cc95dcac1b Fix lint error that was commited
This is what happens when your merge PRs by hand and forget to run the linter. You break everyone's PRs.
2015-10-01 18:33:52 -07:00
Ron Buckton
be6e43e108 Merge branch 'master' into es3Decorators 2015-10-01 16:56:25 -07:00
Daniel Rosenwasser
dc0e368f82 Make string literals valid types in type lists. 2015-10-01 16:45:48 -07:00
Zhengbo Li
4dcf8c7737 bug fixes 2015-10-01 15:59:03 -07:00
Daniel Rosenwasser
191be4f8fe Make string literals valid constituent types nodes in the parser. 2015-10-01 15:55:36 -07:00
Mohamed Hegazy
2d78df49a4 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-10-01 15:54:41 -07:00
Zhengbo Li
5daa100bf4 unify the node filewatcher in sys.ts and server.ts 2015-10-01 15:40:13 -07:00
zhengbli
0bc5c14d51 Change fileWatcher in sys for node 4 2015-10-01 15:25:43 -07:00
Vladimir Matveev
ae175d0f76 merge with master 2015-10-01 14:05:10 -07:00
Wesley Wigham
b6a57ea8af Concatenated module emit fixes up all included paths 2015-10-01 12:44:24 -07:00
Daniel Rosenwasser
acef223f95 Merge pull request #5043 from Microsoft/findRefsOnVarInExtends
Correctly recognize value symbol presence of expressions in extends clauses
2015-10-01 12:36:12 -07:00
Wesley Wigham
7d067890ce naive change 2015-10-01 11:25:47 -07:00
zhengbli
1860f4358e Add msapp content back, only remove the internal content 2015-10-01 10:07:11 -07:00
zhengbli
de902e2c6e Remove MS specific types from lib.d.ts 2015-10-01 10:03:54 -07:00
Zhengbo Li
a6ba6fa10a Merge pull request #5042 from zhengbli/FixFloat32ArrayInLib
Fix the bug turning Float32Array type to any
2015-10-01 10:02:42 -07:00
Mohamed Hegazy
7e6a27f1f7 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-10-01 09:38:22 -07:00
Daniel Rosenwasser
dfb95b8692 Merge pull request #5050 from plantain-00/issue4701
Error message should be fixed for ambient module inside namespace
2015-09-30 21:40:28 -07:00
yaoyao
2428e65ac3 change the references to the error message 2015-10-01 10:05:40 +08:00
yaoyao
aa9fa90967 Error message should be fixed for ambient module inside namespace 2015-10-01 08:58:59 +08:00
Mohamed Hegazy
c6260160b7 Merge branch 'master' into ShyykoSerhiy-master 2015-09-30 16:30:59 -07:00
Mohamed Hegazy
2b6d2a9f71 Merge branch 'master' of https://github.com/ShyykoSerhiy/TypeScript into ShyykoSerhiy-master
Conflicts:
	src/compiler/sys.ts
	src/compiler/tsc.ts
2015-09-30 16:30:49 -07:00
Wesley Wigham
b95e1ff6d8 This is what zero linter errors feels like 2015-09-30 16:10:52 -07:00
Wesley Wigham
3fe379ce52 lint harness, disablow control flow analysis because buggy 2015-09-30 15:45:23 -07:00
Ryan Cavanaugh
590569b87d Handle indirect imports of JSX elements from external modules
Fixes #4675
2015-09-30 15:20:56 -07:00
Daniel Rosenwasser
48de0b6ff6 Account for interface extends clauses. 2015-09-30 14:30:54 -07:00
zhengbli
660058dcde Fix the bug turning Float32Array type to any 2015-09-30 13:55:29 -07:00
Daniel Rosenwasser
f80fa8ea82 Use appropriate resolution meaning. 2015-09-30 13:50:29 -07:00
Ryan Cavanaugh
3bb66a130f JSX Spread Attributes are expression parents
Fixes #4688
2015-09-30 13:39:40 -07:00
Anders Hejlsberg
cbe2f3df64 Merge pull request #4910 from Microsoft/polymorphicThisType
Polymorphic 'this' type
2015-09-30 13:18:33 -07:00
Ryan Cavanaugh
a4db4be4b6 Merge pull request #5019 from RyanCavanaugh/fix4731
Issue correct completions in 'as' operator
2015-09-30 13:11:09 -07:00
Dirk Baeumer
2f8e4fa6bd Fixed unnecessay whitespace changes 2015-09-30 09:18:50 +02:00
Dirk Baeumer
9a85ad6a4e Fixed #5032: tsserver: Format on type broken 2015-09-30 09:10:56 +02:00
Vladimir Matveev
87825ee11b Merge pull request #5024 from Microsoft/importsInAmbientModules
collect imports and exports in ambient external modules
2015-09-29 17:02:07 -07:00
Zhengbo Li
4ad216073c Merge pull request #4994 from zhengbli/i4959
Avoid deleting trailing white spaces in templates
2015-09-29 16:53:40 -07:00