30 references to IsNullable
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Conversions.cs (4)
88!(conversion.IsTupleLiteralConversion || (conversion.IsNullable && conversion.UnderlyingConversions[0].IsTupleLiteralConversion)) && 154(conversion.IsNullable && conversion.UnderlyingConversions[0].IsTupleLiteralConversion)) 234|| (conversion.IsNullable && conversion.UnderlyingConversions[0].IsCollectionExpression) 316if (conversion.IsNullable)
Binder\Semantics\Conversions\Conversion.cs (1)
1154return new CommonConversion(Exists, IsIdentity, IsNumeric, IsReference, IsImplicit, IsNullable, methodSymbol, constrainedToType);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
403case BoundConversion { Conversion: { IsNullable: true, UnderlyingConversions: var underlying } conversion, Operand: var o } 437case BoundConversion { Conversion: { IsNullable: true, UnderlyingConversions: var nested }, Operand: var o } conv when
Symbols\Source\ParameterHelpers.cs (1)
804else if (((conversion.IsNullable && !defaultExpression.Type.IsNullableType()) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (7)
227(conversion.IsNumeric || conversion.IsNullable) && 365originalConversion.IsNullable) 719if (!innerOriginalConversion.IsImplicit || !innerOriginalConversion.IsNullable) 730if (!outerOriginalConversion.IsImplicit || !outerOriginalConversion.IsNullable) 825if (!originalConversion.IsNullable && !originalConversion.IsNumeric) 828if (originalConversion.IsNullable) 985if (conversion.IsNullable && castOrAsNode is CastExpressionSyntax castExpression)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\CollectionExpressionTests.cs (6)
14237Assert.True(conversion.IsNullable); 14243Assert.False(underlyingConversion.IsNullable); 14313Assert.True(conversion.IsNullable); 14319Assert.False(underlyingConversion.IsNullable); 14748Assert.True(conversion.IsNullable); 14753Assert.False(underlyingConversion.IsNullable);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\GetSemanticInfoTests.cs (2)
697Assert.True(conv.IsNullable); 769Assert.True(conv.IsNullable);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (7)
227(conversion.IsNumeric || conversion.IsNullable) && 365originalConversion.IsNullable) 719if (!innerOriginalConversion.IsImplicit || !innerOriginalConversion.IsNullable) 730if (!outerOriginalConversion.IsImplicit || !outerOriginalConversion.IsNullable) 825if (!originalConversion.IsNullable && !originalConversion.IsNumeric) 828if (originalConversion.IsNullable) 985if (conversion.IsNullable && castOrAsNode is CastExpressionSyntax castExpression)