643 references to System_Boolean
Microsoft.CodeAnalysis (126)
SpecialMembers.cs (24)
105(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
114(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
156(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
164(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
190(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
199(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
278(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
426(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
435(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
444(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
453(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
462(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
471(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
679(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
688(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
697(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
706(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
715(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
724(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
754(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
836(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
844(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
860(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
979(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
WellKnownMembers.cs (71)
62(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
70(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
78(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
86(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
94(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
102(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
110(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
327(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
371(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
436(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
466(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
483(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
515(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
522(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
711(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
775(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
952(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
983(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1094(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1146(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1331(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1338(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1459(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1554(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1835(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1845(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1855(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1865(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1875(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1885(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1892(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1895(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1902(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1905(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1912(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1915(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1922(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1925(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1932(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1935(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1942(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1945(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1955(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1965(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1979(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1980(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1994(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2021(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2022(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2053(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2054(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2115(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2174(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2187(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2216(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2248(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2938(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2942(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2950(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2954(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3013(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Value
3131(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,// Value
3283(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3313(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3459(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3550(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3798(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
3845(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3919(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3934(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
Microsoft.CodeAnalysis.CodeStyle (18)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (181)
Binder\Binder_Operators.cs (11)
542return new BoundLiteral(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal), GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
707GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
905if ((object)left.Type != null && left.Type.SpecialType == SpecialType.System_Boolean &&
906(object)right.Type != null && right.Type.SpecialType == SpecialType.System_Boolean)
956bool bothBool = signature.LeftType.SpecialType == SpecialType.System_Boolean &&
957signature.RightType.SpecialType == SpecialType.System_Boolean;
1035var booleanType = Compilation.GetSpecialType(SpecialType.System_Boolean);
1269return GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
1730Debug.Assert(resultTypeSymbol.SpecialType == SpecialType.System_Boolean);
1739if (resultTypeSymbol.SpecialType != SpecialType.System_Boolean && constantValue != null && !constantValue.IsBad)
3176var resultType = (TypeSymbol)GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
Lowering\SyntheticBoundNodeFactory.cs (17)
613return new BoundIsOperator(this.Syntax, operand, Type(type), c.Kind, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
618Debug.Assert(left.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
619Debug.Assert(right.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
620return Binary(BinaryOperatorKind.LogicalBoolAnd, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
625Debug.Assert(left.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
626Debug.Assert(right.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
627return Binary(BinaryOperatorKind.LogicalBoolOr, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
632return Binary(BinaryOperatorKind.IntEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
637return Binary(BinaryOperatorKind.ObjectEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
642return Binary(BinaryOperatorKind.ObjectNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
647return Binary(BinaryOperatorKind.IntNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
652return Binary(BinaryOperatorKind.IntLessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
657return Binary(BinaryOperatorKind.IntGreaterThanOrEqual, SpecialType(CodeAnalysis.SpecialType.System_Boolean), left, right);
1064return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
1498Debug.Assert(expression is { Type: { SpecialType: CodeAnalysis.SpecialType.System_Boolean } });
1631TypeSymbol boolType = Compilation.GetSpecialType(CodeAnalysis.SpecialType.System_Boolean);
1694Debug.Assert(returnType.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (13)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (122)
Lowering\SyntheticBoundNodeFactory.vb (8)
423Return Binary(BinaryOperatorKind.AndAlso, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
427Return Binary(BinaryOperatorKind.OrElse, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
431Return Binary(BinaryOperatorKind.Equals, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
435Return Binary(BinaryOperatorKind.LessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
439Dim boundNode = New BoundLiteral(_syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean))
1032Dim boundNode = Binary(BinaryOperatorKind.Is, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right)
1039Dim boundNode = Binary(BinaryOperatorKind.Is, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), operand, Me.Null(operand.Type))
1046Dim boundNode = Binary(BinaryOperatorKind.IsNot, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), operand, Me.Null(operand.Type))
Preprocessor\ExpressionEvaluator.vb (22)
38Const __Boolean = CType(SpecialType.System_Boolean, Byte)
101Case SpecialType.System_Boolean
387Return SpecialType.System_Boolean
487specialType = SpecialType.System_Boolean
611If specialType = SpecialType.System_Boolean Then
621Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
623Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
631Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
633Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_Boolean.GetDisplayName())
659Case SpecialType.System_Boolean
710Case SpecialType.System_Boolean
740Case SpecialType.System_Boolean
778Case SpecialType.System_Boolean
814Case SpecialType.System_Boolean
869Case SpecialType.System_Boolean
898If specialType = SpecialType.System_Boolean Then
908Case SpecialType.System_Boolean
1089ResultType = SpecialType.System_Boolean
1116If resultType = SpecialType.System_Boolean Then
1282If resultType = SpecialType.System_Boolean Then
1411If resultType = SpecialType.System_Boolean Then
1540ElseIf left.SpecialType = SpecialType.System_Boolean Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (18)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (19)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (17)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)