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

'Go to declaration' does not work for parameters inside string interpolation if parameters are declared before string interpolation #79

Open
danchanka opened this issue Nov 6, 2023 · 1 comment

Comments

@danchanka
Copy link
Collaborator

Parameters recognize the declaration, but 'Go to declaration' function does not work correctly. This occurs because it tries to navigate to the parameter declaration within the virtual file created during injection creation. When we call registar.addPlace, we pass the beginning of the current statement as a prefix. And this prefix contains the parameter declaration.

Example:

FOR iterate(INTEGER i, 1, 3) DO
    MESSAGE 'message ${i}';
@danchanka
Copy link
Collaborator Author

In addition to that, renaming such a parameter does not work correctly either.

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

1 participant