Recognize the RHS of assignments as the JSDoc target expression

Fixes #6552
This commit is contained in:
Ryan Cavanaugh
2016-01-28 11:02:49 -08:00
parent fd879bb268
commit 364b08854b
3 changed files with 37 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
/// <reference path="fourslash.ts" />
// @allowNonTsExtensions: true
// @Filename: file.js
//// /**
//// * @param {number} a
//// * @param {string} b
//// */
//// exports.foo = function(a, b) {
//// a/*a*/;
//// b/*b*/
//// };
goTo.marker('a');
edit.insert('.');
verify.completionListContains('toFixed', undefined, undefined, 'method');
goTo.marker('b');
edit.insert('.');
verify.completionListContains('substr', undefined, undefined, 'method');