29 references to NullableAlwaysHasValue
Microsoft.CodeAnalysis.CSharp (29)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (17)
821BoundExpression? leftNonNull = NullableAlwaysHasValue(left); 822BoundExpression? rightNonNull = NullableAlwaysHasValue(right); 994BoundExpression? xNonNull = NullableAlwaysHasValue(loweredLeft); 995BoundExpression? yNonNull = NullableAlwaysHasValue(loweredRight); 1190BoundExpression? xNonNull = NullableAlwaysHasValue(loweredLeft); 1191BoundExpression? yNonNull = NullableAlwaysHasValue(loweredRight); 1322BoundExpression? leftNonNull = NullableAlwaysHasValue(left); 1323BoundExpression? rightNonNull = NullableAlwaysHasValue(right); 1381BoundExpression? neverNull = NullableAlwaysHasValue(notAlwaysNull); 1442BoundExpression? leftNeverNull = NullableAlwaysHasValue(loweredLeft); 1443BoundExpression? rightNeverNull = NullableAlwaysHasValue(loweredRight); 1607BoundExpression? nonNullRight = NullableAlwaysHasValue(right); 1618if (NullableAlwaysHasValue(conditional.Consequence) != null && NullableNeverHasValue(conditional.Alternative)) 1688BoundExpression? neverNull = NullableAlwaysHasValue(notAlwaysNull); 1762BoundExpression? leftNonNull = NullableAlwaysHasValue(left); 1763BoundExpression? rightNonNull = NullableAlwaysHasValue(right); 1954BoundExpression? nonNullValue = NullableAlwaysHasValue(nullable);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (5)
390BoundExpression? nullableValue = NullableAlwaysHasValue(rewrittenOperand); 1075BoundExpression? value = NullableAlwaysHasValue(rewrittenOperand); 1219BoundExpression? nonNullValue = NullableAlwaysHasValue(operand); 1256BoundExpression? nonNullValue = NullableAlwaysHasValue(operand); 1315if (NullableAlwaysHasValue(conditional.Consequence) != null && NullableNeverHasValue(conditional.Alternative))
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
27operand = NullableAlwaysHasValue(operand) ?? operand;
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
105var notNullAccess = NullableAlwaysHasValue(conditionalAccess.WhenNotNull);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
64operand = NullableAlwaysHasValue(operand) ?? operand;
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
376if (NullableAlwaysHasValue(expr) is BoundExpression knownValue)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
259BoundExpression? neverNull = NullableAlwaysHasValue(loweredOperand); 331if (NullableAlwaysHasValue(conditional.Consequence) != null && NullableNeverHasValue(conditional.Alternative))
Lowering\SyntheticBoundNodeFactory.cs (1)
1834BoundExpression nonNullValue = LocalRewriter.NullableAlwaysHasValue(nullable);