pub fn get_type_by_path(
scope: &dyn Scope,
path: &[String],
) -> Result<Rc<dyn Type>, RiddleError>Expand description
Resolves a type by a dotted path-like sequence of names.
The first segment is looked up in the provided Scope, and each
subsequent segment is resolved as a nested type of the previous class.
ยงErrors
Returns:
RiddleError::RuntimeErrorifpathis empty.RiddleError::NotFoundif any path segment cannot be resolved.RiddleError::NotAClassif an intermediate segment does not resolve to a class.