| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
get_expr_len currently support StrExpr, BytesExpr, and string-type Final values constant_fold_expr already has the code to parse values from all of these, so we can deduplicate code by using it It's able to parse a few more Expressions than our existing implementation, and allows get_expr_length to automatically benefit from future constant-folding enhancements
for more information, see https://pre-commit.ci
| Back | FazBrowse Home | New Git URL |
Among other things, get_expr_length currently supports StrExpr, BytesExpr, and string-type Final values.
constant_fold_expr already has the code to parse values from all of these, so we can use it to deduplicate code in get_expr_length.
It's able to parse a few more Expressions than our existing implementation, not that any of these are particularly relevant at the moment, and allows get_expr_length to automatically benefit from more relevant future constant-folding enhancements.
This PR is ready for review. All of the get_expr_length PRs are entirely independent and can be reviewed/merged in any order.