43 references to True
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Operators.cs (10)
1930
return (leftIsNull == rightIsNull) == (op == BinaryOperatorKind.Equal) ? ConstantValue.
True
: ConstantValue.False;
3327
Debug.Assert(constantValue == ConstantValue.
True
|| constantValue == ConstantValue.False);
3329
ErrorCode errorCode = constantValue == ConstantValue.
True
? ErrorCode.WRN_IsAlwaysTrue : ErrorCode.WRN_IsAlwaysFalse;
3338
/// - <see cref="ConstantValue.
True
"/>
3544
return operandCouldBeNull ? null : ConstantValue.
True
;
3553
return operandCouldBeNull ? null : ConstantValue.
True
;
3568
return operandCouldBeNull ? null : ConstantValue.
True
;
3585
return operandCouldBeNull ? null : ConstantValue.
True
;
3597
? ConstantValue.
True
: ConstantValue.False;
4348
else if (conditionValue == ConstantValue.
True
)
Binder\Binder_Patterns.cs (2)
788
/// - <see cref="ConstantValue.
True
"/> if the matched type catches all of them
809
return ConstantValue.
True
;
Binder\DecisionDagBuilder.cs (3)
1259
else if (matches == ConstantValue.
True
)
1269
if (matches == ConstantValue.
True
)
1856
public bool IsFullyMatched => RemainingTests is Tests.True && (WhenClause is null || WhenClause.ConstantValueOpt == ConstantValue.
True
);
FlowAnalysis\AbstractFlowPass.cs (1)
671
return node.ConstantValueOpt == ConstantValue.
True
;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
255
if (node.WhenClause?.ConstantValueOpt != ConstantValue.
True
)
FlowAnalysis\NullableWalker_Patterns.cs (1)
665
if (w.WhenExpression != null && w.WhenExpression.ConstantValueOpt != ConstantValue.
True
)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
1009
if (whenExpression is not null && whenExpression.ConstantValueOpt != ConstantValue.
True
)
1161
if (whenClause.WhenExpression != null && whenClause.WhenExpression.ConstantValueOpt != ConstantValue.
True
)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (13)
278
if (loweredRight.ConstantValueOpt == ConstantValue.
True
) return loweredLeft;
279
if (loweredLeft.ConstantValueOpt == ConstantValue.
True
) return loweredRight;
292
if (loweredLeft.ConstantValueOpt == ConstantValue.
True
) return loweredLeft;
302
if (loweredRight.ConstantValueOpt == ConstantValue.
True
) return loweredLeft;
303
if (loweredLeft.ConstantValueOpt == ConstantValue.
True
) return loweredRight;
328
if (loweredLeft.ConstantValueOpt == ConstantValue.
True
) return loweredRight;
329
if (loweredRight.ConstantValueOpt == ConstantValue.
True
) return loweredLeft;
347
if (loweredLeft.ConstantValueOpt == ConstantValue.
True
)
350
if (loweredRight.ConstantValueOpt == ConstantValue.
True
)
361
if (loweredLeft.ConstantValueOpt == ConstantValue.
True
)
364
if (loweredRight.ConstantValueOpt == ConstantValue.
True
)
625
testOperator == UnaryOperatorKind.DynamicTrue && constantLeft == ConstantValue.
True
)
667
bool leftTestIsConstantFalse = testOperator == UnaryOperatorKind.DynamicFalse && constantLeft == ConstantValue.
True
||
Lowering\LocalRewriter\LocalRewriter_ConditionalOperator.cs (1)
52
if (conditionConstantValue == ConstantValue.
True
)
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
86
Debug.Assert(constantValue == ConstantValue.
True
|| constantValue == ConstantValue.False);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
90
if (constant == ConstantValue.
True
|| constant == ConstantValue.False)
Microsoft.CodeAnalysis.VisualBasic (7)
BoundTree\BoundExpressionExtensions.vb (1)
394
Return expr.ConstantValueOpt Is ConstantValue.
True
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (2)
1332
ConstantValue.
True
,
1340
ConstantValue.
True
),
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (3)
67
hasValueExpr = New BoundLiteral(operand.Syntax, ConstantValue.
True
, Me.GetSpecialType(SpecialType.System_Boolean))
306
Return WrapInNullable(New BoundLiteral(syntax, ConstantValue.
True
, booleanType), nullableOfBoolean)
526
Return MakeSequence(syntax, condition, If(ifConditionConst Is ConstantValue.
True
, whenTrue, whenFalse))
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (1)
263
New BoundLiteral(syntaxNode, ConstantValue.
True
, boundLockTakenLocal.Type),