On 9/8/2010 11:12 AM, Harald Finster wrote:
> yet an other JSDT question.
>
> I would liek to add a JSdoc comment to a specific ASTNode,
> for example to a VariableDeclarationStatement.

Sorry about the late reply. As you found, JSDoc doesn't usually get
treated as a statement, it's a field on the particular AST object it
precedes. You're not doing anything particularly wrong with the
exception of JSDT (like JDT) not supporting JSDoc on local variable
declarations, even though there is a placeholder field in the
corresponding AST class. Function declarations are supported best, and
as constructors their doc will be used in the UI for its "type". Your
use of the list rewrite as an alternate is actually a pleasant surprise,
and looks to me to actually be your best option.