Commit Graph

26317 Commits

Author SHA1 Message Date
Nathan Shively-Sanders a07a9447bb Merge pull request #11265 from Microsoft/improve-debugObjectHost-shim
Use `new Function`-less access to `this` for debugObjectHost
2016-09-29 16:29:50 -07:00
Arthur Ozga 4b07377efb Fix fragment handling 2016-09-29 16:17:44 -07:00
Nathan Shively-Sanders 4162897350 Use eval-less access to this for debugObjectHost
Originally it was just `debugObjectHost = this as any`, but this breaks
--noImplicitThis. Now it's `(function () { return this })()`.
2016-09-29 16:14:19 -07:00
Mohamed Hegazy 1187942a4b Merge pull request #11197 from Microsoft/release205-to-master
Merge release-2.0.5 to master
2016-09-29 15:12:30 -07:00
Anders Hejlsberg 447901367a Report error on both declaration and reference when CFA can't determine type 2016-09-29 15:03:56 -07:00
Anders Hejlsberg 0621f7e9a1 Control flow typing for variables with null or undefined initializer 2016-09-29 13:04:51 -07:00
Nathan Shively-Sanders 9e1b5300c4 Put TypeFlags.ObjectLiteral back 2016-09-29 11:26:58 -07:00
Nathan Shively-Sanders 05ef9dd608 Merge branch 'master' into object-spread 2016-09-29 11:02:04 -07:00
Nathan Shively-Sanders 561168c01c Make isObjectLiteral required 2016-09-29 10:46:54 -07:00
Nathan Shively-Sanders 6efa8bf904 Merge pull request #11176 from renuo/fix10601
Fix misleading error TS2410 from issue #10601
2016-09-29 10:33:55 -07:00
Nathan Shively-Sanders bc028a3cf0 Remove TypeFlags.ObjectLiteral, not Instantiated 2016-09-29 10:30:41 -07:00
Lukas Elmer 5c12fc556a Change the error message 2016-09-29 19:06:32 +02:00
jramsay 149dcf125e Merge pull request #11191 from Microsoft/JSCompletionCommitOnEnterFix
JS completion commit on enter fix
2016-09-29 09:56:57 -07:00
Lukas Elmer 3bd2226e35 Fix misleading error TS2410 from issue #10601 2016-09-29 16:02:18 +02:00
Andy Hanson 228ddde66e Ensure that checkGrammarModuleElementContext reliably returns true when there is bad grammar. 2016-09-29 06:15:48 -07:00
Daniel Rosenwasser 7f3db5cf18 Added overloads for 'map' on tuple types. 2016-09-29 00:41:06 -07:00
Ron Buckton f03be92e7d Remove ConstantValue flag, comment cleanup. 2016-09-28 18:57:17 -07:00
Anders Hejlsberg bd19f1db09 Merge branch 'master' into controlFlowLetVar 2016-09-28 18:44:20 -07:00
Arthur Ozga bfb2185c4f Merge branch 'master' into FixAbsoluteTripleSlashCompletions 2016-09-28 15:14:32 -07:00
Kanchalai Tanglertsampan 7945eb6f1a Only emit inferred type-alias if it is fully instantiated 2016-09-28 14:51:33 -07:00
Nathan Shively-Sanders 62c5bda3bb isDeclaredProperty: Use optional-boolean idiom
As elsewhere in the compiler code
2016-09-28 14:14:53 -07:00
Kitson Kelly 723ffab8df Improve Array.prototype.slice typing 2016-09-28 21:50:33 +01:00
Nathan Shively-Sanders 484e66fa09 Merge branch 'master' into object-spread 2016-09-28 10:33:47 -07:00
Nathan Shively-Sanders 8c70109d18 Turn 3 type flags into properties
1. Instantiated (only modifies anonymous types)
2. ObjectLiteralWithComputedProperties (only modifies [resolved] object types)
3. ThisType (only modifies type parameters)

This is needed for object spread and rest, which will each need a type
flag.

