Not. This is impossible, because the arguments of the function and the properties of the object are different variables, they cannot be both functional parameters and properties of the object. Moreover, such documentation would only confuse the developer, but would not help to understand the API.
I would advise you not to use @properties in this part of the documentation, but use @type:
Point = function (x, y) { this.x = x; this.y = y; }
But in fact, such detailed documentation is useless. What we say in the code Point.x = x is clear to any student.
Microfed
source share