Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5714

@DelegatesTo annotation for IDEs/TypeChecker

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0-beta-1
    • None
    • None

    Description

      Add an annotation for closure parameters, which allows to document how methods are resolved in the closure.

      For example:

      exec {
          executable = "foo"
          args "bar", "baz"
      }
      
      class Project {
          ExecResult exec(@DelegatesTo(ExecSpec) Closure closure) { ... }
      }
      
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: