public int hashCode() {
   int result = 0;
   result += myIgnoreInjectedPsi ? 1 : 0;
   for (final PsiElement element : myScope) {
     result += element.hashCode();
   }
   return result;
 }
 @Override
 public int computeHashCode(final PsiElement object) {
   if (object instanceof PsiNamedElement) {
     final String name = ((PsiNamedElement) object).getName();
     if (name != null) {
       return name.hashCode();
     }
   }
   return object.hashCode();
 }
 @Override
 public int hashCode() {
   return myElement.hashCode();
 }
Esempio n. 4
0
 @Override
 public int hashCode() {
   return ((myContext == null ? 0 : myContext.hashCode()))
       + 10 * ((mySourceElement == null ? 0 : mySourceElement.hashCode()))
       + 20 * getClass().getName().hashCode();
 }
 public int hashCode() {
   PsiElement element = getElement();
   return element == null ? 0 : element.hashCode();
 }