mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
Java: PsiFragment now extends PsiJavaToken
GitOrigin-RevId: 68857d1d90efd7546413bb45d932e3a5c864b0fc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
807c036dfc
commit
e336feedca
@@ -57,11 +57,8 @@ public class JavaHighlightErrorFilter extends HighlightErrorFilter {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (prevLeaf instanceof PsiFragment fragment) {
|
||||
IElementType type = fragment.getTokenType();
|
||||
if (type == JavaTokenType.STRING_TEMPLATE_END) {
|
||||
String text = fragment.getText();
|
||||
else if (type == JavaTokenType.STRING_TEMPLATE_END) {
|
||||
String text = token.getText();
|
||||
if (text.length() == 1 || !StringUtil.endsWithChar(text, '"')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
*
|
||||
* @author Bas Leijdekkers
|
||||
*/
|
||||
public interface PsiFragment extends PsiLiteralValue {
|
||||
public interface PsiFragment extends PsiLiteralValue, PsiJavaToken {
|
||||
|
||||
/**
|
||||
* Returns the type of the fragment token.
|
||||
@@ -18,6 +18,7 @@ public interface PsiFragment extends PsiLiteralValue {
|
||||
*
|
||||
* @return the token type.
|
||||
*/
|
||||
@Override
|
||||
IElementType getTokenType();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user