Expand description
Expression-shape probes over Solar HIR (and a few AST-level ones).
Constants§
- OPENZEPPELIN_
ROOTS - Package-root directory names of the OpenZeppelin distributions (npm scope and git submodules).
Functions§
- address_
call_ receiver - Receiver of
<expr>.{call,delegatecall,transfer,send}(value-bearing sinks), including the.call{value: x}(...)option form. - any_
subexpr - True if
predholds forexpror any of its sub-expressions. - arg_
for_ param - The argument bound to
paramoffunction_idinargs, positional or named. - ast_
bool_ literal - AST-level boolean literal, through parens.
- callee_
no_ arg_ returns - True when
calleenames a zero-parameter function whose body returns an expression matchingpred. - cast_
type - The elementary type an explicit cast head
T(...)converts to. - dispatched_
function - The function an internal call made from within
contract_iddispatches to: a virtual call resolves to the most derived override,super.fto the next base implementation, and a qualifiedBase.fto that declaration exactly.Nonefor external and unresolved callees. - for_
each_ child - Calls
fon every direct sub-expression ofexpr, in evaluation order. - for_
each_ lhs_ var - Calls
ffor each resolved variable at the root of an lvalue, peeling index/slice/member/payable/unary/delete wrappers and tuple destructuring. - function_
no_ arg_ returns - True when
fidtakes no parameters and its body isreturn e;ornamedRet = e;(optionally followed by a barereturn;) withpred(e). - has_
side_ effect - True if evaluating
exprperforms an assignment,deleteor increment/decrement. - is_
address_ cast address(...)/address payable(...)cast head.- is_
address_ like_ cast address(...)orIFoo(...)cast head.- is_
address_ self address(this),payable(this),IFoo(this),IFoo(address(this)), or barethis.- is_
builtin - True if
exprresolves to the given builtin name. - is_
call_ with_ gas_ limit - True if a HIR call carries an explicit
gas:option. - is_
contract_ cast IFoo(...)contract / interface cast head.- is_
exit_ call revert(...),selfdestruct(...),require(false, ...)orassert(false).- is_
literal_ false - The boolean literal
false. - is_
literal_ zero - The integer literal
0. - is_
low_ level_ call - AST-level:
target.call(...),.delegatecall(...),.staticcall(...), with or without{value: x}options. - is_
msg_ sender msg.sender.- is_
require_ or_ assert - True if
calleeresolves to the builtinrequireorassert. - is_
revert_ call revert(...),revert Err(...)-style builtin revert call (any form).- is_
sender_ member msg.senderortx.origin.- is_
zero_ value - A literal zero/false or an elementary cast or arithmetic negation of one.
- lhs_
local_ var - The local (non-state) variable a bare identifier refers to.
- referenced_
item - The item a bare identifier refers to, if any.
- runtime_
entry_ points - The functions reachable through the runtime dispatch of a most-derived contract: its
interface functions plus the inherited
fallback/receive, if any. - source_
in_ package - True if the source file of
source_idlives under one of the given package-root directory names (matched as whole, case-insensitive path components). - state_
lhs_ vars - State variables written by an lvalue: peels index/slice/member/payable/unary/delete wrappers and tuple destructuring. Duplicates are removed.
- tuple_
elems - The elements of a tuple expression (through parens).
- underlying_
var - The variable a bare identifier refers to, looking through parens,
payable(...)and address-like casts (address(x),IFoo(x)). - var_
is_ address_ like address/address payableor a contract/interface type.- write_
target - The lvalue written by an assignment,
deleteor increment/decrement expression.