1

In Groovy Eclipse, is it possible to get intellisense for methods added through an AST transformation?

So if I add a method foo to the class Demo with an AST transformation, typing new Demo(). would have foo in the list of suggested methods that pops up.

1
  • I suspect, in short, the answer is no. Consider when AST transformations are run.
    – mfloryan
    Jan 9, 2011 at 10:53

1 Answer 1

4

The answer is no, not yet. This is a feature that we are actively working on and we will likely be releasing some sort of DSL descriptor language that end-users can use to extend content assist and type inferencing in the editor.

4
  • are you aware of the support already present in IntelliJ? It would be nice if you could work together on the same DSL instead of creating two different ones. Some frameworks like GPars already have the DSL bundeled. See jetbrains.dzone.com/articles/custom-groovy-dsl-support and confluence.jetbrains.net/display/GRVY/…
    – rlovtang
    Jan 9, 2011 at 17:35
  • Here's the DSL bundled with GPars: git.codehaus.org/gitweb.cgi?p=gpars.git;a=blob;f=src/main/…
    – rlovtang
    Jan 9, 2011 at 17:36
  • Yes, we are aware of this and we are determining how to proceed. The IntelliJ language is nice, but it does expose some internal IntelliJ-specific objects in the syntax. For example, the enclosingCall() method that is used in the GPars file that you link to returns an object of type PSIElement. So, we have to think a bit harder how the existing gdsl can be adapted towards an Eclipse environment. Jan 10, 2011 at 4:15
  • Has any progress been made on this?
    – cdeszaq
    Nov 4, 2011 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.