forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the usage of
Operator
in const validation
This commit updates the `check_const_expr` function to remove the usage of the `Operator` visitor in the spirit of eventually removing the `Operator` type if possible. This was achieved through some macro-magic and isn't necessarily more readable than the prior version, so I could see this going either way. In the long run with bytecodealliance#733 it's not really difficult per-se to maintain an `Operator` interface in `wasmparser` since it's trivially defined via macros. This may be a case where we want to use that more than the `visit_*` pieces perhaps. cc bytecodealliance#711
- Loading branch information
1 parent
c9facaa
commit 694db40
Showing
1 changed file
with
169 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters