Search in sources :

Example 1 with ErrorSimpleFunctionDescriptorImpl

use of org.jetbrains.kotlin.types.error.ErrorSimpleFunctionDescriptorImpl in project kotlin by JetBrains.

the class ErrorUtils method createErrorFunction.

@NotNull
private static SimpleFunctionDescriptor createErrorFunction(@NotNull ErrorScope ownerScope) {
    ErrorSimpleFunctionDescriptorImpl function = new ErrorSimpleFunctionDescriptorImpl(ERROR_CLASS, ownerScope);
    function.initialize(null, null, // TODO
    Collections.<TypeParameterDescriptorImpl>emptyList(), // TODO
    Collections.<ValueParameterDescriptor>emptyList(), createErrorType("<ERROR FUNCTION RETURN TYPE>"), Modality.OPEN, Visibilities.PUBLIC);
    return function;
}
Also used : ErrorSimpleFunctionDescriptorImpl(org.jetbrains.kotlin.types.error.ErrorSimpleFunctionDescriptorImpl) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NotNull (org.jetbrains.annotations.NotNull)1 ErrorSimpleFunctionDescriptorImpl (org.jetbrains.kotlin.types.error.ErrorSimpleFunctionDescriptorImpl)1