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

Checking if all referenced variables exist? #265

Open
kinsi55 opened this issue Feb 3, 2022 · 0 comments
Open

Checking if all referenced variables exist? #265

kinsi55 opened this issue Feb 3, 2022 · 0 comments

Comments

@kinsi55
Copy link

kinsi55 commented Feb 3, 2022

If I have a case where the expression is always evaluated against an object containing a specific list of variables, what would be the intended way to sanitize the passed expression? I assumed I could use variables() in one way or another, however that will also return variables which are defined in the expression itself.

I have a hacky solution now where I recursively iterate over the tokens and account for every IVARNAME this way but surely there has to be a better way for this right?

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