Skip to main content

convert_parameter_annotations

Function convert_parameter_annotations 

Source
pub fn convert_parameter_annotations(
    param_annotations: &[ParameterAnnotation<'_>],
    is_runtime_visible: bool,
) -> Vec<Vec<AnnotationStub>>
Expand description

Convert a list of cafebabe ParameterAnnotation values into nested Vec<Vec<AnnotationStub>> records.

The outer vector is indexed by parameter position; the inner vector contains the annotations for that parameter.

ยงArguments

  • param_annotations - Parsed parameter annotation list from cafebabe.
  • is_runtime_visible - Whether these annotations come from a RuntimeVisibleParameterAnnotations attribute.