Microsoft\Scripting\Ast\BinaryExpression.cs (13)
319!TypeUtils.AreEquivalent(method.GetParametersCached()[0].ParameterType.GetNonRefType(), _left.Type);
342Debug.Assert(method == null && TypeUtils.AreEquivalent(type, left.Type));
346Debug.Assert(method == null && TypeUtils.AreEquivalent(type, right.Type) && nodeType == ExpressionType.Coalesce);
367TypeUtils.AreEquivalent(right, left) &&
370TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(left));
691if (method == null && !TypeUtils.AreEquivalent(leftType, rightType)) {
814return TypeUtils.AreEquivalent(left, right) &&
816TypeUtils.AreEquivalent(pms[1].ParameterType, TypeUtils.GetNonNullableType(right));
1245returnType = (TypeUtils.IsNullableType(left.Type) && TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(left.Type))) ? left.Type : method.ReturnType;
1251returnType = (TypeUtils.IsNullableType(left.Type) && TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(left.Type))) ? left.Type : method.ReturnType;
1353if (!TypeUtils.AreEquivalent(method.ReturnType, right.Type)) {
1483if (!TypeUtils.AreEquivalent(mi.ReturnType, left.Type)) {
1488if (!TypeUtils.AreEquivalent(pms[0].ParameterType, method.ReturnType)) {
Microsoft\Scripting\Ast\TypeUtils.cs (13)
161if (AreEquivalent(dest, src)) {
203if (AreEquivalent(source, dest)) {
208if (IsNullableType(source) && AreEquivalent(dest, GetNonNullableType(source))) {
211if (IsNullableType(dest) && AreEquivalent(source, GetNonNullableType(dest))) {
326if (AreEquivalent(sourceArgument, destArgument))
416if (!AreEquivalent(left, right)) {
432return AreEquivalent(source, destination) || // identity conversion
456if (!TypeUtils.AreEquivalent(nnExprType, convertFrom) ||
457!TypeUtils.AreEquivalent(nnConvType, convertToType)) {
474if (!TypeUtils.AreEquivalent(mi.ReturnType, typeTo)) {
478if (!TypeUtils.AreEquivalent(pis[0].ParameterType, typeFrom)) {
605return AreEquivalent(type, subType) || subType.IsSubclassOf(type);
620if (type.IsGenericType && AreEquivalent(type.GetGenericTypeDefinition(), definition)) {