Announcement Announcement Module
Collapse
No announcement yet.
Groovy AST Transformation are not visible in Outline Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Groovy AST Transformation are not visible in Outline

    In groovy editor, the methods added by AST are not visible by compiler (neither by completion nor in outline).
    Howewer the methods are presents in bytecode of the class.

    Is this feature expected soon ?

    For example, with @Delegate annotation, we can add methods from another class :

    Manuel

  • #2
    Yes. This is expected. There is DSL support available for your groovy projects, which adds extra editing support for AST transforms and other kinds of metaprogramming.

    Make sure that DSL support is enabled on your project. Select the project, right click, Groovy -> Add DSL Support.

    This will specifically add editing support for most of the built-in Groovy AST transforms, but if you want support for your own transform, you have 2 options:

    1. The easiest way is to select an underlined element, and press CTRL-1 (CMD-1 on Mac), and then choose "Add inferencing suggestion. Fill in the blanks with appropriate values and press OK. The editor will now recognize the underlined element. (Also, this will be checked into version control and shared with other developers).

    2. Alternatively, you can create your own DSLD file. See http://blog.springsource.com/2011/05...roovy-eclipse/ for information on this.

    Comment


    • #3
      Thank you for your response.

      And DSL support is great.

      Manuel

      Comment

      Working...
      X