-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Conversation
Can't use default without export anyway
apparently, nodes do not have unique id in test environment
Ignore above comment, I assumed that in the test environment all nodes had unique ids, which is apparently not the case. |
@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! |
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 internalFindAllReferences.Core.eachSymbolReferenceInFile
only ever returns one reference and I didn't find any other solution that took care of my problem.