mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better param name
This commit is contained in:
+2
-2
@@ -123,7 +123,7 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass {
|
||||
* @param psiFile psi file for element
|
||||
* @return a pair where first element is read usages and second is write usages
|
||||
*/
|
||||
public static Couple<Collection<TextRange>> getHighlightUsages(@NotNull PsiElement target, PsiFile psiFile, boolean withDecls) {
|
||||
public static Couple<Collection<TextRange>> getHighlightUsages(@NotNull PsiElement target, PsiFile psiFile, boolean withDeclarations) {
|
||||
Collection<TextRange> readRanges = new ArrayList<TextRange>();
|
||||
Collection<TextRange> writeRanges = new ArrayList<TextRange>();
|
||||
final ReadWriteAccessDetector detector = ReadWriteAccessDetector.findDetector(target);
|
||||
@@ -143,7 +143,7 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass {
|
||||
}
|
||||
}
|
||||
|
||||
if (withDecls) {
|
||||
if (withDeclarations) {
|
||||
final TextRange declRange = HighlightUsagesHandler.getNameIdentifierRange(psiFile, target);
|
||||
if (declRange != null) {
|
||||
if (detector != null && detector.isDeclarationWriteAccess(target)) {
|
||||
|
||||
Reference in New Issue
Block a user