module documentation
Undocumented
Function | class |
Return an array of non-empty paths of direct base classes from type to supertype. Return [] if no such path could be found. |
Function | instance |
Given an Instance, produce the resulting type environment for type variables bound by the Instance's class definition. |
Function | map |
Undocumented |
Function | map |
Produce a supertype of `instance` that is an Instance of `superclass`, mapping type arguments up the chain of bases. |
Function | map |
Undocumented |
Return an array of non-empty paths of direct base classes from type to supertype. Return [] if no such path could be found. InterfaceImplementationPaths(A, B) == [[B]] if A inherits B InterfaceImplementationPaths(A, C) == [[B, C]] if A inherits B and B inherits C
Given an Instance, produce the resulting type environment for type variables bound by the Instance's class definition. An Instance is a type application of a class (a TypeInfo) to its required number of type arguments. So this environment consists of the class's type variables mapped to the Instance's actual arguments. The type variables are mapped by their `id`.
def map_instance_to_direct_supertypes(instance:
Instance
, supertype: TypeInfo
) -> list[ Instance]
:
(source)
¶
Undocumented