64 references to ITypeSymbolHelpers
Microsoft.CodeAnalysis (64)
Operations\ControlFlowGraphBuilder.cs (62)
2170
if (
ITypeSymbolHelpers
.IsBooleanType(operation.Type) &&
2171
ITypeSymbolHelpers
.IsBooleanType(operation.LeftOperand.Type) &&
2172
ITypeSymbolHelpers
.IsBooleanType(operation.RightOperand.Type))
2178
ITypeSymbolHelpers
.IsNullableOfBoolean(operation.Type) &&
2179
ITypeSymbolHelpers
.IsNullableOfBoolean(operation.LeftOperand.Type) &&
2180
ITypeSymbolHelpers
.IsNullableOfBoolean(operation.RightOperand.Type))
2185
else if (
ITypeSymbolHelpers
.IsObjectType(operation.Type) &&
2186
ITypeSymbolHelpers
.IsObjectType(operation.LeftOperand.Type) &&
2187
ITypeSymbolHelpers
.IsObjectType(operation.RightOperand.Type))
2191
else if (
ITypeSymbolHelpers
.IsDynamicType(operation.Type) &&
2192
(
ITypeSymbolHelpers
.IsDynamicType(operation.LeftOperand.Type) ||
2193
ITypeSymbolHelpers
.IsDynamicType(operation.RightOperand.Type)))
2265
ITypeSymbolHelpers
.IsBooleanType(operation.Type) &&
2266
ITypeSymbolHelpers
.IsBooleanType(operation.Operand.Type);
2488
if (
ITypeSymbolHelpers
.IsBooleanType(left.Type))
2493
else if (
ITypeSymbolHelpers
.IsDynamicType(left.Type) || unaryOperatorMethod != null)
2498
(
ITypeSymbolHelpers
.IsBooleanType(unaryOperatorMethod.ReturnType) &&
2499
(
ITypeSymbolHelpers
.IsNullableType(left.Type) || !
ITypeSymbolHelpers
.IsNullableType(unaryOperatorMethod.Parameters[0].Type))))
2525
if (!
ITypeSymbolHelpers
.IsDynamicType(left.Type))
2585
if (
ITypeSymbolHelpers
.IsNullableType(left.Type))
2587
if (unaryOperatorMethod == null ? isLifted : !
ITypeSymbolHelpers
.IsNullableType(unaryOperatorMethod.Parameters[0].Type))
2593
Debug.Assert(unaryOperatorMethod == null || !
ITypeSymbolHelpers
.IsNullableType(unaryOperatorMethod.Parameters[0].Type));
2597
else if (unaryOperatorMethod != null &&
ITypeSymbolHelpers
.IsNullableType(unaryOperatorMethod.Parameters[0].Type))
2602
if (unaryOperatorMethod != null &&
ITypeSymbolHelpers
.IsBooleanType(unaryOperatorMethod.ReturnType))
2704
Debug.Assert(
ITypeSymbolHelpers
.IsBooleanType(condition.Type));
2753
ITypeSymbolHelpers
.IsBooleanType(binOp.Type) &&
2754
ITypeSymbolHelpers
.IsBooleanType(binOp.LeftOperand.Type) &&
2755
ITypeSymbolHelpers
.IsBooleanType(binOp.RightOperand.Type);
2866
if (
ITypeSymbolHelpers
.IsBooleanType(condition.Type))
2871
if (
ITypeSymbolHelpers
.IsBooleanType(conditional.WhenTrue.Type) &&
2872
ITypeSymbolHelpers
.IsBooleanType(conditional.WhenFalse.Type))
2891
if (
ITypeSymbolHelpers
.IsBooleanType(condition.Type))
2895
if (
ITypeSymbolHelpers
.IsBooleanType(coalesce.WhenNull.Type))
3007
if (
ITypeSymbolHelpers
.IsNullableType(valueTypeOpt) &&
3008
(!testConversion.IsIdentity || !
ITypeSymbolHelpers
.IsNullableType(operation.Type)))
3314
Debug.Assert(
ITypeSymbolHelpers
.IsBooleanType(booleanType));
3332
Debug.Assert(
ITypeSymbolHelpers
.IsNullableType(valueType));
3355
Debug.Assert(
ITypeSymbolHelpers
.IsNullableType(value.Type));
3357
MakeInvalidOperation(
ITypeSymbolHelpers
.GetNullableUnderlyingType(value.Type), value);
3430
if (
ITypeSymbolHelpers
.IsNullableType(operation.Type) && !
ITypeSymbolHelpers
.IsNullableType(currentConditionalAccess.WhenNotNull.Type))
3458
(operation.Type.IsReferenceType && !
ITypeSymbolHelpers
.IsNullableType(operation.Type))
3546
if (
ITypeSymbolHelpers
.IsNullableType(testExpressionType))
4147
else if (
ITypeSymbolHelpers
.IsNullableType(resource.Type))
4169
((value.Type!.Equals(iDisposable) || (!value.Type.IsReferenceType && !
ITypeSymbolHelpers
.IsNullableType(value.Type))) && disposeArguments.IsDefaultOrEmpty));
4206
return type?.IsValueType == true && !
ITypeSymbolHelpers
.IsNullableType(type);
4755
ITypeSymbol? stepEnumUnderlyingTypeOrSelf =
ITypeSymbolHelpers
.GetEnumUnderlyingTypeOrSelf(operation.StepValue.Type);
4915
!
ITypeSymbolHelpers
.IsSignedIntegralType(stepEnumUnderlyingTypeOrSelf) &&
4916
!
ITypeSymbolHelpers
.IsUnsignedIntegralType(stepEnumUnderlyingTypeOrSelf))
4920
if (
ITypeSymbolHelpers
.IsNullableType(stepValue.Type))
4926
ITypeSymbol? stepValueEnumUnderlyingTypeOrSelf =
ITypeSymbolHelpers
.GetEnumUnderlyingTypeOrSelf(stepValue.Type);
4928
if (
ITypeSymbolHelpers
.IsNumericType(stepValueEnumUnderlyingTypeOrSelf))
5083
if (
ITypeSymbolHelpers
.IsUnsignedIntegralType(stepEnumUnderlyingTypeOrSelf))
5103
if (comparisonKind == BinaryOperatorKind.None &&
ITypeSymbolHelpers
.IsSignedIntegralType(stepEnumUnderlyingTypeOrSelf))
5149
if (
ITypeSymbolHelpers
.IsNullableType(operation.LimitValue.Type))
5320
bool isNullable =
ITypeSymbolHelpers
.IsNullableType(operation.StepValue.Type);
5380
Debug.Assert(
ITypeSymbolHelpers
.IsNullableType(controlVariableReferenceForIncrement.Type));
5553
bool leftIsNullable =
ITypeSymbolHelpers
.IsNullableType(operation.Value.Type);
5554
bool rightIsNullable =
ITypeSymbolHelpers
.IsNullableType(compareWith.Type);
5664
Debug.Assert(
ITypeSymbolHelpers
.IsNullableType(type));
5665
Debug.Assert(
ITypeSymbolHelpers
.GetNullableUnderlyingType(type).Equals(operand.Type));
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (2)
137
if (
ITypeSymbolHelpers
.IsNullableType(type))
139
type =
ITypeSymbolHelpers
.GetNullableUnderlyingType(type);