rename NamedFunctionDescriptorErrorImpl -> ErrorNamedFunctionDescriptorImpl
This commit is contained in:
@@ -6,7 +6,7 @@ import org.jetbrains.jet.lang.descriptors.*;
|
|||||||
import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor;
|
import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor;
|
||||||
import org.jetbrains.jet.lang.resolve.scopes.JetScope;
|
import org.jetbrains.jet.lang.resolve.scopes.JetScope;
|
||||||
import org.jetbrains.jet.lang.resolve.scopes.receivers.ReceiverDescriptor;
|
import org.jetbrains.jet.lang.resolve.scopes.receivers.ReceiverDescriptor;
|
||||||
import org.jetbrains.jet.lang.types.error.NamedFunctionDescriptorErrorImpl;
|
import org.jetbrains.jet.lang.types.error.ErrorNamedFunctionDescriptorImpl;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ public class ErrorUtils {
|
|||||||
private static final Set<VariableDescriptor> ERROR_PROPERTY_GROUP = Collections.singleton(ERROR_PROPERTY);
|
private static final Set<VariableDescriptor> ERROR_PROPERTY_GROUP = Collections.singleton(ERROR_PROPERTY);
|
||||||
|
|
||||||
private static NamedFunctionDescriptor createErrorFunction(ErrorScope ownerScope) {
|
private static NamedFunctionDescriptor createErrorFunction(ErrorScope ownerScope) {
|
||||||
NamedFunctionDescriptorErrorImpl function = new NamedFunctionDescriptorErrorImpl(ownerScope);
|
ErrorNamedFunctionDescriptorImpl function = new ErrorNamedFunctionDescriptorImpl(ownerScope);
|
||||||
function.initialize(
|
function.initialize(
|
||||||
null,
|
null,
|
||||||
ReceiverDescriptor.NO_RECEIVER,
|
ReceiverDescriptor.NO_RECEIVER,
|
||||||
|
|||||||
+2
-2
@@ -13,12 +13,12 @@ import java.util.Collections;
|
|||||||
/**
|
/**
|
||||||
* @author Stepan Koltsov
|
* @author Stepan Koltsov
|
||||||
*/
|
*/
|
||||||
public class NamedFunctionDescriptorErrorImpl extends NamedFunctionDescriptorImpl {
|
public class ErrorNamedFunctionDescriptorImpl extends NamedFunctionDescriptorImpl {
|
||||||
// used for diagnostic only
|
// used for diagnostic only
|
||||||
@NotNull
|
@NotNull
|
||||||
private final ErrorUtils.ErrorScope ownerScope;
|
private final ErrorUtils.ErrorScope ownerScope;
|
||||||
|
|
||||||
public NamedFunctionDescriptorErrorImpl(ErrorUtils.ErrorScope ownerScope) {
|
public ErrorNamedFunctionDescriptorImpl(ErrorUtils.ErrorScope ownerScope) {
|
||||||
super(ErrorUtils.getErrorClass(), Collections.<AnnotationDescriptor>emptyList(), "<ERROR FUNCTION>", Kind.DECLARATION);
|
super(ErrorUtils.getErrorClass(), Collections.<AnnotationDescriptor>emptyList(), "<ERROR FUNCTION>", Kind.DECLARATION);
|
||||||
this.ownerScope = ownerScope;
|
this.ownerScope = ownerScope;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user