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

[Request] Be able to get a reference to the caller of non static methods in ModifyExpressionValue #4

Closed
shaksternano opened this issue Jan 16, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@shaksternano
Copy link

If targeting a non static method call with ModifyExpressionValue, it would be great if it was possible to get a reference to the object the method being called belongs to, similar to Redirect. A reference to the method arguments would also be nice if that is possible.

@LlamaLad7 LlamaLad7 added the enhancement New feature or request label Jan 16, 2022
@LlamaLad7
Copy link
Owner

This wouldn't be hugely straightforward given being able to capture the enclosing method's args (straight after the expression result) is already locked into the API. I'll definitely look into it though.

@LlamaLad7
Copy link
Owner

https://github.com/LlamaLad7/MixinExtras/wiki/WrapOperation should cover this use-case now.

@LlamaLad7
Copy link
Owner

And it's now stable, which I think marks the completion of this goal.

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

No branches or pull requests

2 participants