-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Method renaming is failing for instance methods/properties #478
Comments
This operation is not supported and the type of each variable cannot be accurately determined. |
You posted it last year. #423 |
Ah, I see, I didnt think they were related because the older one was referring to custom behavior for given properties, while this one referred to properties being clearly defined in the class as having the default behavior. But i guess you mean you cant derive wether they are properties vs methods? In any case, if it is not technically possible to do it, dont worry to much about it. My understanding was that the extension was taking a look at the class definition to load the context for later using the renaming functionality but I guess that is not what is doing. |
Why was this supported before and it is currently supported on other extensions like AHK++ for autohotkey v1? screen-recording.mp4 |
What if it's something like this? If you rename the method when the type is ambiguous, it may break the code unless all the methods with the same name are modified? |
Thats what the v1 extension does. Probably the way to go is have the parser have a map/variable that keeps track of instatiation. Pseudocode
I definitely dont know what your constraints are, but that might be one way about it. |
The above is only a simple case. When these are function parameters, different types can be passed in, and they will be difficult to analyze in more complex call chains. |
Well sure, but the scope of my question is limited to the method names only, I know that parameters are a different beast. |
When trying to rename methods/properties of a class I have noticed that when renaming static props/methods everything works fine.
But when I try the same with non static members i get this error:
The text was updated successfully, but these errors were encountered: