22 references to BoundNullCoalescingOperatorResultKind
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Operators.cs (9)
3977
leftPlaceholder: null, leftConversion: null,
BoundNullCoalescingOperatorResultKind
.NoCommonType, @checked: CheckOverflowAtRuntime, CreateErrorType(), hasErrors: true);
3992
leftPlaceholder: null, leftConversion: null,
BoundNullCoalescingOperatorResultKind
.NoCommonType, @checked: CheckOverflowAtRuntime, CreateErrorType(), hasErrors: true);
4001
leftPlaceholder: null, leftConversion: null,
BoundNullCoalescingOperatorResultKind
.NoCommonType, @checked: CheckOverflowAtRuntime, CreateErrorType(), hasErrors: true);
4057
leftPlaceholder, leftConversion,
BoundNullCoalescingOperatorResultKind
.RightDynamicType, @checked: CheckOverflowAtRuntime, optRightType);
4075
leftPlaceholder, leftConversion: leftPlaceholder,
BoundNullCoalescingOperatorResultKind
.LeftUnwrappedType, @checked: CheckOverflowAtRuntime, optLeftType0);
4092
leftPlaceholder, leftConversion: leftPlaceholder,
BoundNullCoalescingOperatorResultKind
.LeftType, @checked: CheckOverflowAtRuntime, optLeftType);
4123
BoundNullCoalescingOperatorResultKind
resultKind;
4135
resultKind =
BoundNullCoalescingOperatorResultKind
.LeftUnwrappedRightType;
4149
resultKind =
BoundNullCoalescingOperatorResultKind
.RightType;
FlowAnalysis\NullableWalker.cs (6)
5620
BoundNullCoalescingOperatorResultKind
.NoCommonType => (node.Type, NullableFlowState.NotNull),
5621
BoundNullCoalescingOperatorResultKind
.LeftType => getLeftResultType(leftResultType!, rightResultType!),
5622
BoundNullCoalescingOperatorResultKind
.LeftUnwrappedType => getLeftResultType(leftResultType!.StrippedType(), rightResultType!),
5623
BoundNullCoalescingOperatorResultKind
.RightType => getResultStateWithRightType(leftResultType!, rightResultType!),
5624
BoundNullCoalescingOperatorResultKind
.LeftUnwrappedRightType => getResultStateWithRightType(leftResultType!.StrippedType(), rightResultType!),
5625
BoundNullCoalescingOperatorResultKind
.RightDynamicType => (rightResultType!, NullableFlowState.NotNull),
Generated\BoundNodes.xml.Generated.cs (3)
1893
public BoundNullCoalescingOperator(SyntaxNode syntax, BoundExpression leftOperand, BoundExpression rightOperand, BoundValuePlaceholder? leftPlaceholder, BoundExpression? leftConversion,
BoundNullCoalescingOperatorResultKind
operatorResultKind, bool @checked, TypeSymbol type, bool hasErrors = false)
1914
public
BoundNullCoalescingOperatorResultKind
OperatorResultKind { get; }
1920
public BoundNullCoalescingOperator Update(BoundExpression leftOperand, BoundExpression rightOperand, BoundValuePlaceholder? leftPlaceholder, BoundExpression? leftConversion,
BoundNullCoalescingOperatorResultKind
operatorResultKind, bool @checked, TypeSymbol type)
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
46
BoundExpression conditionalExpression = MakeNullCoalescingOperator(syntax, lhsRead, assignment, leftPlaceholder: leftPlaceholder, leftConversion: leftPlaceholder,
BoundNullCoalescingOperatorResultKind
.LeftType, node.LeftOperand.Type);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
28
BoundNullCoalescingOperatorResultKind
resultKind,
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
197
result = new BoundNullCoalescingOperator(result.Syntax, result, _factory.StringLiteral(""), leftPlaceholder: placeholder, leftConversion: placeholder,
BoundNullCoalescingOperatorResultKind
.LeftType, @checked: false, result.Type) { WasCompilerGenerated = true };
Lowering\SyntheticBoundNodeFactory.cs (1)
911
return new BoundNullCoalescingOperator(Syntax, left, right, leftPlaceholder: null, leftConversion: null,
BoundNullCoalescingOperatorResultKind
.LeftType, @checked: false, left.Type) { WasCompilerGenerated = true };