More renames of TypeRef to TypeReference
This commit is contained in:
@@ -107,7 +107,7 @@ public class JetIconProvider extends IconProvider {
|
||||
}
|
||||
|
||||
if (psiElement instanceof JetNamedFunction) {
|
||||
if (((JetFunction) psiElement).getReceiverTypeRef() != null) {
|
||||
if (((JetFunction) psiElement).getReceiverTypeReference() != null) {
|
||||
return JetIcons.EXTENSION_FUNCTION;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ public class SimplifyNegatedBinaryExpressionIntention : JetSelfTargetingIntentio
|
||||
when (expression) {
|
||||
is JetIsExpression -> {
|
||||
psiFactory.createExpression(
|
||||
"${expression.getLeftHandSide().getText() ?: ""} ${invertedOperation.getValue()} ${expression.getTypeRef()?.getText() ?: ""}"
|
||||
"${expression.getLeftHandSide().getText() ?: ""} ${invertedOperation.getValue()} ${expression.getTypeReference()?.getText() ?: ""}"
|
||||
)
|
||||
}
|
||||
is JetBinaryExpression -> psiFactory.createBinaryExpression(
|
||||
|
||||
@@ -43,10 +43,10 @@ public class MemberMatching {
|
||||
@Nullable
|
||||
private static JetTypeReference getReceiverType(@NotNull JetNamedDeclaration propertyOrFunction) {
|
||||
if (propertyOrFunction instanceof JetNamedFunction) {
|
||||
return ((JetNamedFunction) propertyOrFunction).getReceiverTypeRef();
|
||||
return ((JetNamedFunction) propertyOrFunction).getReceiverTypeReference();
|
||||
}
|
||||
if (propertyOrFunction instanceof JetProperty) {
|
||||
return ((JetProperty) propertyOrFunction).getReceiverTypeRef();
|
||||
return ((JetProperty) propertyOrFunction).getReceiverTypeReference();
|
||||
}
|
||||
throw new IllegalArgumentException("Neither function nor declaration: " + propertyOrFunction.getClass().getName());
|
||||
}
|
||||
@@ -83,7 +83,7 @@ public class MemberMatching {
|
||||
KotlinBuiltIns builtIns = KotlinBuiltIns.getInstance();
|
||||
int parameterCount = type.getParameters().size();
|
||||
|
||||
if (type.getReceiverTypeRef() == null) {
|
||||
if (type.getReceiverTypeReference() == null) {
|
||||
return builtIns.getFunction(parameterCount).getName().asString();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user