Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » JSDT question - how can I recognize an optional function parameter ?
JSDT question - how can I recognize an optional function parameter ? [message #876316] Thu, 24 May 2012 07:07 Go to next message
Eclipse UserFriend
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
Re: JSDT question - how can I recognize an optional function parameter ? [message #876498 is a reply to message #876316] Thu, 24 May 2012 14:19 Go to previous message
Eclipse UserFriend
JSDT doesn't currently take notice of or record that information for its own future use, but the doc as a whole should be attached to the method declaration.
Previous Topic:Open file outside project-Eclipse File System (EFS)
Next Topic:Reconverting an existing web project to a Dynamic
Goto Forum:
  


Current Time: Tue Jul 22 22:41:35 EDT 2025

Powered by FUDForum. Page generated in 0.07770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top