48 references to False
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Operators.cs (14)
2932
return (leftIsNull == rightIsNull) == (op == BinaryOperatorKind.Equal) ? ConstantValue.True : ConstantValue.
False
;
5022
Debug.Assert(constantValue == ConstantValue.True || constantValue == ConstantValue.
False
);
5032
/// - <see cref="ConstantValue.
False
"/>
5082
return ConstantValue.
False
;
5155
return ConstantValue.
False
;
5165
return ConstantValue.
False
;
5186
return ConstantValue.
False
;
5194
return ConstantValue.
False
;
5233
return ConstantValue.
False
;
5243
return ConstantValue.
False
;
5259
return ConstantValue.
False
;
5274
return ConstantValue.
False
;
5321
? ConstantValue.True : ConstantValue.
False
;
6073
else if (conditionValue == ConstantValue.
False
)
Binder\Binder_Patterns.cs (5)
879
if (match == ConstantValue.
False
|| match == ConstantValue.Bad)
1100
if (matchPossible != ConstantValue.
False
&& matchPossible != ConstantValue.Bad)
1144
if (matchPossible != ConstantValue.
False
&& matchPossible != ConstantValue.Bad)
1157
/// - <see cref="ConstantValue.
False
"/> if it catches none of them
1190
Debug.Assert((!conversion.IsUserDefined && !conversion.IsUnion) || result == ConstantValue.
False
|| result == ConstantValue.Bad);
Binder\DecisionDagBuilder.cs (4)
758
Tests test = MakeConstantTest(syntax, temp, sense ? ConstantValue.True : ConstantValue.
False
);
2082
if (matches == ConstantValue.
False
)
2323
Debug.Assert((hasValueTest.Value == ConstantValue.True || hasValueTest.Value == ConstantValue.
False
));
2324
if (hasValueTest.Value == ConstantValue.True || hasValueTest.Value == ConstantValue.
False
)
FlowAnalysis\AbstractFlowPass.cs (1)
683
return node.ConstantValueOpt == ConstantValue.
False
;
FlowAnalysis\NullableWalker_Patterns.cs (1)
594
bool isFalseTest = t.Value == ConstantValue.
False
;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (13)
289
if (loweredLeft.ConstantValueOpt == ConstantValue.
False
) return loweredLeft;
299
if (loweredRight.ConstantValueOpt == ConstantValue.
False
) return loweredLeft;
300
if (loweredLeft.ConstantValueOpt == ConstantValue.
False
) return loweredRight;
332
if (loweredRight.ConstantValueOpt == ConstantValue.
False
) return loweredLeft;
333
if (loweredLeft.ConstantValueOpt == ConstantValue.
False
) return loweredRight;
342
if (loweredLeft.ConstantValueOpt == ConstantValue.
False
)
345
if (loweredRight.ConstantValueOpt == ConstantValue.
False
)
351
if (loweredLeft.ConstantValueOpt == ConstantValue.
False
) return loweredRight;
352
if (loweredRight.ConstantValueOpt == ConstantValue.
False
) return loweredLeft;
365
if (loweredLeft.ConstantValueOpt == ConstantValue.
False
) return loweredRight;
366
if (loweredRight.ConstantValueOpt == ConstantValue.
False
) return loweredLeft;
634
if (testOperator == UnaryOperatorKind.DynamicFalse && constantLeft == ConstantValue.
False
||
678
testOperator == UnaryOperatorKind.DynamicTrue && constantLeft == ConstantValue.
False
;
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (1)
56
else if (conditionConstantValue == ConstantValue.
False
)
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (3)
40
return RewriteConstantIsOperator(receiver.Syntax, receiver, ConstantValue.
False
, rewrittenType);
44
return MakeLiteral(syntax, ConstantValue.
False
, rewrittenType);
86
Debug.Assert(constantValue == ConstantValue.True || constantValue == ConstantValue.
False
);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (1)
145
MakeLiteral(rewrittenArgument.Syntax, ConstantValue.
False
, boolType),
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
323
if (rightHasValue.ConstantValueOpt == ConstantValue.
False
)
331
if (leftHasValue.ConstantValueOpt == ConstantValue.
False
)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
91
if (constant == ConstantValue.True || constant == ConstantValue.
False
)
Utilities\TypeUnionValueSet.cs (2)
85
if (matches == ConstantValue.
False
)
235
if (matches == ConstantValue.
False
)