-
Notifications
You must be signed in to change notification settings - Fork 909
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
Expression::CallResult
does not provide a way to get the arguments used in the call
#5407
Comments
I was able to work around it by storing the current function call when parsing a |
When you encounter a It's important to generate the code when you encounter the call statement because it could have side-effects. |
Is your feature request related to a problem? Please describe.
Expression::CallResult
only contains ahandle
to aFunction
. That function hasFunctionArgs
, but they are the args that are defined in the function signature rather than the args for the function call.This is not a problem for the backends that output strings as they can just output the function name and an open paren and hope that
Expression::FunctionArgument
s or whatever come later. It is a problem for my Rust backend (#5175) as I need to make a completesyn
item for the function call when I encounter anExpression::CallResult
:Describe the solution you'd like
I'd like
Expression::CallResult
to also contain the list of argument expressions the function is being called with, similar to howExpression::Math
works.Happy to put up a PR if someone points me in the right direction.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: