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

SimpleParameterSubstituter and ParameterSubstituter should not be visitors #33

Open
myk0la999 opened this issue Dec 10, 2024 · 0 comments

Comments

@myk0la999
Copy link

myk0la999 commented Dec 10, 2024

If you would try to visit LambdaExpression trying to pass constant as replacement then visitor would try to replace lambda parameter with constant and that would probably trigger an exception. So Those should not be Visitors.

So if you pass LambdaExpression (x, y) => x + y as an input and x -> k, y -> 3 as replacements then it would try to do this:
(k, 3) => k + 3 which would probably cause exception.

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