NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Javascript JSDoc, ScriptDoc Support

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NetBeans Forums -> Ajax Users
View previous topic :: View next topic  
Author Message
aserron



Joined: 07 Jun 2011
Posts: 7
Location: Uruguay

PostPosted: Thu Oct 13, 2011 6:18 pm    Post subject: Javascript JSDoc, ScriptDoc Support Reply with quote

Netbeans states that support tags like @namespace.

But i dont find any page that really define which set of annotations are supported.

I need clean definition of what would expect regarding documentation and code assistence.

Please i love netbeans, point me to the correct please where i can discuss this and even help the comunity.
Back to top
paolosca



Joined: 09 Sep 2010
Posts: 384

PostPosted: Sun Oct 16, 2011 7:21 am    Post subject: Re: Javascript JSDoc, ScriptDoc Support Reply with quote

On 10/14/2011 02:18 AM, aserron wrote:
Quote:
Netbeans states that support tags like @namespace.
But i dont find any page that really define which set of annotations are supported.
I need clean definition of what would expect regarding documentation and code assistence.
Please i love netbeans, point me to the correct please where i can discuss this and even help the comunity.

Hi, I'm also looking for documentation regarding NetBeans support of
jsdoc but I couldn't find any, I'm still planing to document the js
libraries we made so I'm not really sure if there are unsupported tags
at the moment.

Running extracting strings in the javascript editor module I found the
following tags and I asssume they are all supported:

@argument
@augments
@cfg
@class
@config
@constructor
@deprecated
@description
@event
@example
@exception
@fileOverview
@function
@ignore
@inherits
@memberOf
@name
@namespace
@param
@private
@property
@return
@scope
@static
@type

For the details I follow the jsdoc toolkit handobook[1].


Regards,


Paolo.

[1] http://code.google.com/p/jsdoc-toolkit/wiki/TagReference
Back to top
aserron



Joined: 07 Jun 2011
Posts: 7
Location: Uruguay

PostPosted: Mon Oct 31, 2011 5:22 pm    Post subject: Reply with quote

Excellent move, at least we know which tags we shouldn't even try.

But don't expect tags work as they should, take this test.

Code:
var Ns = {};

/**
 * @inherits Array
 */
Ns.TestInherit = function(){
    this.test = 1;
}
var nodoc       = new Ns.TestInherit();
var arr         = new TestInherit();

// doc, no array methods
nodoc.test;
// no doc, no array
arr;

/**
 * @extends Array
 */
Ns.TestExtends = function(){
    this.test = 1;
}
var noExtended  = new Ns.TestExtends();
var extended    = new TestExtends();

// documented, no array methods
noExtended;
// no class doc, array methods documented.
extended.concat(value1, value2, valueN);


As you see "inherits" doesn't work, and "extends" add a global symbol that doesn't exist.

Still the parser automatic detect when you call a super class constructor in the constructor function.

We still need more data or simple final spec sheet from the developers!.
Back to top
LeonPaulette



Joined: 09 Apr 2012
Posts: 1
Location: United States

PostPosted: Mon Apr 09, 2012 12:18 pm    Post subject: Reply with quote

thank you paolosca and aserron!
it's a good thing i found the post - filling the gaps in my knowledge
Wink
there is surprisingly little information on the topic in the Internet
:/

______________________
free crossword puzzle maker
Back to top
seeds



Joined: 10 Apr 2012
Posts: 1

PostPosted: Tue Apr 10, 2012 10:28 pm    Post subject: developers take a look Reply with quote

ill second that, completion is buggy and should be reported

bump
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NetBeans Forums -> Ajax Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo