Skip to main content

Module immutable

Module immutable 

Source

Re-exportsยง

use super::UnchangedStateVariables; ๐Ÿ”’
use crate::linter::LateLintPass; ๐Ÿ”’
use crate::linter::LintContext; ๐Ÿ”’
use crate::sol::Severity; ๐Ÿ”’
use crate::sol::SolLint; ๐Ÿ”’
use crate::sol::analysis::for_each_lhs_var; ๐Ÿ”’
use crate::sol::analysis::is_contract_cast; ๐Ÿ”’
use crate::sol::analysis::loop_stmts; ๐Ÿ”’
use crate::sol::analysis::write_target; ๐Ÿ”’
use solar::ast::ContractKind; ๐Ÿ”’
use solar::ast::ElementaryType; ๐Ÿ”’
use solar::interface::data_structures::Never; ๐Ÿ”’
use solar::interface::kw; ๐Ÿ”’
use solar::interface::sym; ๐Ÿ”’
use solar::sema::Gcx; ๐Ÿ”’
use solar::sema::hir; ๐Ÿ”’
use solar::sema::hir::Expr; ๐Ÿ”’
use solar::sema::hir::ExprKind; ๐Ÿ”’
use solar::sema::hir::ItemId; ๐Ÿ”’
use solar::sema::hir::Stmt; ๐Ÿ”’
use solar::sema::hir::StmtKind; ๐Ÿ”’
use solar::sema::hir::TypeKind; ๐Ÿ”’
use solar::sema::hir::VariableId; ๐Ÿ”’
use solar::sema::hir::Visit as _; ๐Ÿ”’
use std::collections::HashSet; ๐Ÿ”’
use std::ops::ControlFlow; ๐Ÿ”’

Structsยง

WriteCollector ๐Ÿ”’
Collects every variable at the root of an assigned, deleted or incremented lvalue.

Staticsยง

COULD_BE_CONSTANT
COULD_BE_IMMUTABLE

Functionsยง

has_assembly_or_unknown ๐Ÿ”’
is_compile_time_constant ๐Ÿ”’
is_constant_call ๐Ÿ”’
Type casts (address(0xCAFE), IToken(addr)) and the hashing / modular arithmetic builtins.