Beispiel #1
0
 @NotNull
 public AnnotationDescriptor createExtensionAnnotation() {
   return new AnnotationDescriptorImpl(
       getBuiltInClassByName(FQ_NAMES.extensionFunctionType.shortName()).getDefaultType(),
       Collections.<ValueParameterDescriptor, ConstantValue<?>>emptyMap(),
       SourceElement.NO_SOURCE);
 }
Beispiel #2
0
 @NotNull
 public KotlinType getEnumType(@NotNull KotlinType argument) {
   Variance projectionType = Variance.INVARIANT;
   List<TypeProjectionImpl> types =
       Collections.singletonList(new TypeProjectionImpl(projectionType, argument));
   return KotlinTypeImpl.create(Annotations.Companion.getEMPTY(), getEnum(), false, types);
 }