187 references to IsSameTypeIgnoringAll
Microsoft.CodeAnalysis.VisualBasic (178)
Binding\Binder_Conversions.vb (4)
154sourceType.GetEnumUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(targetType.GetEnumUnderlyingTypeOrSelf())) 329If Not isExplicit AndAlso argument.Type.IsSameTypeIgnoringAll(targetType) Then 434Debug.Assert(argument.Type.IsSameTypeIgnoringAll(targetType)) 821If sourceArg.IsSameTypeIgnoringAll(destinationArg) Then
Binding\Binder_Invocation.vb (2)
1753Not commonReturnType.IsSameTypeIgnoringAll(returnType) Then 2493If Not (argument.IsLValue() AndAlso targetType.IsSameTypeIgnoringAll(argument.Type)) Then
Binding\Binder_Lambda.vb (1)
879If Not result.IsSameTypeIgnoringAll(candidate) Then
Binding\Binder_ObjectInitializer.vb (1)
505Debug.Assert(resultExpression.Type.IsSameTypeIgnoringAll(type0))
Binding\Binder_Operators.vb (4)
306leftType.GetNullableUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(rightType.GetNullableUnderlyingTypeOrSelf())) 657If Not operatorType.IsSameTypeIgnoringAll(bitwiseCandidate.Parameters(0).Type) OrElse 658Not operatorType.IsSameTypeIgnoringAll(bitwiseCandidate.Parameters(1).Type) Then 705If Not operatorType.IsSameTypeIgnoringAll(checkCandidate.Parameters(0).Type) Then
Binding\Binder_Query.vb (3)
3467If keysAreGood AndAlso Not outerKey.Type.IsSameTypeIgnoringAll(innerKey.Type) Then 4172Not targetVariableType.IsSameTypeIgnoringAll(variableType) Then 4483ElseIf Not result.IsSameTypeIgnoringAll(inferredType) Then
Binding\Binder_Statements.vb (9)
1194Debug.Assert(declarationInitializer.Type.IsSameTypeIgnoringAll(declType)) 1210Not type.IsSameTypeIgnoringAll(declarationInitializer.Type) Then 2333If Not method.Parameters(0).Type.IsSameTypeIgnoringAll(targetType) OrElse 2334Not method.ReturnType.IsSameTypeIgnoringAll(tokenType) Then 2337ElseIf Not method.Parameters(0).Type.IsSameTypeIgnoringAll(tokenType) OrElse Not method.IsSub Then 2341ElseIf Not method.Parameters(0).Type.IsSameTypeIgnoringAll(targetType) Then 3268If Not bestCandidate.Parameters(0).Type.IsSameTypeIgnoringAll(left.Type) OrElse 3269Not bestCandidate.Parameters(1).Type.IsSameTypeIgnoringAll(left.Type) OrElse 3270(Not isRelational AndAlso Not bestCandidate.ReturnType.IsSameTypeIgnoringAll(left.Type)) Then
Binding\Binder_Utils.vb (2)
1461If IsSameTypeIgnoringAll(conversionType.GetNullableUnderlyingType, operandType) Then 1488If IsSameTypeIgnoringAll(operandType, conversionType) Then
Binding\DocumentationCommentCrefBinder.vb (3)
131Not parameter.Type.IsSameTypeIgnoringAll(signatureTypes(i).Type) Then 139If candidateMethod.IsSub OrElse Not candidateMethod.ReturnType.IsSameTypeIgnoringAll(returnType) Then 163Not parameter.Type.IsSameTypeIgnoringAll(signatureTypes(i).Type) Then
BoundTree\BoundArrayCreation.vb (1)
42Debug.Assert(elementType.IsSameTypeIgnoringAll(item.Type))
BoundTree\BoundAssignmentOperator.vb (2)
85Debug.Assert(Left.Type.IsSameTypeIgnoringAll(Right.Type)) 92Left.Type.IsSameTypeIgnoringAll(Type) OrElse
BoundTree\BoundBinaryConditionalExpression.vb (4)
30Type.IsSameTypeIgnoringAll(ElseExpression.Type)) 34Debug.Assert(Type.IsSameTypeIgnoringAll(ConvertedTestExpression.Type)) 37Debug.Assert(TestExpressionPlaceholder.Type.IsSameTypeIgnoringAll(TestExpression.Type.GetNullableUnderlyingTypeOrSelf())) 40If Not Type.IsSameTypeIgnoringAll(TestExpression.Type.GetNullableUnderlyingTypeOrSelf()) Then
BoundTree\BoundBinaryOperator.vb (1)
31Debug.Assert(HasErrors OrElse Left.Type.IsSameTypeIgnoringAll(Right.Type) OrElse
BoundTree\BoundCall.vb (8)
100Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(Method.ReturnType)) 102Debug.Assert(Type.IsSameTypeIgnoringAll(Method.ReturnType)) 116Debug.Assert(type.IsSameTypeIgnoringAll(signatureType)) 118If type.IsSameTypeIgnoringAll(signatureType) Then 122type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(signatureType) Then 126Debug.Assert(type.IsSameTypeIgnoringAll(signatureType)) 131type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(signatureType)) 133Debug.Assert(type.IsSameTypeIgnoringAll(signatureType))
BoundTree\BoundConversion.vb (1)
68Debug.Assert(udc.UnderlyingExpression.Type.IsSameTypeIgnoringAll(Type))
BoundTree\BoundLocalDeclaration.vb (1)
42Debug.Assert(LocalSymbol.Type.IsSameTypeIgnoringAll(InitializerOpt.Type) OrElse InitializerOpt.Type.IsErrorType() OrElse
BoundTree\BoundLValueToRValueWrapper.vb (1)
16Debug.Assert(UnderlyingLValue.Type.IsSameTypeIgnoringAll(Type))
BoundTree\BoundSequence.vb (1)
39Debug.Assert(Type.IsSameTypeIgnoringAll(ValueOpt.Type))
BoundTree\BoundTernaryConditionalExpression.vb (2)
24Debug.Assert(WhenTrue.Type.IsSameTypeIgnoringAll(WhenFalse.Type)) 25Debug.Assert(Type.IsSameTypeIgnoringAll(WhenTrue.Type))
BoundTree\BoundUnaryOperator.vb (1)
28Debug.Assert(HasErrors OrElse Type.IsSameTypeIgnoringAll(Operand.Type))
BoundTree\BoundUserDefinedBinaryOperator.vb (5)
48argument.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(parameter.Type)) 52Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType) OrElse 54underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))) 60Debug.Assert(argument.Type.IsSameTypeIgnoringAll(parameter.Type)) 63Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))
BoundTree\BoundUserDefinedConversion.vb (1)
74Debug.Assert(operand.Type.IsSameTypeIgnoringAll(Type))
BoundTree\BoundUserDefinedUnaryOperator.vb (5)
42argument.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(parameter.Type)) 45Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType) OrElse 47underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))) 49Debug.Assert(argument.Type.IsSameTypeIgnoringAll(parameter.Type)) 50Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))
CodeGen\EmitConversion.vb (3)
289Not typeFrom.GetEnumUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(typeTo.GetEnumUnderlyingTypeOrSelf()) AndAlso 328If typeFrom.GetEnumUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(typeTo.GetEnumUnderlyingTypeOrSelf()) Then 411Not [interface].TypeArgumentsNoUseSiteDiagnostics(0).IsSameTypeIgnoringAll(fromElementType) Then
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
532Debug.Assert(node.ByRefLocal.Type.IsSameTypeIgnoringAll(node.LValue.Type), 602Debug.Assert(node.Left.Type.IsSameTypeIgnoringAll(node.Right.Type),
Compilation\SemanticModel.vb (1)
970If (type Is Nothing OrElse Not type.IsSameTypeIgnoringAll(convertedType)) Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (3)
107Debug.Assert(operand.Call.Method.ReturnType.IsSameTypeIgnoringAll(operand.Call.Method.Parameters(0).Type) AndAlso 108operand.Call.Method.ReturnType.IsSameTypeIgnoringAll(operand.Call.Method.Parameters(1).Type)) 689IsSameTypeIgnoringAll(methodReturnType.GetNullableUnderlyingTypeOrSelf))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (4)
46If convTestExpr Is Nothing OrElse resultType.IsSameTypeIgnoringAll(testExpressionType) OrElse 47(testExpressionType.IsNullableType AndAlso resultType.IsSameTypeIgnoringAll(testExpressionType.GetNullableUnderlyingType)) Then 190toType.IsSameTypeIgnoringAll(outConv.Type) OrElse 191toType.IsSameTypeIgnoringAll([call].Type))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
393Debug.Assert(outerConversion.Type.IsSameTypeIgnoringAll(resultType))
Lowering\LocalRewriter\LocalRewriter.vb (2)
74Debug.Assert(value.Type.IsSameTypeIgnoringAll(placeholder.Type)) 335Debug.Assert(result.Type.IsSameTypeIgnoringAll(node.Type))
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (4)
1450Debug.Assert(leftCallInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(0).Type), 1452Debug.Assert(rightCallInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(1).Type), 1465If Not whenHasValue.Type.IsSameTypeIgnoringAll(resultType) Then 1469Debug.Assert(whenHasValue.Type.IsSameTypeIgnoringAll(resultType), "result type must be same as resultType")
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (3)
242rewrittenRight.Type.IsSameTypeIgnoringAll(rewrittenLeft.Type.GetNullableUnderlyingType()) _ 264If capturedleft.Type.IsSameTypeIgnoringAll(node.ConvertedTestExpression.Type) Then 292If rewrittenLeft.Type.IsSameTypeIgnoringAll(convertedTestExpression.Type) Then
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (10)
176If destinationType.IsSameTypeIgnoringAll(rewrittenOperand.Type) Then 388Debug.Assert(rewrittenOperand.Type.IsSameTypeIgnoringAll(node.Type)) 472Debug.Assert(Not resultType.IsSameTypeIgnoringAll(operandType), "converting to same type") 533If Not operand.Type.IsSameTypeIgnoringAll(unwrappedResultType) Then 900Debug.Assert(memberSymbol.ReturnType.IsSameTypeIgnoringAll(node.Type)) 972Debug.Assert(memberSymbol.ReturnType.IsSameTypeIgnoringAll(underlyingTypeTo)) 980If Not targetResultType.IsSameTypeIgnoringAll(memberSymbol.ReturnType) Then 1049If Not operandType.IsSameTypeIgnoringAll(memberSymbol.Parameters(0).Type) Then 1117Debug.Assert(memberSymbol.ReturnType.IsSameTypeIgnoringAll(underlyingTypeTo)) 1125If Not targetResultType.IsSameTypeIgnoringAll(memberSymbol.ReturnType) Then
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (1)
364If Not targetType.IsSameTypeIgnoringAll(objectType) Then
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (3)
18Debug.Assert(nullableType.GetNullableUnderlyingType.IsSameTypeIgnoringAll(expr.Type)) 288If (Not type.IsSameTypeIgnoringAll(candidateNullExpression.Type)) OrElse 522Debug.Assert(whenTrue.Type.IsSameTypeIgnoringAll(whenFalse.Type), "ternary branches must have same types")
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
48Debug.Assert(node.Type.IsSameTypeIgnoringAll(result.Type))
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (3)
266Debug.Assert(callInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(0).Type), 279If Not whenHasValue.Type.IsSameTypeIgnoringAll(resultType) Then 283Debug.Assert(whenHasValue.Type.IsSameTypeIgnoringAll(resultType), "result type must be same as resultType")
Lowering\SyntheticBoundNodeFactory.vb (1)
296Debug.Assert(left.Type.IsSameTypeIgnoringAll(right.Type) OrElse right.Type.IsErrorType() OrElse left.Type.IsErrorType())
Semantics\Conversions.vb (22)
592If Not (Conversions.IsIdentityConversion(conv) AndAlso sourceEnum.IsSameTypeIgnoringAll(targetEnum)) Then 653Debug.Assert(Conversions.IsIdentityConversion(conv) AndAlso sourceNullable.IsSameTypeIgnoringAll(targetNullable)) 1253If source.InferredType?.IsSameTypeIgnoringAll(destination) Then 1394Not lambdaParam.Type.IsSameTypeIgnoringAll(invokeParam.Type) Then 1420ElseIf invoke.ReturnType.IsSameTypeIgnoringAll(source.LambdaSymbol.ReturnType) Then 1559(lambdaParam.Type IsNot Nothing AndAlso Not lambdaParam.Type.IsSameTypeIgnoringAll(invokeParam.Type)) Then 1574Not invokeParams(1).Type.IsSameTypeIgnoringAll(anonymousType.Properties(0).Type) Then 2296If source.IsSameTypeIgnoringAll(destination) Then 2491If arrayElement.IsSameTypeIgnoringAll(dstUnderlyingElement) Then 2512Return source.IsSameTypeIgnoringAll(destination) 2676ElseIf Not _match.IsSameTypeIgnoringAll(source) Then 2703If Not source.OriginalDefinition.IsSameTypeIgnoringAll(destination.OriginalDefinition) Then 2768If sourceArg.IsSameTypeIgnoringAll(destinationArg) Then 2944Debug.Assert(Not source.IsSameTypeIgnoringAll(destination)) 3096Debug.Assert(Not srcElem.IsSameTypeIgnoringAll(dstElem)) 3439ElseIf [interface].IsSameTypeIgnoringAll(source) Then 3524ElseIf srcUnderlying.IsSameTypeIgnoringAll(destination) Then 3541If source.IsSameTypeIgnoringAll(dstUnderlying) Then 3774If constraint.IsSameTypeIgnoringAll(destination) Then 3780DirectCast(constraint, NamedTypeSymbol).EnumUnderlyingType.IsSameTypeIgnoringAll(destination) Then 3939If constraint.IsSameTypeIgnoringAll(source) Then 3944DirectCast(constraint, NamedTypeSymbol).EnumUnderlyingType.IsSameTypeIgnoringAll(source) Then
Semantics\Operators.vb (10)
942leftNullableUnderlying.IsSameTypeIgnoringAll(rightNullableUnderlying) Then 1059Debug.Assert(leftType.IsSameTypeIgnoringAll(rightType) OrElse 2274If Not (mostSpecificSourceType.IsSameTypeIgnoringAll(method.Parameters(0).Type) AndAlso 2275mostSpecificTargetType.IsSameTypeIgnoringAll(method.ReturnType)) Then 2326IsSameTypeIgnoringAll(arrayLiteralType, inputType) Then 2684If best IsNot Nothing AndAlso best.IsSameTypeIgnoringAll(type) Then 2706Debug.Assert(Not best.IsSameTypeIgnoringAll(type)) 2729If best IsNot Nothing AndAlso best.IsSameTypeIgnoringAll(type) Then 2751Debug.Assert(Not best.IsSameTypeIgnoringAll(type)) 2889If commonAncestor IsNot Nothing AndAlso commonAncestor.IsSameTypeIgnoringAll(current) Then
Semantics\OverloadResolution.vb (11)
1799If Not leftParamType.IsSameTypeIgnoringAll(rightParamType) Then 1821If Not leftType.IsSameTypeIgnoringAll(rightType) Then 2151If left.IsSameTypeIgnoringAll(argType) Then 2155If right.IsSameTypeIgnoringAll(argType) Then 2278If Not leftParamType.IsSameTypeIgnoringAll(rightParamType) Then 3213If argument.IsLValue() AndAlso targetType.IsSameTypeIgnoringAll(argument.Type) Then 3993If Not existingType.IsSameTypeIgnoringAll(newType) Then 4037If Not existingType.IsSameTypeIgnoringAll(newType) Then 4366If leftParamType.IsSameTypeIgnoringAll(rightParamType) Then 4607If Not left.Candidate.ReceiverType.IsSameTypeIgnoringAll(right.Candidate.ReceiverType) Then 4743If Not leftType.IsSameTypeIgnoringAll(rightType) Then
Semantics\TypeInference\TypeArgumentInference.vb (10)
301ElseIf Not firstInferredType.IsSameTypeIgnoringAll(currentTypeInfo.ResultType) Then 378If TypeOf competitor.ResultType IsNot ArrayLiteralTypeSymbol AndAlso type.IsSameTypeIgnoringAll(competitor.ResultType) Then 1439If argumentTypeAsNamedType.OriginalDefinition.IsSameTypeIgnoringAll(parameterTypeAsNamedType.OriginalDefinition) Then 1801If baseSearchType.IsSameTypeIgnoringAll(fixedType) Then 1831ElseIf match.IsSameTypeIgnoringAll(type) Then 1847If constraint.OriginalDefinition.IsSameTypeIgnoringAll(baseInterface.OriginalDefinition) Then 1860If [interface].OriginalDefinition.IsSameTypeIgnoringAll(baseInterface.OriginalDefinition) Then 1879If constraint.OriginalDefinition.IsSameTypeIgnoringAll(baseClass.OriginalDefinition) Then 1897If baseType.OriginalDefinition.IsSameTypeIgnoringAll(baseClass.OriginalDefinition) Then 2205IsSameTypeIgnoringAll(lambdaReturnNamedType.OriginalDefinition,
Semantics\TypeInference\TypeInferenceCollection.vb (7)
269IsSameTypeIgnoringAll(arrayLiteralType, outer.ResultType) Then 307If Not resultList(i).ResultType.IsSameTypeIgnoringAll(inferredType) Then 347If candidateType.ElementType.IsSameTypeIgnoringAll(inferredElementType) Then 456If IsSameTypeIgnoringAll(arrayLiteralType, candidate) Then 513ElseIf hint.IsSameTypeIgnoringAll(candidate) Then 529ElseIf candidate.IsSameTypeIgnoringAll(hint) Then 586If TypeOf competitor.ResultType IsNot ArrayLiteralTypeSymbol AndAlso type.IsSameTypeIgnoringAll(competitor.ResultType) Then
Symbols\ConstraintsHelper.vb (1)
1144If (type IsNot Nothing) AndAlso constraintType.IsSameTypeIgnoringAll(type) Then
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
543If potentialMethodKind = MethodKind.Conversion AndAlso Not outputType.IsSameTypeIgnoringAll(contender.ReturnType) Then 549If Not inputParams(j).Type.IsSameTypeIgnoringAll(contender.Parameters(j).Type) Then
Symbols\MethodSignatureComparer.vb (1)
928If t.IsSameTypeIgnoringAll(type) Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1058constraintInfo.TypeConstraint.IsSameTypeIgnoringAll(constraint) Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (3)
231If overriddenMethod IsNot Nothing AndAlso overriddenMethod.ReturnType.IsSameTypeIgnoringAll(result) Then 430If Not propertyType.IsSameTypeIgnoringAll(valueParameterType) Then 440If overriddenParameter.Type.IsSameTypeIgnoringAll(valueParameterType) AndAlso
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (1)
313If overriddenParameter.Type.IsSameTypeIgnoringAll(valueParameterType) Then
Symbols\Tuples\TupleFieldSymbol.vb (1)
89Debug.Assert(container.UnderlyingNamedType.IsSameTypeIgnoringAll(underlyingField.ContainingType) OrElse TypeOf Me Is TupleVirtualElementFieldSymbol,
Symbols\TypeSymbolExtensions.vb (2)
605If current.IsSameTypeIgnoringAll(superType) Then 619If current.IsSameTypeIgnoringAll(baseType) Then
Utilities\VarianceAmbiguity.vb (1)
121If Not typeArgument1.IsSameTypeIgnoringAll(typeArgument2) Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Semantics\Conversions.vb (4)
1476Assert.True(arrayInt32.IsSameTypeIgnoringAll(modifiedArrayInt32)) 1477Assert.True(modifiedArrayInt32.IsSameTypeIgnoringAll(arrayInt32)) 1487Assert.True(enumerableOfArrayInt32.IsSameTypeIgnoringAll(enumerableOfModifiedArrayInt32)) 1488Assert.True(enumerableOfModifiedArrayInt32.IsSameTypeIgnoringAll(enumerableOfArrayInt32))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (5)
SymbolsTests\CustomModifiersTests.vb (5)
289Assert.True(withoutModifiers.IsSameTypeIgnoringAll(withModifiers)) 1281Assert.True(base1.IsSameTypeIgnoringAll(base2)) 1285Assert.True(base1.IsSameTypeIgnoringAll(base3)) 2210Assert.True(t1.IsSameTypeIgnoringAll(t2)) 2211Assert.True(t2.IsSameTypeIgnoringAll(t1))