Search in sources :

Example 1 with PropertyDescriptorImpl

use of org.jetbrains.kotlin.descriptors.impl.PropertyDescriptorImpl in project kotlin by JetBrains.

the class ErrorUtils method createErrorProperty.

@NotNull
private static PropertyDescriptorImpl createErrorProperty() {
    PropertyDescriptorImpl descriptor = PropertyDescriptorImpl.create(ERROR_CLASS, Annotations.Companion.getEMPTY(), Modality.OPEN, Visibilities.PUBLIC, true, Name.special("<ERROR PROPERTY>"), CallableMemberDescriptor.Kind.DECLARATION, SourceElement.NO_SOURCE, false, false, false, false, false, false);
    descriptor.setType(ERROR_PROPERTY_TYPE, Collections.<TypeParameterDescriptor>emptyList(), null, (KotlinType) null);
    return descriptor;
}
Also used : PropertyDescriptorImpl(org.jetbrains.kotlin.descriptors.impl.PropertyDescriptorImpl) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NotNull (org.jetbrains.annotations.NotNull)1 PropertyDescriptorImpl (org.jetbrains.kotlin.descriptors.impl.PropertyDescriptorImpl)1