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 content assist for @NamedVariant, et al. #604

Closed
eric-milles opened this issue Jun 12, 2018 · 0 comments
Closed

Add content assist for @NamedVariant, et al. #604

eric-milles opened this issue Jun 12, 2018 · 0 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

Consider the following:

import groovy.transform.*

class Color {
  int r, g, b
}

@NamedVariant def m(Color c) { ... }

m(|)
  ^ Ctrl-Space gives proposals for "r: __", "g: __", "b: __" and "meth(Map namedArgs)"

And also:

import groovy.transform.*

@NamedVariant def m(@NamedParam('dob') Date date) { ... }

m(|)
  ^ proposals for "dob: __" but not "date: __"
@eric-milles eric-milles self-assigned this Jun 12, 2018
@eric-milles eric-milles added this to the v3.0.0 milestone Jun 12, 2018
eric-milles added a commit that referenced this issue Jun 13, 2018
eric-milles added a commit that referenced this issue Jun 13, 2018
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