Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0alpha
-
Fix Version/s: 2.0.0RC1
-
Component/s: Inferencing Engine
-
Labels:None
-
Number of attachments :
Description
Currently, source locations for java doc are not included in IJavaElements generated from the Groovy compiler. This is because java doc locations are ignored by the parser. The problem is that this is preventing source hovers from displayingthe JavaDoc contents of the item being hovered on.
I can see several possible ways of adding Javadoc:
1. Enhance the groovy parser with a new grammar and new AST elements that represent the JavaDoc.
2. After a reconcile do a second walk of the file and determine the start and end points of all JavaDoc comments.
#1 is a much better solution, but would require a fairly significant patch to the compiler. There has been some talk of doing this on the mailing list, but I do not think any progress has been made (certainly, there are no JIRAs for it). #2 would work for the plugin. However, I am a little concerned about the extra time it might take during a reconcile.
Issue Links
- supercedes
-
GRECLIPSE-126
javadoc does not display in javadoc window and also not as popup during code completion when editing a .groovy file
-
-
GRECLIPSE-191
Reuse javadoc from properties for code completion comments ( tooltips )
-
Did a little bit of investigating here.
All elements in the JDT Compiler AST that can have doc comments attached to them have a javadoc field. This field is a fully structured doc comment with source locations and children for all tags in it.
Going into that much detail is not necessary. I believe, all that we need is sourceStart and sourceEnd. Once these get filled in, I think that the IJavaElement hierarchy will just pick them up.