mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
[java] skip function expression search for empty scopes
GitOrigin-RevId: 55f025962c4ef6718d003b33095a0380db07a0e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c4b914ce38
commit
ab2594d5e5
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.psi.impl.search;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
@@ -62,6 +62,9 @@ public final class JavaFunctionalExpressionSearcher extends QueryExecutorBase<Ps
|
||||
|
||||
@Override
|
||||
public void processQuery(@NotNull SearchParameters p, @NotNull Processor<? super PsiFunctionalExpression> consumer) {
|
||||
if (ReadAction.compute(() -> p.getEffectiveSearchScope()) == GlobalSearchScope.EMPTY_SCOPE) {
|
||||
return;
|
||||
}
|
||||
Session session = ReadAction.compute(() -> new Session(p, consumer));
|
||||
session.processResults();
|
||||
if (!session.filesLookedInside.isEmpty() && LOG.isDebugEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user