HIR visitor that records every FunctionId referenced via an Ident and every name on
the right-hand side of a super.<name> access. Stmt/expr recursion is handled by
hir::Visitβs default walks so adding a new HIR variant only updates this in one place.
Project index keyed by the [hir::Hir] address. The HIR lives inside the
[solar::sema::Compiler] for the whole lint run, so its address is stable and the
same index can be reused across every contract instead of rebuilt per source.
Returns true if any function in contract_id or a derivative shares baseβs name and
arity and is present in referenced (a call to an override conceptually targets the
baseβs slot). Match is name + arity only β solarβs HIR TypeKind has no structural
equality β so same-arity overloads are conflated, yielding only false negatives.
Returns true if any modifier invocation passes one of params as an argument.
Modifier memory args alias caller memory the same way internal call args do.