Mohamed Hegazy
1f63fbbc08
Merge branch 'fix11857' of https://github.com/RyanCavanaugh/TypeScript into RyanCavanaugh-fix11857
2017-10-14 11:31:39 -07:00
Anders Hejlsberg
8e47c18636
Accept new baselines
2017-10-14 11:13:52 -07:00
Anders Hejlsberg
ee0715a073
Add tests
2017-10-14 11:13:40 -07:00
Anders Hejlsberg
fa65bd2062
Mapped type { [P in any]: T } should yield { [x: string]: T }
2017-10-14 09:53:51 -07:00
csigs
48d380f328
LEGO: Merge pull request 19181
...
LEGO: Merge pull request 19181
2017-10-13 21:10:21 -07:00
csigs
40cb9656f9
LEGO: check in for master to temporary branch.
2017-10-14 04:10:04 +00:00
Anders Hejlsberg
07ff0fdb81
Properly handle mapped types with 'keyof any'
2017-10-13 16:54:57 -07:00
Daniel Rosenwasser
144026cd3b
Merge pull request #19174 from Microsoft/correctlyScopedtaggedTemplates-master
...
Fix uniqueness for tagged template variables
2017-10-13 16:54:47 -07:00
Mohamed Hegazy
faa04a2402
Update generated files ( #19177 )
2017-10-13 16:47:40 -07:00
Armando Aguirre
c6a8a32b71
Fixed api reference tests
2017-10-13 16:36:25 -07:00
Daniel Rosenwasser
258c4e0bcc
Accepted baselines.
2017-10-13 15:40:32 -07:00
Daniel Rosenwasser
50085bab27
Create truly unique names for tagged template strings.
2017-10-13 15:40:32 -07:00
Daniel Rosenwasser
16f7f6f2e9
Added test case.
2017-10-13 15:40:31 -07:00
csigs
e537a7bdf5
LEGO: Merge pull request 19171
...
LEGO: Merge pull request 19171
2017-10-13 15:10:41 -07:00
csigs
fadf4914bb
LEGO: check in for master to temporary branch.
2017-10-13 22:10:24 +00:00
Andy
769d202d4c
In getContextuallyTypedParameterType, skip a this
parameter when counting parameter index ( #19155 )
2017-10-13 14:53:52 -07:00
Nathan Shively-Sanders
22769d95e1
Merge pull request #18747 from Microsoft/refactor-jsdoc-types-to-typescript
...
Refactor jsdoc types to typescript
2017-10-13 10:21:54 -07:00
Nathan Shively-Sanders
4cf06bbb02
Fix spacing lint
2017-10-13 10:02:04 -07:00
Nathan Shively-Sanders
84e3507151
return more Debug.fails instead of undefined.
2017-10-13 09:45:41 -07:00
Nathan Shively-Sanders
c83daa6481
JSDoc->type refactor:Renames+improve never handling
2017-10-13 09:38:01 -07:00
csigs
027528e9b8
LEGO: Merge pull request 19157
...
LEGO: Merge pull request 19157
2017-10-13 09:10:27 -07:00
csigs
c3a2dc3f44
LEGO: check in for master to temporary branch.
2017-10-13 16:10:06 +00:00
Andy
6099b09a6e
Create source files lazily in tests ( #19143 )
2017-10-13 07:17:17 -07:00
Armando Aguirre
1cb2d24c5d
Added DefinitionAndBoundSpan command
2017-10-12 17:18:38 -07:00
Andrew Casey
d940cdadfe
Merge pull request #19141 from amcasey/MissingNewlineAtEOF
...
Insert a line break before a function at EOF if needed
2017-10-12 15:28:37 -07:00
Wesley Wigham
de0e475c64
Recreate old decorator metadata behavior ( #19089 )
...
* Emulate pre 2.4 metadata behavior of eliding null and undefined from unions without strictNullChecks
* Accept baseline
* Update comment
* Update for second old baseline
* Respect strict
2017-10-12 15:05:04 -07:00
Nathan Shively-Sanders
f35764d4ec
Fix duplicated JSDoc comments
...
Incorporate suppressLeadingAndTrailingTrivia just added by @amcasey.
2017-10-12 14:28:34 -07:00
Andrew Casey
2ea4cfe23b
Insert a line break before a function at EOF if needed
...
This is a pre-existing issue that became more obvious after refining
trivia handling.
2017-10-12 14:19:36 -07:00
Nathan Shively-Sanders
c2c18a8d06
Merge branch 'master' into refactor-jsdoc-types-to-typescript
2017-10-12 14:18:28 -07:00
Andrew Casey
98f04e6cfd
Merge pull request #19135 from amcasey/GH18626
...
Introduce and consume suppressLeadingAndTrailingTrivia
2017-10-12 14:10:28 -07:00
Andrew Casey
6bfad52225
Update missed baseline
2017-10-12 13:23:08 -07:00
Wesley Wigham
9af21eb00e
Transform nested dynamic imports ( #18998 )
...
* Fix nested dynamic imports when targeting es6
* Fixup nested dynamic imports when targeting downlevel
* Remove duplicated expressions in UMD emit
* Code review feedback, clone arg if need be
* More CR feedback, apply user quotemark styles
* Remove blank lines
* Use behavior of visitEachChild instead of enw codepath, add new test, use createLiteral to retain quotemarks
* Set lib flag for test
2017-10-12 12:53:12 -07:00
Sheetal Nandi
b68a636348
Fix the way configured project's reference is managed so that the open file
2017-10-12 11:50:24 -07:00
Sheetal Nandi
412e31b8bc
Adding test case where opened file included in project is not added to ref count of configured project
2017-10-12 11:50:23 -07:00
Sheetal Nandi
29ed92e20d
Merge pull request #19118 from Microsoft/caseSensitivityInferredProjectRoot
...
Handles case sensitivity of project root with respect to inferred projects
2017-10-12 11:49:29 -07:00
Nathan Shively-Sanders
b440d75bc4
Test refactor of JSDoc @template tag
2017-10-12 11:40:40 -07:00
Nathan Shively-Sanders
123347d5c4
Convert @template tag to type parameters in refactor
2017-10-12 11:40:07 -07:00
Andrew Casey
4de6b0dd2d
Introduce and consume suppressLeadingAndTrailingTrivia
...
Fixes #18626
2017-10-12 11:34:34 -07:00
Andrew Casey
c2150f4d26
Merge pull request #19132 from amcasey/JumpInFinallyTest
...
Add missing test coverage for jumps in finally blocks
2017-10-12 11:25:11 -07:00
Andrew Casey
b12947a35b
Merge pull request #18931 from amcasey/ExtractConstantThis
...
Allow Extract Constant into enclosing scope in spite of RangeFacts.UsesThis
2017-10-12 11:25:00 -07:00
Nathan Shively-Sanders
54ad9a6c82
Merge pull request #19112 from Microsoft/fill-missing-type-arguments-during-error-reporting
...
Fill missing type arguments during error reporting
2017-10-12 11:02:25 -07:00
Nathan Shively-Sanders
27b4417304
Assert:checkTypeArguments isn't passed too many type arguments
2017-10-12 10:38:02 -07:00
Mohamed Hegazy
260d37e8ea
Merge branch 'master' into refactor-jsdoc-types-to-typescript
2017-10-12 10:23:21 -07:00
Mohamed Hegazy
4487917f89
Quick fix for no-implicit-any errors to add explicit type annotation ( #14786 )
...
* Infer from usage quick fix
* Change full function singature
* Add property/element access support
* Fix a few issues
* Some cleanup
* Expose getArrayType and getPromiseType
* Switch to collecting all usage before infering
* Infer array and promise type arguments
* Handel enums in binary operators
* consolidate usage of addCandidateTypes
* Handel rest paramters
* Properly handel `+=` and `+` inference for numbers and strings
* Add print quickfixes debug helper
* Add rest param tests
* Add optional paramter tests
* Handel set accessors
* Support getters
* Support no implicit any error for variable at use site
* Support properties
* Only offer quick fix if an infered type other than any is available
* Rename functions
* Move to a separate namespace
* Check cancellation token
* Cleanup
* Check for accesibile symbols where serializing types
* Remove JS support
* Reorganize functions
* Mark APIs as internal
* Fix lint errors
* Removed conflict markers.
* Update 'createSymbol' to use '__String'.
* Fixed most problems relating to '__String' and 'includeJsDocComments' in the fix itself.
* Addressed most API changes.
* Make all helpers internal
* Use a diffrent writer and not the built-in single line write
* Infer types for all parameters in a parameter list instead of one at a time
* Accept baselines
* Code review commments
* Respond to code review comments
2017-10-12 10:14:58 -07:00
Nathan Shively-Sanders
8ea13bef48
Fix lint
2017-10-12 10:11:09 -07:00
Nathan Shively-Sanders
da0c79f2a3
Simplify checkTypeArguments based on PR comments
2017-10-12 10:09:52 -07:00
Andrew Casey
e4313f62c6
Add missing test coverage for jumps in finally blocks
2017-10-12 09:45:10 -07:00
Andrew Casey
73826bdb7b
Allow Extract Constant into enclosing scope in spite of RangeFacts.UsesThis
2017-10-12 09:32:05 -07:00
Andrew Casey
b5e6b890f1
Merge pull request #18997 from amcasey/ExtractDeclaration
...
Allow extraction of variable decls used outside the extracted range
2017-10-12 09:31:19 -07:00
Sheetal Nandi
625486455d
Update public api baseline
2017-10-12 09:02:22 -07:00