dfa: don't merge by type states which have different eq states

This commit is contained in:
peter
2013-09-29 11:30:30 +02:00
parent 1500c8e404
commit f3063e6679
3 changed files with 25 additions and 1 deletions
@@ -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 {}
}