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