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

Set a primary source element for elements derived by AA, otherwise navigation and UI features like find references are broken. #83

Open
akosyakov opened this issue Sep 11, 2015 · 2 comments

Comments

@akosyakov
Copy link

See: org.eclipse.xtend.lib.macro.services.Associator.setPrimarySourceElement(MutableElement, Element)

@Buggaboo
Copy link
Contributor

Hi,

I don't follow. What's the action that should follow from seeing that method?

Thanks.

@svenefftinge
Copy link
Collaborator

The API should be used, to establish associations between source elements
and inferred / generated members. For instance @accessors generated getters
and setters for a field, so we use the API to associate a link between the
field and the accessor methods. This information is used in the IDE for
navigation.

See
https://github.com/eclipse/xtext/blob/master/plugins/org.eclipse.xtend.lib/src/org/eclipse/xtend/lib/annotations/Accessors.xtend#L184

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

No branches or pull requests

3 participants