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

Reflect that there can be multiple targets at a position #73

Merged
merged 3 commits into from
Jul 27, 2021

Conversation

radeksimko
Copy link
Member

This PR introduces two API changes:

  • from OutermostReferenceTargetAtPos(...) (*lang.ReferenceTarget, ...)
    to OutermostReferenceTargetsAtPos(...) (lang.ReferenceTargets, ...)
  • from InnermostReferenceTargetAtPos(...) (*lang.ReferenceTarget, ...)
    to InnermostReferenceTargetsAtPos(...) (lang.ReferenceTargets, ...)

This better reflects the fact that there can be more than a single target for the same position, for example in Terraform, a resource or module can have both type-less and typed references pointing to the same block.

@radeksimko radeksimko added the enhancement New feature or request label Jul 26, 2021
@radeksimko radeksimko force-pushed the f-multiple-targets-at-pos branch from 1ce5cec to 11eac3b Compare July 27, 2021 10:08
@radeksimko radeksimko merged commit 1b6e9da into main Jul 27, 2021
@radeksimko radeksimko deleted the f-multiple-targets-at-pos branch July 27, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant