28 references to IsSameAs
Microsoft.CodeAnalysis.CSharp (28)
Symbols\AbstractTypeMap.cs (4)
69if (!changed && !oldArgument.IsSameAs(newArgument)) 188if (element.IsSameAs(oldElement)) 231if (pointedAtType.IsSameAs(oldPointedAtType)) 277|| !f.Signature.ReturnTypeWithAnnotations.IsSameAs(substitutedReturnType)
Symbols\ArrayTypeSymbol.cs (1)
99return ElementTypeWithAnnotations.IsSameAs(elementTypeWithAnnotations) ? this : WithElementTypeCore(elementTypeWithAnnotations);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (4)
373if (!mergedParameterType.IsSameAs(thisParam.TypeWithAnnotations)) 390if (hasParamChanges || !mergedReturnType.IsSameAs(ReturnTypeWithAnnotations)) 413if (!transformedType.IsSameAs(param.TypeWithAnnotations)) 431if (hasParamChanges || !transformedReturn.IsSameAs(ReturnTypeWithAnnotations))
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (3)
141if (!oldTypeArgument.IsSameAs(newTypeArgument)) 193paramsModified = paramsModified || !transformedParam.IsSameAs(param.TypeWithAnnotations); 208if (paramsModified || !transformedReturnType.IsSameAs(type.Signature.ReturnTypeWithAnnotations))
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
222paramsModified = paramsModified || !decodedParam.IsSameAs(param.TypeWithAnnotations); 240if (paramsModified || !decodedReturnType.IsSameAs(type.Signature.ReturnTypeWithAnnotations)) 320anyDecoded |= !decoded.IsSameAs(typeArg);
Symbols\NamedTypeSymbol.cs (3)
942else if (!oldTypeArgument.IsSameAs(newTypeArgument)) 969if (!oldTypeArgument.IsSameAs(newTypeArgument)) 1055if (!typeArgumentA.IsSameAs(merged))
Symbols\PointerTypeSymbol.cs (1)
282return PointedAtTypeWithAnnotations.IsSameAs(newPointedAtType) ? this : new PointerTypeSymbol(newPointedAtType);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
700if (oldElement.IsSameAs(newElement)) 751if (oldPointed.IsSameAs(newPointed)) 764symbolModified = symbolModified || !signature.ReturnTypeWithAnnotations.IsSameAs(newReturn); 782parametersModified = parametersModified || !parameter.TypeWithAnnotations.IsSameAs(newParameterType) || customModifiersChanged;
Symbols\TypeUnification.cs (2)
50} while (!type.IsSameAs(previous)); 83return t1.IsSameAs(t2);
Symbols\TypeWithAnnotations.cs (3)
340if (this.IsSameAs(other)) 783return x.HasValue == y.HasValue && (!x.HasValue || x.GetValueOrDefault().IsSameAs(y.GetValueOrDefault())); 1160if (!newUnderlying.IsSameAs(this._underlying))