2.11 description from pom.xml or build.gradle | 模块描述

This commit is contained in:
林万程
2023-10-12 00:46:51 +08:00
parent a2486a36dd
commit d5813e57a7
13 changed files with 179 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ public class Prev {
@Nullable
public static PsiElement prevRefChild(@NotNull LineInfo lineInfo, @NotNull PsiElement element,
@NotNull Class<? extends PsiElement> refClass) {
PsiElement prevParent = refClassParent(element, refClass);
@Nullable PsiElement prevParent = refClassParent(element, refClass);
while ((element = PsiTreeUtil.prevVisibleLeaf(element)) != null) {
if (element.getTextRange().getEndOffset() < lineInfo.startOffset) {
return null;