mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-70913 smart step into should not propose methods from both branches in conditional expressions - support if statement
This commit is contained in:
@@ -423,11 +423,14 @@ public abstract class DebuggerUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean hasSideEffects(PsiElement element) {
|
||||
public static boolean hasSideEffects(@Nullable PsiElement element) {
|
||||
return hasSideEffectsOrReferencesMissingVars(element, null);
|
||||
}
|
||||
|
||||
public static boolean hasSideEffectsOrReferencesMissingVars(PsiElement element, @Nullable final Set<String> visibleLocalVariables) {
|
||||
public static boolean hasSideEffectsOrReferencesMissingVars(@Nullable PsiElement element, @Nullable final Set<String> visibleLocalVariables) {
|
||||
if (element == null) {
|
||||
return false;
|
||||
}
|
||||
final Ref<Boolean> rv = new Ref<>(Boolean.FALSE);
|
||||
element.accept(new JavaRecursiveElementWalkingVisitor() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user