There are 4-5 other likely targets for removal, and I may remove those
later.
2016-09-28 09:52:08 -07:00
Vladimir Matveev 3f2e3919b4 revert versions 2016-09-27 23:36:19 -07:00
Daniel Rosenwasser c29ec6fe37 Consolidated 'super()' transformation logic into one function. 2016-09-27 20:53:15 -07:00
Zhengbo Li 60ab007d3a Merge pull request #11164 from zhengbli/updateLib09262016
Routine update of dom libs
2016-09-27 19:00:24 -07:00
Anders Hejlsberg 98f3f68c46 Merge pull request #11198 from Microsoft/partiallyDiscriminatedUnions
Properly handle partially discriminated unions
2016-09-27 16:55:17 -07:00
Nathan Shively-Sanders 7e7a26a358 Spreads w/a single type parameter assignable to that type parameter 2016-09-27 16:15:52 -07:00
Anders Hejlsberg 94a0daf2ea Properly handle partially discriminated unions 2016-09-27 16:03:12 -07:00
Mohamed Hegazy f7c7c002d8 Merge pull request #10932 from Microsoft/removeRequireNameColisionCheck
Remove require name collision check for ES6 modules and later
2016-09-27 15:06:15 -07:00
Vladimir Matveev f361ed19c1 fixes: merge issue in test baselines, linter 2016-09-27 15:04:34 -07:00
Daniel Rosenwasser b5a1031685 Moved code around, fixed indent, reworded comment. 2016-09-27 14:44:56 -07:00
Daniel Rosenwasser fb4b503834 Removed pointlessish overloads. 2016-09-27 14:44:54 -07:00
Daniel Rosenwasser f8fbc22ef2 Reuse the 'captureThisForNode' function. 2016-09-27 14:44:52 -07:00
Daniel Rosenwasser e0c35f2c82 Restore arrow function. 2016-09-27 14:44:50 -07:00
Daniel Rosenwasser c668644e0b Collapse 'super()' capture/returns into a single return statement for generated 'super()' calls. 2016-09-27 14:09:26 -07:00
Arthur Ozga 6dd548285f remove Comment 2016-09-27 14:04:57 -07:00
Vladimir Matveev 9c0e64d443 fix merge issues, restore tests 2016-09-27 14:02:10 -07:00
Arthur Ozga 8a479e8bfa Merge branch 'master' into FixAbsoluteTripleSlashCompletions 2016-09-27 13:54:14 -07:00
Jason Ramsay 0a83d797dd Issue: Commit on enter isn't working correctly for JS completions in VS
Fix: revert the change to always return true for isNewIdentifierLocation for JavaScript files.
With recent Roslyn completion list changes and the new VS default statement completion settings to "Only use Tab or Enter to commit" this change is no longer required.
There is no longer a completion on space issue for JavaScript in VS and the previous fix is stopping completion on enter from working correctly.
2016-09-27 13:22:48 -07:00
Vladimir Matveev 912e685f2a update LKG, resolve merge issues 2016-09-27 12:51:24 -07:00
Daniel Rosenwasser 4a5830dd0c Remove usage of 'useCapturedThis'. 2016-09-27 11:44:11 -07:00
Daniel Rosenwasser 5fadfd40d1 Merge remote-tracking branch 'origin/master' into useReturnedThisFromSuperCalls 2016-09-27 11:13:44 -07:00
Nathan Shively-Sanders 429b0d95ca Union multiple spread index signatures 2016-09-27 11:05:12 -07:00
Arthur Ozga 1f7b6e6a31 More comments 2016-09-27 10:54:03 -07:00
Nathan Shively-Sanders cfdf751768 Make index signatures work on spread types
Previously, they worked when they came from a spread type but not when
written in the object literal itself.
2016-09-27 10:30:13 -07:00
Vladimir Matveev d126173c40 Merge remote-tracking branch 'origin/master' into release205-to-master 2016-09-27 10:23:13 -07:00
Vladimir Matveev 833a46c091 merge with origin/master 2016-09-27 10:22:41 -07:00
Ron Buckton deae9f211b Merge branch 'master' into emitNode 2016-09-26 18:17:08 -07:00