Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » js library file - what is the format?
js library file - what is the format? [message #232186] Fri, 05 June 2009 13:54 Go to next message
Eclipse UserFriend
hi;
our project defines javascript classes in c/c++ (a la SpiderMonkey); and
i'd like to define stubs for these classes that specify the classnames,
methods and properties... so that code highlighting and syntax checking
would be accurate.

questions:
1) is there a specific format to a js library file - one that has not have
documentation for each class/method/property
2) any sample js library file available ? if so - where can i get it?
(even the firebug js file is ok... just want to look at something that
works with JSDT and emulate that syntax).
3) where can i learn about jsdoc syntax ?

kindest regards,
Sheshadri
Re: js library file - what is the format? [message #232235 is a reply to message #232186] Sun, 07 June 2009 22:44 Go to previous message
Eclipse UserFriend
Sheshadri Mantha wrote:
> our project defines javascript classes in c/c++ (a la SpiderMonkey); and
> i'd like to define stubs for these classes that specify the classnames,
> methods and properties... so that code highlighting and syntax checking
> would be accurate.
>
> questions:
> 1) is there a specific format to a js library file - one that has not
> have documentation for each class/method/property
> 2) any sample js library file available ? if so - where can i get
it?
> (even the firebug js file is ok... just want to look at something
that
> works with JSDT and emulate that syntax).
> 3) where can i learn about jsdoc syntax ?

The format is plain JavaScript; just leave your method contents
empty. Documentation is still encouraged since it improves accuracy
of return types and argument types. All of the provided libraries
are in this format, as they're emulating what a compliant runtime
would provide. Tags are documented at the JSDoc Wiki,
http://code.google.com/p/jsdoc-toolkit/w/list .

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Previous Topic:User libraries not copied
Next Topic:WSDLValidator is internal
Goto Forum:
  


Current Time: Wed Jul 02 20:21:20 EDT 2025

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

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

Back to the top