Skip to main content
Module unwrapped_modifier_logic
forge_
lint
1.8.4
Module unwrapped_
modifier_
logic
Module Items
Structs
Statics
Functions
In forge_
lint::
sol::
codesize
forge_lint
::
sol
::
codesize
Module
unwrapped_
modifier_
logic
Copy item path
Source
Structs
ยง
Expr
Finder
๐
Statics
ยง
UNWRAPPED_
MODIFIER_
LOGIC
Functions
ยง
any_
expr
๐
Visits every expression under
stmts
, stopping as soon as
f
returns
true
.
is_
plain_
call
๐
A call to a non-builtin function or to a library function: the only statement cheap enough to leave inline.
requires_
wrapping
๐
Whether
stmts
should move into a helper: anything but a single plain call requires wrapping. Inline assembly is left alone; its authors know how to manage code size and have a reason to use it in a modifier.
snippet
๐