Skip to content

add refactoring: inline local variable #28522

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

Closed
wants to merge 28 commits into from

Conversation

D0nGiovanni
Copy link
Contributor

Fixes #18459

I've run into a problem though. If I invoke the refactoring in a development instance, it works fine. The tests fail for some reason that is beyond me. I've managed to narrow it down to my own function named getReferencesInScope. Somehow, the test environment can't populate the array it is supposed to return. I had to use this function, because the compiler internal FindAllReferences.Core.eachSymbolReferenceInFile only ever returns one reference and I didn't find any other solution that took care of my problem.

@D0nGiovanni
Copy link
Contributor Author

Ignore above comment, I assumed that in the test environment all nodes had unique ids, which is apparently not the case.

@RyanCavanaugh
Copy link
Member

@D0nGiovanni looks like not many updates here in a while - I'm going to close for housekeeping but this PR does look like something that is decently close to being mergeable. If you'd like to open a fresh PR to continue (maybe squash up those commits and address the merge conflicts) we can have someone try to help out with the last few issues. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants