Community
Participate
Working Groups
I have a function in a JS file: var mortCal = function (homeCost, downPayment, interestRate, term) { this.homeCost = homeCost; this.downPayment = downPayment; this.interestRate = interestRate; this.term = term; }; I try to do: var mc = new mort* I attempt content assist where the * is. I would expect to see my inferred type mortCal as a proposal, but I do not. If I change the function to the following then it works correctly: function mortCal(homeCost, downPayment, interestRate, term) { this.homeCost = homeCost; this.downPayment = downPayment; this.interestRate = interestRate; this.term = term; };
Created attachment 182719 [details] patch
Patch stores a potential function name in the AbstractMethodDeclaration object if one can be determined during the inference step. If it is determined that the function has no selector and one is needed then the potential name is returned if one exists.
Checked into 3.2.3 and HEAD.