pub fn convert_annotations(
annotations: &[Annotation<'_>],
is_runtime_visible: bool,
) -> Vec<AnnotationStub>Expand description
Convert a list of cafebabe Annotation values into AnnotationStub records.
This is used for both RuntimeVisibleAnnotations and
RuntimeInvisibleAnnotations attributes. The caller controls which
variant by passing is_runtime_visible.
ยงArguments
annotations- Parsed annotation list from cafebabe.is_runtime_visible- Whether these annotations come from aRuntimeVisibleAnnotationsattribute.