Tóth István Zoltán
05/10/2024, 8:18 AMFirDeclarationGenerationExtension
? I would like to generate class that has the type parameter `T`and add a function to that class that returns with Some<T>
. So the generated class would look like this:
class SomeClass<T> : SomeAncestor<T> {
override build() : SomeAncestor<T>
}
Tóth István Zoltán
05/10/2024, 8:53 AMoverride fun generateTopLevelClassLikeDeclaration(classId: ClassId): FirClassLikeSymbol<*> =
createTopLevelClass(
classId,
BasePluginKey
) {
typeParameter(<http://Names.BT|Names.BT>)
superType { ClassIds.ADAPTIVE_FRAGMENT.constructClassLikeType(arrayOf(it.first().toConeType()), false) }
}.symbol