Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJSDT question - how can I recognize an optional function parameter ?
https://www.eclipse.org/forums/index.php/mv/msg/354945/876316/#msg_876316
I need to add a new feature which depends on whether the last param of a function is optional.
The JSDoc is updated correctly - example:
/**
* @param {String} userName The user name to use when logging in.
* @param {String} [accessLevel] The user accessLevel is optional.
*/
function logIn(userName, accessLevel) {
// ...
}
but how do I access this information from jsdt ?
Appreciate your help.
Thanks,
Nadav]]>Hoze Nadav2012-05-24T11:07:45-00:00Re: JSDT question - how can I recognize an optional function parameter ?
https://www.eclipse.org/forums/index.php/mv/msg/354945/876498/#msg_876498
Nitin Dahyabhai2012-05-24T18:19:54-00:00