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) 701if (!innerOriginalConversion.IsImplicit || !innerOriginalConversion.IsNullable) 712if (!outerOriginalConversion.IsImplicit || !outerOriginalConversion.IsNullable) 807if (!originalConversion.IsNullable && !originalConversion.IsNumeric) 810if (originalConversion.IsNullable) 967if (conversion.IsNullable && castOrAsNode is CastExpressionSyntax castExpression)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\CollectionExpressionTests.cs (6)
14303Assert.True(conversion.IsNullable); 14309Assert.False(underlyingConversion.IsNullable); 14379Assert.True(conversion.IsNullable); 14385Assert.False(underlyingConversion.IsNullable); 14814Assert.True(conversion.IsNullable); 14819Assert.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) 701if (!innerOriginalConversion.IsImplicit || !innerOriginalConversion.IsNullable) 712if (!outerOriginalConversion.IsImplicit || !outerOriginalConversion.IsNullable) 807if (!originalConversion.IsNullable && !originalConversion.IsNumeric) 810if (originalConversion.IsNullable) 967if (conversion.IsNullable && castOrAsNode is CastExpressionSyntax castExpression)