fn collect_storage_layouts(
gcx: Gcx<'_>,
root: &Path,
contract: ContractId,
) -> Result<Vec<StorageNamespace>>Expand description
Returns namespaces declared in contract, its linearized bases, and the libraries their code
references, once per declaration.
Unrelated contracts, unreferenced libraries, and file-level structs are excluded: importing a declaration does not establish that the selected contract uses its storage. Unknown storage-location schemes are ignored. Malformed ERC-7201 annotations in the contract and its bases are errors. Library namespaces are best-effort: malformed ones, and ones whose root is already declared by a base or an earlier library, are logged and skipped.