Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @NamedParam support for constructors #637

Closed
eric-milles opened this issue Jul 17, 2018 · 0 comments
Closed

Add @NamedParam support for constructors #637

eric-milles opened this issue Jul 17, 2018 · 0 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Jul 17, 2018

DSLD support was added for NamedVariant, etc. on methods. Support for the same on constructors needs to be added.

Consider the following:

import groovy.transform.NamedVariant

class Color {
  int r, g, b
  @NamedVariant
  Color(int r, int g, int b) {
    this.r = r
    this.g = g
    this.b = b
  }
}

def color = new Color(r: 0, |)

Content assist at | should include proposals for "b : __ - int named parameter of Color" and "g : __ - int named parameter of Color".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant