How to know what's the position of current argument in function calls? #1710
-
Question1: If I have a function MAX(a,b), argument One way is to count the number of , after left parenthesis to know the position of current parameter. But is there any other method to know the position of argument in function call? Question 2: I found that if I type MAX(,), there will be grammar errors as shown below. How to delete this error msg? Can I delete it by creating a custom https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @durianwaffle,
You can use the
I would recommend you to adjust the grammar to support adding empty arguments. Everything else is just a hack. |
Beta Was this translation helpful? Give feedback.
Hey @durianwaffle,
You can use the
$containerIndex
property of theargument
AST node.I would recommend you to adjust the grammar to support adding empty arguments. Everything else is just a hack.