Skip to main content

Module unwrapped_modifier_logic

Module unwrapped_modifier_logic 

Source

Structsยง

ExprFinder ๐Ÿ”’

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 ๐Ÿ”’