| JSDT question - how can I recognize an optional function parameter ? [message #876316] |
Thu, 24 May 2012 07:07  |
Hoze Nadav Messages: 9 Registered: July 2009 |
Junior Member |
|
|
I'm developing a plugin in eclipse with an editor that integrates with JS and I'm using the JSDT Core API to do so.
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.01488 seconds