Member predicate CanonicalName::getRootScope
Gets the outermost scope from which this type can be accessed by a qualified name (without using an import
).
This is typically the top-level of a module, but for locally declared types (e.g. types declared inside a function), this is the container where the type is declared.