Package-level declarations
Methods for reading and writing annotations to and from IR.
Functions
Link copied to clipboard
fun AnnotationArgument.Companion.enum(symbol: IrClassSymbol, name: String): AnnotationArgument.EnumEntry
Link copied to clipboard
fun <S : Symbol.Annotation<S, I>, I : Symbol.Annotation.Instance<S, I>> IrAnnotationContainer.findAnnotation(annotation: S): I?
Find the first annotation instance of annotation type.
Link copied to clipboard
fun <S : Symbol.Annotation<S, I>, I : Symbol.Annotation.Instance<S, I>> IrAnnotationContainer.findAnnotations(annotation: S): List<I>
Find any annotation instances of annotation type.
Link copied to clipboard
Link copied to clipboard
fun <S : Symbol.Annotation<S, I>, I : Symbol.Annotation.Instance<S, I>> IrConstructorCall.readAnnotation(annotation: S): I?
Read an annotation instance from a IrConstructorCall for an annotation. Will return null if the annotation is not of type annotation.
Link copied to clipboard
fun <S : Symbol.Annotation<S, I>, I : Symbol.Annotation.Instance<S, I>> I.toIrAnnotation(context: IrPluginContext, startOffset: Int = UNDEFINED_OFFSET, endOffset: Int = UNDEFINED_OFFSET, origin: IrStatementOrigin? = null, source: SourceElement? = null): IrConstructorCall
Create an annotation IrConstructorCall from an annotation instance.