mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
dfa: don't merge by type states which have different eq states
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
class Some {
|
||||
|
||||
private boolean canBePatternVariable(PsiElement element) {
|
||||
if (element instanceof LeafElement) {
|
||||
return true;
|
||||
}
|
||||
|
||||
while (!(element instanceof LeafElement) && element != null) {
|
||||
element = getNextObject(element);
|
||||
}
|
||||
return element != null;
|
||||
}
|
||||
|
||||
PsiElement getNextObject(PsiElement element) { return element; }
|
||||
|
||||
class LeafElement {}
|
||||
interface PsiElement {}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user