private void ComputeHashCodePartsIgnoringLocation(Action <int> addPart)
 {
     addPart(SymbolOpt.GetHashCodeOrDefault());
     addPart(HashUtilities.Combine(Indices));
     addPart(InstanceReferenceOperationSyntaxOpt.GetHashCodeOrDefault());
     addPart(CaptureIdOpt.GetHashCodeOrDefault());
     addPart(Type.GetHashCode());
     addPart(ParentOpt.GetHashCodeOrDefault());
     addPart(IsThisOrMeInstance.GetHashCode());
 }
Exemplo n.º 2
0
 private void ComputeHashCodePartsIgnoringLocation(ArrayBuilder <int> builder)
 {
     builder.Add(SymbolOpt.GetHashCodeOrDefault());
     builder.Add(HashUtilities.Combine(Indices));
     builder.Add(InstanceReferenceOperationSyntaxOpt.GetHashCodeOrDefault());
     builder.Add(CaptureIdOpt.GetHashCodeOrDefault());
     builder.Add(Type.GetHashCode());
     builder.Add(ParentOpt.GetHashCodeOrDefault());
     builder.Add(IsThisOrMeInstance.GetHashCode());
 }