73 references to IsBooleanType
Microsoft.CodeAnalysis.VisualBasic (73)
Binding\Binder_Conversions.vb (5)
353
Debug.Assert(Not isOperandOfConditionalBranch OrElse targetType.
IsBooleanType
())
357
If isOperandOfConditionalBranch AndAlso targetType.
IsBooleanType
() Then
410
Debug.Assert(argument.Type.IsNullableOfBoolean() AndAlso booleanType.
IsBooleanType
())
1530
If(invoke.ReturnType.
IsBooleanType
,
1586
If(delegateReturnType.
IsBooleanType
(), lambda.ExprIsOperandOfConditionalBranch, False)),
Binding\Binder_Expressions.vb (1)
4790
Not isCompleted.Type.
IsBooleanType
() Then
Binding\Binder_Operators.vb (2)
525
Debug.Assert(forceToBooleanType.
IsBooleanType
())
703
Debug.Assert(checkCandidate.ReturnType.
IsBooleanType
() OrElse checkCandidate.ReturnType.IsNullableOfBoolean())
BoundTree\BoundNullableIsTrueOperator.vb (1)
15
Debug.Assert(Type.
IsBooleanType
())
BoundTree\BoundTernaryConditionalExpression.vb (1)
23
Debug.Assert(Condition.IsNothingLiteral() OrElse Condition.Type.
IsBooleanType
() OrElse Not Condition.Type.IsValueType)
BoundTree\BoundUnstructuredExceptionHandlingCatchFilter.vb (1)
15
Debug.Assert(Me.Type.
IsBooleanType
())
BoundTree\BoundUserDefinedShortCircuitingOperator.vb (1)
15
Debug.Assert(LeftTest Is Nothing OrElse LeftTest.Type.
IsBooleanType
())
CodeGen\EmitExpression.vb (1)
249
If conditional.ReceiverOrCondition.Type.
IsBooleanType
() Then
CodeGen\EmitOperators.vb (3)
55
If expression.Type.
IsBooleanType
() Then
420
If operandType IsNot Nothing AndAlso operandType.
IsBooleanType
() Then
596
Debug.Assert(unOp.OperatorKind = UnaryOperatorKind.Not AndAlso unOp.Type.
IsBooleanType
())
CodeGen\EmitStatement.vb (2)
569
If operandType IsNot Nothing AndAlso operandType.
IsBooleanType
() Then
759
Debug.Assert(unOp.Type.
IsBooleanType
())
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
844
If Not node.ReceiverOrCondition.Type.
IsBooleanType
() Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
547
Debug.Assert(receiverOrCondition.Type.
IsBooleanType
())
550
Debug.Assert(Not receiverOrCondition.Type.
IsBooleanType
())
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
269
ElseIf underlyingFrom.
IsBooleanType
() AndAlso underlyingTo.IsNumericType() Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (2)
104
Debug.Assert(node.Type.
IsBooleanType
())
142
Debug.Assert(resultType.
IsBooleanType
)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1394
If Not result.CaptureReceiver AndAlso Not node.ReceiverOrCondition.Type.
IsBooleanType
() AndAlso
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (20)
276
ElseIf node.Type.
IsBooleanType
() Then
295
ElseIf node.Type.
IsBooleanType
() Then
314
ElseIf node.Type.
IsBooleanType
() Then
333
ElseIf node.Type.
IsBooleanType
() Then
352
ElseIf node.Type.
IsBooleanType
() Then
371
ElseIf node.Type.
IsBooleanType
() Then
473
Debug.Assert(node.Type.
IsBooleanType
())
512
Debug.Assert(node.Type.
IsBooleanType
())
568
If cast.Operand.Type.
IsBooleanType
() Then
576
If cast.Operand.Type.
IsBooleanType
() Then
589
Debug.Assert(memberSymbol.ReturnType.
IsBooleanType
())
606
Debug.Assert(left.Type.
IsBooleanType
() AndAlso right.Type.
IsBooleanType
())
680
Debug.Assert(node.Type.
IsBooleanType
())
700
Debug.Assert(memberSymbol.Parameters(2).Type.
IsBooleanType
())
720
Debug.Assert(node.Type.IsObjectType() OrElse node.Type.
IsBooleanType
())
732
Debug.Assert(memberSymbol.Parameters(2).Type.
IsBooleanType
())
742
If Me._inExpressionLambda AndAlso memberSymbol.ReturnType.IsObjectType AndAlso node.Type.
IsBooleanType
Then
754
(node.Type.
IsBooleanType
() AndAlso left.Type.IsStringType() AndAlso right.Type.IsStringType()))
1326
Debug.Assert(resultType.
IsBooleanType
())
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (6)
70
If Not node.HasErrors AndAlso node.Type.
IsBooleanType
() AndAlso node.Operand.Type.IsObjectType() Then
827
(underlyingTypeTo.
IsBooleanType
() OrElse underlyingTypeTo.IsIntegralType() OrElse underlyingTypeTo.IsFloatingType) Then
831
(underlyingTypeFrom.
IsBooleanType
() OrElse underlyingTypeFrom.IsIntegralType() OrElse underlyingTypeFrom.IsFloatingType) Then
1143
(underlyingTypeFrom.
IsBooleanType
() OrElse underlyingTypeFrom.IsIntegralType() OrElse underlyingTypeFrom.IsFloatingType))
1148
If underlyingTypeFrom.
IsBooleanType
() Then
1224
(underlyingTypeTo.
IsBooleanType
() OrElse underlyingTypeTo.IsIntegralType() OrElse underlyingTypeTo.IsFloatingType))
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (1)
68
Debug.Assert(booleanType.
IsBooleanType
)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (2)
478
Debug.Assert(left.Type.
IsBooleanType
)
521
Debug.Assert(condition.Type.
IsBooleanType
, "ternary condition must be boolean")
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (2)
188
Debug.Assert(tempLockTaken.Type.
IsBooleanType
())
256
Debug.Assert(boundLockTakenLocal.Type.
IsBooleanType
())
Operations\VisualBasicOperationFactory.vb (1)
1655
Debug.Assert(boundNullableIsTrueOperator.Operand.Type.IsNullableOfBoolean() AndAlso boundNullableIsTrueOperator.Type.
IsBooleanType
())
Semantics\CompileTimeCalculations.vb (1)
279
Debug.Assert(sourceType.IsIntegralType() OrElse sourceType.
IsBooleanType
() OrElse sourceType.IsCharType(),
Semantics\Conversions.vb (8)
802
If IsIntegralType(sourceType) OrElse
IsBooleanType
(sourceType) Then
804
If IsNumericType(targetType) OrElse
IsBooleanType
(targetType) Then
809
If
IsBooleanType
(sourceType) AndAlso value <> 0 Then
829
If IsNumericType(targetType) OrElse
IsBooleanType
(targetType) Then
845
If IsNumericType(targetType) OrElse
IsBooleanType
(targetType) Then
1405
If source.ExprIsOperandOfConditionalBranch AndAlso invoke.ReturnType.
IsBooleanType
() Then
1438
Debug.Assert(booleanType.
IsBooleanType
())
1513
convToNullableOfBoolean.Value.ReturnType.
IsBooleanType
()) Then
Semantics\Operators.vb (6)
332
If Not method.ReturnType.
IsBooleanType
() Then
799
ElseIf underlyingResultType.
IsBooleanType
() Then
1106
ElseIf leftUnderlying.
IsBooleanType
() Then
1138
If resultType.
IsBooleanType
() Then
1309
If resultType.
IsBooleanType
() Then
1432
If resultType.
IsBooleanType
() Then
Symbols\TypeSymbolExtensions.vb (1)
20
Return this.IsNullableType() AndAlso this.GetNullableUnderlyingType().
IsBooleanType
()