overrideResolvedType

abstract fun overrideResolvedType(key: ResolverKey, resolved: ClassName?): ClassName?

Allows overriding the names of classes that are referenced in the generated code.

This is called every time a class needs to be resolved during code generation. To keep a name as-is, return resolved.

Parameters

key

the key of the class to resolve

resolved

the name of the class as it was resolved by the compiler