fn lookup_named_variable_type(gcx: Gcx<'_>, name: &str) -> Option<DynSolType>Expand description
Looks up name as a named variable in the REPL contract (state variables or run() locals)
and returns its type as a [DynSolType].
Only top-level statements of run() are scanned. Variables declared inside nested blocks
(if, for, while, unchecked, etc.) are not visible here; the caller falls back to
the inspectoor-based path for those cases.