Skip to main content

Module unwrapped_modifier_logic

Module unwrapped_modifier_logic 

Source

Structsยง

ParamWriteFinder ๐Ÿ”’
Visitor that collects modifier parameters written by an expression.
SharedLocalFinder ๐Ÿ”’
Visitor that breaks on the first reference to any of the tracked local variables.

Staticsยง

UNWRAPPED_MODIFIER_LOGIC

Functionsยง

collect_written_params ๐Ÿ”’
count_placeholders ๐Ÿ”’
Recursively counts placeholder (_) statements within a list of statements, descending into nested blocks, conditionals, loops, try/catch, and Yul switch cases.
count_placeholders_in_stmt ๐Ÿ”’
has_shared_locals ๐Ÿ”’
Returns true if a local variable declared in the before segment is referenced in the after segment.
has_written_params_used_after ๐Ÿ”’
Returns true if a modifier parameter is written in the before segment and referenced in the after segment.