Commit Graph

18283 Commits

Author SHA1 Message Date
Arthur Ozga bdaeb63e55 Merge pull request #16495 from aozgaa/codeFixPrefixUnused2-port2.4
port #16309 (prefix unused with _) to release-2.4
2017-06-13 17:10:36 -07:00
Nathan Shively-Sanders ca82cf13be Test:correct parens around keyof in decl emit 2017-06-13 14:19:07 -07:00
Nathan Shively-Sanders 21166f4824 Add parentheses around keyof in declaration emit
When needed. Use InElementType flag to determine this.
2017-06-13 14:18:36 -07:00
Nathan Shively-Sanders 2a6575c36f Test:declaration emit of optional parameter props 2017-06-13 14:05:40 -07:00
Nathan Shively-Sanders 97373898bc Add isOptionalUninitializedParameterProperty
Improves declaration emit and code readability
2017-06-13 14:05:33 -07:00
Nathan Shively-Sanders e8a5bd20ae Use checker for decl emit:optional parameter props
Optional parameter properties create a property with a type that unions
with undefined when strictNullChecks is on. This needs to be reflected
in the generated declaration.
2017-06-13 14:05:23 -07:00
Ron Buckton d5ac244306 Merge pull request #16496 from Microsoft/fix16417
Fix decorated class with extends in new class emit
2017-06-13 13:27:18 -07:00
Mohamed Hegazy 68e2a4561d Simplify generic function call error reporting (#16439) (#16501)
* Simplify error reporting for generic functions

* Accept new baselines

* Fix fourslash tests
2017-06-13 13:21:29 -07:00
Yui acc4737f15 Merge pull request #16490 from Microsoft/release_portLSDynamicImport
[Release-2.4] Port basic language service support to release branch
2017-06-13 13:09:46 -07:00
Kanchalai Tanglertsampan f3e3158928 Merge branch 'release-2.4' into release_portLSDynamicImport 2017-06-13 12:47:25 -07:00
Ron Buckton 7cf6fdb9df Merge branch 'release-2.4' into fix16417 2017-06-13 12:44:54 -07:00
Yui 1b20d01de0 Merge pull request #16491 from Microsoft/release-2.4_runCI
[Release-2.4] Runt CI on release-2.4
2017-06-13 12:44:02 -07:00
Nathan Shively-Sanders 032439f7d8 Test @typedef in @typedef-only JS files
Previously there was nothing for the @typedef to attach to, so the
comment was never parsed. Now these comments attach to the EOF token.
2017-06-13 11:57:38 -07:00
Nathan Shively-Sanders 898c64b432 Add JSDoc to EOF token to catch missed @typedefs 2017-06-13 11:57:32 -07:00
Ron Buckton d7fc3bcbfa Fix class extends+decorator with new class emit 2017-06-13 11:49:15 -07:00
Arthur Ozga db35c639eb port #16309 (prefix unused with _) to release-2.4 2017-06-13 11:36:18 -07:00
Yui e93d1963ee Runt CI on release-2.4 2017-06-13 11:24:53 -07:00
Kanchalai Tanglertsampan 3a6838d3bb Address PR 2017-06-13 10:49:39 -07:00
Yui T 70b01a9b65 Update baseline 2017-06-13 10:49:36 -07:00
Kanchalai Tanglertsampan 7d76486c15 Add fourslash rename, find-all-reference on imported property 2017-06-13 10:49:31 -07:00
Kanchalai Tanglertsampan 6842520cef Implement LS on string-literal of dynamic import 2017-06-13 10:49:26 -07:00
Mohamed Hegazy 985682de03 Update LKG 2017-06-12 17:52:03 -07:00
Mohamed Hegazy 915b486e84 Update version 2017-06-12 17:51:24 -07:00
Mohamed Hegazy a15a7ecee1 Merge branch 'master' into release-2.4 2017-06-12 17:44:50 -07:00
Nathan Shively-Sanders 3d8cf62846 Merge pull request #16463 from Microsoft/jsdoc-@template-in-scope-as-type-parameter
Jsdoc @template in scope as type parameter
2017-06-12 16:07:49 -07:00
Nathan Shively-Sanders ecc211345a Merge pull request #16465 from Microsoft/skip-non-null-assertion-for-reference-expr
Skip non-null assertion for references
2017-06-12 15:33:36 -07:00
Andy 6a8a6c34b4 getPossibleSymbolReferencePositions: Always use full start (#16420) 2017-06-12 15:24:31 -07:00
Andy 8b55675cb4 Simplify isDeclarationNameOrImportPropertyName (#16421) 2017-06-12 15:23:45 -07:00
Nathan Shively-Sanders 3b97c683e3 Merge pull request #16466 from Microsoft/fix-build-break
Fix reference to isTypeParameterDeclaration in services
2017-06-12 15:21:05 -07:00
Nathan Shively-Sanders 93bdd3cb39 Fix reference to isTypeParameterDeclaration in services
Fixes build break
2017-06-12 15:07:04 -07:00
Nathan Shively-Sanders 497d627a02 Test: Allow ++ after non-null assertion 2017-06-12 14:41:10 -07:00
Nathan Shively-Sanders 55beb14bca Checking references skips assertions+parentheses 2017-06-12 14:40:01 -07:00
Andy fbcddb61e2 Don't bind JSDoc namespace in a TS file (#16416) 2017-06-12 14:35:35 -07:00
Andy 050126c1b6 Rename isTypeParameter to isTypeParameterDeclaration (#16422) 2017-06-12 14:31:01 -07:00
Nathan Shively-Sanders 024ab094b3 Update jsdoc of new function 2017-06-12 14:27:43 -07:00
Nathan Shively-Sanders abc9e687ac Consolidate getting type parameter declarations
Create getEffectiveTypeParameterDeclarations in utilities.ts
2017-06-12 14:23:47 -07:00
Nathan Shively-Sanders eda7978dd1 Cleanup getTypeParametersFromDeclaration et al 2017-06-12 14:06:46 -07:00
Anders Hejlsberg dde60bb624 Merge pull request #16368 from Microsoft/stricterGenericChecks
Stricter generic signature checks
2017-06-12 13:56:21 -07:00
Nathan Shively-Sanders da83eb967a Returned generic function is instantiated correctly 2017-06-12 13:56:17 -07:00
Nathan Shively-Sanders 1b585dd503 Type params introduced by @template are in scope
The test to make sure that type parameters are in scope for
instantiation previously ignored type parameters created by `@template`.
Now it correctly says that they are in scope.
2017-06-12 13:55:07 -07:00
Anders Hejlsberg 4e9e62d861 Add test 2017-06-12 13:17:24 -07:00
Anders Hejlsberg dc28aaa132 Add --noStrictGenericChecks compiler option 2017-06-12 13:09:01 -07:00
Andy 7fb821e45b Support completions in destructuring in for-of (#16454) 2017-06-12 12:12:51 -07:00
Mohamed Hegazy 14fa6ac8eb Update LKG v2.4.0 v2.4-rc 2017-06-12 11:45:04 -07:00
Andy 2748b3b334 Add isForInOrOfStatement utility (#16455) 2017-06-12 11:08:41 -07:00
Andy 44d5c44cb5 Document highlights for a JSX tag should just be the matching tag, not all references (#16453) 2017-06-12 11:08:21 -07:00
Anders Hejlsberg fd1edd2579 Merge pull request #16446 from Microsoft/fixNeverIntersection
Intersection with 'never' is always 'never'
2017-06-12 10:37:13 -07:00
Anders Hejlsberg a74b790ed5 Add tests 2017-06-11 14:54:46 -07:00
Anders Hejlsberg f81925992c Intersection with 'never' type always produces 'never' 2017-06-11 14:54:36 -07:00
Mohamed Hegazy a404edae38 Split import into var and type to avoid breaking backword compatability of tsserverlibrary (#16409) 2017-06-10 11:12:09 -07:00