mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-18578 [completion] Add completion for "some" keyword
GitOrigin-RevId: 4b2c616f5518358367d6b076143c256b4de6f6d0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
019175c7d5
commit
c64967f41b
@@ -80,6 +80,11 @@ public abstract class PsiElementPattern<T extends PsiElement,Self extends PsiEle
|
||||
return afterLeafSkipping(psiElement().whitespaceCommentEmptyOrError(), pattern);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Self beforeLeaf(@NotNull final String... withText) {
|
||||
return beforeLeaf(psiElement().withText(StandardPatterns.string().oneOf(withText)));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Self beforeLeaf(@NotNull final ElementPattern<? extends PsiElement> pattern) {
|
||||
return beforeLeafSkipping(psiElement().whitespaceCommentEmptyOrError(), pattern);
|
||||
|
||||
Reference in New Issue
Block a user