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