createSubstitutor¶
context(session: KaSession)
fun createSubstitutor(mappings: Map<KaTypeParameterSymbol, KaType>): KaSubstitutor
Creates a KaSubstitutor based on the given mappings.
Usually, buildSubstitutor should be preferred to build a new substitutor from scratch.
When mappings is empty, returns KaSubstitutor.Empty. To build KaSubstitutor.Empty specifically, use emptySubstitutor.