diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PositioningStrategies.java b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PositioningStrategies.java index fe653778c4a..588b313be1c 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PositioningStrategies.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PositioningStrategies.java @@ -49,7 +49,7 @@ public class PositioningStrategies { } else if (declaration instanceof JetProperty) { JetProperty property = (JetProperty) declaration; - returnTypeRef = property.getPropertyTypeRef(); + returnTypeRef = property.getTypeRef(); nameNode = getNameNode(property); } else if (declaration instanceof JetPropertyAccessor) { @@ -108,7 +108,7 @@ public class PositioningStrategies { else if (element instanceof JetProperty) { JetProperty property = (JetProperty) element; PsiElement endOfSignatureElement; - JetTypeReference propertyTypeRef = property.getPropertyTypeRef(); + JetTypeReference propertyTypeRef = property.getTypeRef(); PsiElement nameIdentifier = property.getNameIdentifier(); if (propertyTypeRef != null) { endOfSignatureElement = propertyTypeRef; diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifiableBlockHelper.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifiableBlockHelper.java index 8133034391d..eace2c39a20 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifiableBlockHelper.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifiableBlockHelper.java @@ -45,7 +45,7 @@ public final class JetModifiableBlockHelper { } else if (declaration instanceof JetProperty) { JetProperty property = (JetProperty) declaration; - if (property.getPropertyTypeRef() != null) { + if (property.getTypeRef() != null) { return takePartInDeclarationTypeInference(property); } @@ -71,7 +71,7 @@ public final class JetModifiableBlockHelper { } else if (declaration instanceof JetProperty) { JetProperty property = (JetProperty) declaration; - if (property.getPropertyTypeRef() == null) { + if (property.getTypeRef() == null) { return true; } } diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetMultiDeclarationEntry.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetMultiDeclarationEntry.java index 664a696f331..a9cf6b5fc9e 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetMultiDeclarationEntry.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetMultiDeclarationEntry.java @@ -37,7 +37,7 @@ public class JetMultiDeclarationEntry extends JetNamedDeclarationNotStubbed impl } @Override - public JetTypeReference getPropertyTypeRef() { + public JetTypeReference getTypeRef() { return (JetTypeReference) findChildByType(JetNodeTypes.TYPE_REFERENCE); } diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetProperty.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetProperty.java index cdb9a39a1ce..32a87fe3985 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetProperty.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetProperty.java @@ -116,7 +116,7 @@ public class JetProperty extends JetTypeParameterListOwnerStub text = CLASS_INITIALIZER; } else if (declaration instanceof JetProperty) { JetProperty property = (JetProperty) declaration; - JetTypeReference ref = property.getPropertyTypeRef(); + JetTypeReference ref = property.getTypeRef(); if (ref != null) { if (settings.SPACE_BEFORE_TYPE_COLON) text += " "; text += ":"; diff --git a/idea/src/org/jetbrains/jet/plugin/quickfix/RemovePartsFromPropertyFix.java b/idea/src/org/jetbrains/jet/plugin/quickfix/RemovePartsFromPropertyFix.java index cdd63eb870a..7db3287c352 100644 --- a/idea/src/org/jetbrains/jet/plugin/quickfix/RemovePartsFromPropertyFix.java +++ b/idea/src/org/jetbrains/jet/plugin/quickfix/RemovePartsFromPropertyFix.java @@ -114,7 +114,7 @@ public class RemovePartsFromPropertyFix extends JetIntentionAction assert nextSibling != null; newElement.deleteChildRange(nextSibling, initializer); - if (newElement.getPropertyTypeRef() == null && type != null) { + if (newElement.getTypeRef() == null && type != null) { typeToAdd = type; } }