How do I generate the annotations `@A @B` when I h...
# compiler
m
How do I generate the annotations
@A @B
when I have the class IDs of
A
and
B
?
Copy code
buildAnnotationCall(fun (callBuilder) {
    callBuilder.annotationTypeRef = buildResolvedTypeRef(fun (refBuilder) {
        refBuilder.coneType = ConeClassLikeTypeImpl(
            lookupTag = myFirClassSymbol.toLookupTag(),
            typeArguments = emptyArray(),
            isMarkedNullable = false,
        )
    })
})
This (where each
myFirClassSymbol: FirClassSymbol<*>
is created from the class IDs) feels roundabout.
y
There's an extension function that's like
myFirClassSymbol.createClassLikeType
or similar
m
Oh brilliant, thank you!