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

ruleguard,dsl: add experimental support for const value filters #116

Merged
merged 1 commit into from
Oct 31, 2020

Conversation

quasilyte
Copy link
Owner

Added Value expression field that can be used to check the submatch value.
Since go/types has some const-folding out-of-the-box, we get it too.

Right now only int value types are supported, but we could extend the
set of types later.

This is a proof-of-concept that can be useful in #96.

Signed-off-by: Iskander Sharipov [email protected]

Added Value expression field that can be used to check the submatch value.
Since `go/types` has some const-folding out-of-the-box, we get it too.

Right now only `int` value types are supported, but we could extend the
set of types later.

This is a proof-of-concept that can be useful in #96.

Signed-off-by: Iskander Sharipov <[email protected]>
@quasilyte quasilyte merged commit 0533697 into master Oct 31, 2020
@quasilyte quasilyte deleted the quasilyte/feature/constval_int branch October 31, 2020 20:05
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

Successfully merging this pull request may close these issues.

2 participants