aiken/crates/aiken-lang/src/tests
rvcas d8cbcde61d feat(validators): unused param warning
Params being unused were being incorrectly reported.
This was because params need to be initialized
at a scope above both the validator functions. This
manifested when using a multi-validator where one of
the params was not used in both validators.

The easy fix was to add a field called
`is_validator_param` to `ArgName`. Then
when infering a function we don't initialize args
that are validator params. We now handle this
in a scope that is created before in the match branch for
validator in the `infer_definition` function. In there
we call `.in_new_scope` and initialize params for usage
detection.
2023-03-30 21:15:27 -04:00
..
check.rs feat(validators): unused param warning 2023-03-30 21:15:27 -04:00
format.rs Allow newlines in when clause sequences. 2023-03-30 13:49:00 +02:00
lexer.rs chore: make folder names match crate name 2022-12-21 18:11:07 -05:00
mod.rs Add type-checker sanity tests for list patterns. 2023-02-11 16:54:49 +01:00
parser.rs feat(validators): unused param warning 2023-03-30 21:15:27 -04:00