Method rename

This commit is contained in:
Alexey Sedunov
2013-12-23 20:26:53 +04:00
parent fbb03afc0f
commit d00b17c621
4 changed files with 6 additions and 6 deletions
@@ -85,7 +85,7 @@ abstract class JetNamedDeclarationStub<T extends NamedStub> extends JetDeclarati
@NotNull
@Override
public SearchScope getUseScope() {
JetElement enclosingBlock = JetPsiUtil.getEnclosingBlockForLocalDeclaration(this);
JetElement enclosingBlock = JetPsiUtil.getEnclosingElementForLocalDeclaration(this);
if (enclosingBlock != null) {
return new LocalSearchScope(enclosingBlock);
}
@@ -1005,7 +1005,7 @@ public class JetPsiUtil {
}
@Nullable
public static JetElement getEnclosingBlockForLocalDeclaration(@Nullable JetNamedDeclaration declaration) {
public static JetElement getEnclosingElementForLocalDeclaration(@Nullable JetNamedDeclaration declaration) {
if (declaration instanceof JetTypeParameter || declaration instanceof JetParameter) {
declaration = PsiTreeUtil.getParentOfType(declaration, JetNamedDeclaration.class);
}
@@ -1021,7 +1021,7 @@ public class JetPsiUtil {
}
public static boolean isLocal(@NotNull JetNamedDeclaration declaration) {
return getEnclosingBlockForLocalDeclaration(declaration) != null;
return getEnclosingElementForLocalDeclaration(declaration) != null;
}
@Nullable