Skip to main content

Module return_bomb

Module return_bomb 

Source

StructsΒ§

IntegerLiteral πŸ”’

EnumsΒ§

ArgMatch πŸ”’
FunctionCandidates πŸ”’

StaticsΒ§

RETURN_BOMB

FunctionsΒ§

array_sizes_match πŸ”’
Returns true if two array sizes are equivalent for overload resolution.
bool_expr_matches_type πŸ”’
Returns whether a known boolean expression can match the expected type.
call_return_type πŸ”’
Returns the single return type for a statically resolved call expression.
call_returns_dynamic_data πŸ”’
Returns true if a call resolves to functions that return dynamic data.
call_with_gas_returns_dynamic_data πŸ”’
Returns true for gas-limited calls that return dynamic data.
callee_is_address_returning_builtin πŸ”’
common_expr_type πŸ”’
Returns the common type for a ternary expression when one branch type can accept the other.
const_array_size πŸ”’
const_array_size_binary_op πŸ”’
const_array_size_inner πŸ”’
contract_type_matches πŸ”’
Returns true if an actual contract type can be used where the expected contract type is needed.
elementary_type_matches πŸ”’
Returns true if an elementary value can be used for an expected elementary type.
enclosing_contract πŸ”’
Returns the contract containing an expression span.
expr_contract_id πŸ”’
Returns the contract id for expressions known to be contract-typed.
expr_is_address πŸ”’
Returns true if an expression is known to have an address type.
expr_is_bool πŸ”’
expr_matches_type πŸ”’
Returns whether an expression can match the expected type, if known.
expr_type πŸ”’
Returns the type of simple expressions needed by this lint.
fixed_array_sizes_match πŸ”’
function_arg_match πŸ”’
Returns how well call arguments match a candidate function signature.
function_candidates_for_member πŸ”’
Returns function candidates with the given member name on a contract.
function_pointer_candidates_for_callee πŸ”’
Returns an external function pointer callee if its arguments can match.
function_returns_dynamic_data πŸ”’
Returns true if a function has any dynamically encoded return value.
function_type_returns_for_args πŸ”’
Returns external function-type return variables when the arguments can match.
functions_return_dynamic_data πŸ”’
Returns true if a gas-limited call can return dynamic data.
integer_literal πŸ”’
Returns an integer literal’s sign and precision, including unary negation.
integer_literal_matches_type πŸ”’
Returns whether an integer literal fits in an expected integer type.
is_address_type πŸ”’
Returns true if the type is an address type
is_bool_type πŸ”’
is_dynamic_type πŸ”’
Returns true if the type contains dynamically encoded ABI data.
is_externally_callable πŸ”’
Returns true if a function can be called through this.foo() or contract.foo().
is_this πŸ”’
lit_matches_type πŸ”’
Returns true if a literal can be used for a value of the given type.
low_level_call_with_gas_consumes_unbounded_return_data πŸ”’
Returns true for gas-limited low-level calls that copy unbounded returndata.
matching_functions_for_callee πŸ”’
Returns the function overloads that can match a callee and its arguments.
member_is_builtin_address πŸ”’
params_arg_match πŸ”’
Returns how well call arguments match the expected parameter types.
params_match_args πŸ”’
Returns how well positional arguments match their expected parameter types.
res_function_id πŸ”’
returns_dynamic_data πŸ”’
Returns true if any return variable has a dynamically encoded return type.
select_functions_for_args πŸ”’
Selects the candidate functions that best match the call arguments.
single_function πŸ”’
Returns exactly one function id from an iterator.
single_return_type πŸ”’
Returns exactly one return type.
type_contract_id πŸ”’
Returns the contract id for contract-typed values.
types_match πŸ”’
Returns true if two types are equivalent for overload resolution.

Type AliasesΒ§

ConstArraySize πŸ”’