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