693 references to System_Boolean
ConfigurationSchemaGenerator (1)
ILLink.RoslynAnalyzer (3)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.CodeAnalysis (141)
SpecialMembers.cs (28)
153(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
162(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
224(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
232(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
258(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
267(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
290(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
367(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
515(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
524(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
533(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
542(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
551(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
560(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
768(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
777(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
786(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
795(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
804(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
813(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
925(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
933(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
949(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1076(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1194(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1216(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1233(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
WellKnownMembers.cs (81)
42(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
50(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
58(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
66(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
74(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
82(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
90(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
307(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
351(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
425(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
433(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
442(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
481(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
670(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
734(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
935(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
966(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1102(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1154(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1339(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1346(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1467(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1562(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1853(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1863(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1873(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1883(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1893(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1900(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1903(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1910(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1913(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1920(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1923(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1930(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1933(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1940(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1943(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1950(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1953(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1963(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1973(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1987(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1988(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2002(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2029(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2030(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2061(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2062(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2123(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2182(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2195(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2224(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2256(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2936(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2940(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
2948(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
2952(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3011(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Value
3129(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,// Value
3281(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3318(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3504(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3595(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
3897(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3971(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3986(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
4065(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4096(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4103(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4125(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4196(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
5064(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5084(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5104(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5124(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5144(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5164(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
Microsoft.CodeAnalysis.CodeStyle (19)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp (189)
Binder\Binder_Operators.cs (11)
542return new BoundLiteral(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal), GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
737GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
936if ((object)left.Type != null && left.Type.SpecialType == SpecialType.System_Boolean &&
937(object)right.Type != null && right.Type.SpecialType == SpecialType.System_Boolean)
987bool bothBool = signature.LeftType.SpecialType == SpecialType.System_Boolean &&
988signature.RightType.SpecialType == SpecialType.System_Boolean;
1066var booleanType = Compilation.GetSpecialType(SpecialType.System_Boolean);
1305return GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
1766Debug.Assert(resultTypeSymbol.SpecialType == SpecialType.System_Boolean);
1775if (resultTypeSymbol.SpecialType != SpecialType.System_Boolean && constantValue != null && !constantValue.IsBad)
3224var resultType = (TypeSymbol)GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
Lowering\SyntheticBoundNodeFactory.cs (17)
645return new BoundIsOperator(this.Syntax, operand, Type(type), c.Kind, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
650Debug.Assert(left.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
651Debug.Assert(right.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
652return Binary(BinaryOperatorKind.LogicalBoolAnd, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
657Debug.Assert(left.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
658Debug.Assert(right.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
659return Binary(BinaryOperatorKind.LogicalBoolOr, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
664return Binary(BinaryOperatorKind.IntEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
669return Binary(BinaryOperatorKind.ObjectEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
680return Binary(BinaryOperatorKind.ObjectNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
685return Binary(BinaryOperatorKind.IntNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
690return Binary(BinaryOperatorKind.IntLessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
695return Binary(BinaryOperatorKind.IntGreaterThanOrEqual, SpecialType(CodeAnalysis.SpecialType.System_Boolean), left, right);
1127return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
1622Debug.Assert(expression is { Type: { SpecialType: CodeAnalysis.SpecialType.System_Boolean } });
1755TypeSymbol boolType = Compilation.GetSpecialType(CodeAnalysis.SpecialType.System_Boolean);
1822Debug.Assert(returnType.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
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 (15)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (116)
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.ExpressionCompiler (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.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.SourceGeneration (9)
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (6)
60if (underlyingSpecialType == SpecialType.System_Boolean || underlyingSpecialType == SpecialType.System_Char)
75case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo: MarshalAsInfo(UnmanagedType.U1, _) }:
77case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo: MarshalAsInfo(UnmanagedType.I1, _) }:
79case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo: MarshalAsInfo(UnmanagedType.U4, _) }:
81case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo: MarshalAsInfo(UnmanagedType.I4 or UnmanagedType.Bool, _) }:
83case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo: MarshalAsInfo(UnmanagedType.VariantBool, _) }:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
System.Text.Json.SourceGeneration (2)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (1)