mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 20:37:00 -05:00
Parse JSDoc comments for ES6 class constructors and methods
Fixes #6646
This commit is contained in:
18
tests/cases/fourslash/getJavaScriptCompletions16.ts
Normal file
18
tests/cases/fourslash/getJavaScriptCompletions16.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @allowNonTsExtensions: true
|
||||
// @Filename: file.js
|
||||
//// "use strict";
|
||||
////
|
||||
//// class Something {
|
||||
////
|
||||
//// /**
|
||||
//// * @param {number} a
|
||||
//// */
|
||||
//// constructor(a, b) {
|
||||
//// a./**/
|
||||
//// }
|
||||
//// }
|
||||
|
||||
goTo.marker();
|
||||
verify.completionListContains('toFixed', undefined, undefined, 'method');
|
||||
Reference in New Issue
Block a user