示例#1
0
 public bool Equals(ElementAccess compareNode)
 {
     return
         (compareNode != null &&
          Expression?.Equals(compareNode.Expression) != false &&
          SemanticClassType?.Equals(compareNode.SemanticClassType) != false &&
          base.Equals(compareNode));
 }
示例#2
0
 public bool Equals(Annotation compareNode)
 {
     return
         (compareNode != null &&
          Reference?.Equals(compareNode.Reference) != false &&
          SemanticClassType?.Equals(compareNode.SemanticClassType) != false &&
          base.Equals(compareNode));
 }
示例#3
0
        public bool Equals(InvocationExpression compareNode)
        {
            return
                (compareNode != null &&
                 MethodName?.Equals(compareNode.MethodName) != false &&
                 Modifiers?.Equals(compareNode.Modifiers) != false &&
                 SemanticNamespace?.Equals(compareNode.SemanticNamespace) != false &&
                 CallerIdentifier?.Equals(compareNode.CallerIdentifier) != false &&
                 SemanticClassType?.Equals(compareNode.SemanticClassType) != false &&
                 SemanticMethodSignature?.Equals(compareNode.SemanticMethodSignature) != false &&
#pragma warning disable CS0618 // Type or member is obsolete
                 Parameters?.SequenceEqual(compareNode.Parameters) != false &&
#pragma warning restore CS0618 // Type or member is obsolete
                 Arguments?.SequenceEqual(compareNode.Arguments) != false &&
                 SemanticReturnType?.Equals(compareNode.SemanticReturnType) != false &&
                 SemanticOriginalDefinition?.Equals(compareNode.SemanticOriginalDefinition) != false &&
                 IsExtension == compareNode.IsExtension &&
                 base.Equals(compareNode));
        }