Commit Graph

11606 Commits

Author SHA1 Message Date
Cotton Hou
9a8e1bf8a6 Add ES2017 string padding (#12152)
* add es2017.string.d.ts for String.prototype.{padStart,padEnd}

* append es2017.string.d.ts into es2017.d.ts

* add es2017.string into commandLineParser

* append es2017.string into error message for unit tests of commandLineParser

* append es2017.string into Gulpfile

* append es2017.string into Jakefile
2016-11-10 12:43:51 -08:00
Nathan Shively-Sanders
205ce3247f Merge pull request #12154 from Microsoft/import-helpers-reports-errors-for-__rest
Import helpers reports errors for __rest
2016-11-10 12:29:39 -08:00
Vladimir Matveev
3ecb60146b synthesize complete import declaration for tslib (#12151) 2016-11-10 11:57:37 -08:00
Nathan Shively-Sanders
d6bf27d6b6 Correctly check spread assignments in strict mode
Previously it crashed in the binder.
2016-11-10 11:46:10 -08:00
Nathan Shively-Sanders
0d4ac01574 Report errors for import helpers missing __rest 2016-11-10 11:45:56 -08:00
Anders Hejlsberg
64d269885c Merge branch 'master' into mappedTypes
# Conflicts:
#	src/compiler/checker.ts
2016-11-10 11:17:53 -08:00
Anders Hejlsberg
aca1ab3bfe Check mapped type constraint is assignable to string | number 2016-11-10 10:41:17 -08:00
Sheetal Nandi
c87bce1119 Merge pull request #11978 from Microsoft/errorReportingInJsFile
Report all the js file errors and skip only the nodes that are not allowed in JS file
2016-11-10 10:37:16 -08:00
Anders Hejlsberg
b81c226639 Use pull model to obtain type alias information for type nodes 2016-11-10 10:31:24 -08:00
Sheetal Nandi
c458576553 Merge pull request #12135 from Microsoft/jsxFactory
Support for --jsxFactory option
2016-11-10 09:49:57 -08:00
Sheetal Nandi
2eba10a25b Updated condition for more readability 2016-11-10 09:40:50 -08:00
Myles Megyesi
c05e226c4b Adds error message for incompatible assignment of identically named type
Fixes issue #12050
2016-11-10 11:32:03 -06:00
Nathan Shively-Sanders
be5e5fb872 Merge pull request #11150 from Microsoft/object-spread
Object spread/rest
2016-11-10 09:28:58 -08:00
Nathan Shively-Sanders
6398e0d6dd Merge pull request #11633 from Microsoft/fix-comparable-in-switch
Fix comparable in switch
2016-11-10 09:20:46 -08:00
Nathan Shively-Sanders
25462c9571 Merge pull request #12028 from Microsoft/object-rest
Object rest
2016-11-10 09:18:13 -08:00
Anders Hejlsberg
2170ff6f16 Defer resolution of mapped types to enable recursive definitions 2016-11-10 09:11:21 -08:00
Sheetal Nandi
dd7f00f20b Parse the jsxFactory again in the checker instead of using cached value in the program 2016-11-10 08:54:13 -08:00
Herrington Darkholme
4c82e2de4f Merge branch 'master' of github.com:Microsoft/TypeScript into delete-readonly 2016-11-10 11:17:06 +08:00
Arthur Ozga
0591e1bd20 Simplify Testing 2016-11-09 17:47:52 -08:00
Ron Buckton
4f3fb80b98 Parse, check, and downlevel emit for for-await-of 2016-11-09 17:40:17 -08:00
Ron Buckton
4b5686a52f Added emit transforms for async generators. 2016-11-09 17:06:08 -08:00
Sheetal Nandi
35e4c459f5 Transpile unit test case 2016-11-09 16:50:40 -08:00
Sheetal Nandi
3d6950d023 When emitting use jsx factory entity expression if provided 2016-11-09 16:40:11 -08:00
Arthur Ozga
b1e97b370f Get one fix per interface 2016-11-09 16:37:26 -08:00
Sheetal Nandi
06affa6672 Resolve first identifier of the jsxFactory as part of type check 2016-11-09 15:35:54 -08:00
Ron Buckton
b5cc96c87d Merge branch 'asyncGeneratorsUpLevel' into asyncGenerators 2016-11-09 14:57:23 -08:00
Ron Buckton
bd867785bc type checking for pseudoiterable 2016-11-09 14:40:47 -08:00
Sheetal Nandi
f7bac98948 Verify that jsxFactory is either identifier or qualified name 2016-11-09 14:32:42 -08:00
Nathan Shively-Sanders
fcf32c444f Treat | undefined like optionality in spread type 2016-11-09 13:39:42 -08:00
Sheetal Nandi
4b8a55793a Add support for taking in jsxFactory option and report errors for invalid combinations 2016-11-09 12:23:59 -08:00
about-code
02ee7c7953 Merge remote-tracking branch 'upstream/master' 2016-11-09 21:12:56 +01:00
about-code
b623f3771e Fix #442: (es3, es5, es6+) Show compiler errors for conflicting properties. 2016-11-09 21:08:56 +01:00
Sheetal Nandi
78bb276216 Merge branch 'master' into errorReportingInJsFile 2016-11-09 11:38:11 -08:00
Nathan Shively-Sanders
214ce38a6a Downlevel array destructuring to ES6 in object rest
Previously array destructuring inside an object destructuring with an
object rest would downlevel the array destructuring to ES5. This breaks
if the code that targets ES2015 is using iterators instead of arrays
since iterators don't support [0] or .slice that the ES5 emit uses.
2016-11-09 10:47:54 -08:00
Sheetal Nandi
6456325973 Handle abstract and const modifiers 2016-11-09 10:39:46 -08:00
Anders Hejlsberg
3dd11e48a9 Properly implement type relationship for '[P in S]: X' and '[P in T]: Y' 2016-11-09 09:59:15 -08:00
Andy Hanson
7079d0450e Fix duplicate function error 2016-11-09 09:12:43 -08:00
Andy Hanson
d559f7f17d Merge branch 'master' into symlink3 2016-11-09 09:11:25 -08:00
Andy Hanson
9c80909a90 Resolve symlinks for type reference directives too. 2016-11-09 08:08:10 -08:00
Ron Buckton
74ec093d01 Merge branch 'emitHelper' into asyncGenerators 2016-11-08 18:13:31 -08:00
Arthur Ozga
d842a6f665 Merge branch 'master' into interfaceFixes 2016-11-08 16:49:49 -08:00
Arthur Ozga
1d6ef6aedd cleanup 2016-11-08 16:48:54 -08:00
Ron Buckton
bac9350847 Merge branch 'master' into emitHelper 2016-11-08 16:36:31 -08:00
Ron Buckton
12cd0bfb69 Remove EmitHelperState, general helper cleanup. 2016-11-08 16:32:41 -08:00
Vladimir Matveev
28cc938503 (signature help) type parameter lists are never variadic (#12112) 2016-11-08 16:10:34 -08:00
Vladimir Matveev
9a9f45f0fb use createHash from ServerHost instead of explicit require (#12043)
* use createHash from ServerHost instead of explicit require

* added missing method in ServerHost stub
2016-11-08 15:32:53 -08:00
Arthur Ozga
4973852722 fix linter errors 2016-11-08 14:37:46 -08:00
Anders Hejlsberg
aca7e2fa3b Don't include private/protected properties in keyof T 2016-11-08 13:38:52 -08:00
Arthur Ozga
55bf3e3ff0 Use new engine for interface fixes 2016-11-08 13:15:58 -08:00
Arthur Ozga
7141a2a714 Better error message in fourslash 2016-11-08 13:15:09 -08:00