726 references to System_Boolean
Aspire.Hosting.Azure.Provisioning.Generators (1)
Aspire.Hosting.Integration.Analyzers (1)
ConfigurationSchemaGenerator (1)
GenerateDocumentationAndConfigFiles (30)
ILLink.RoslynAnalyzer (3)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.Build.TaskAuthoring.Analyzer (1)
Microsoft.CodeAnalysis (141)
SpecialMembers.cs (28)
153(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
162(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
232(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
240(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
266(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
275(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
298(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
375(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
523(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
532(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
541(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
550(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
559(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
568(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
776(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
785(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
794(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
803(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
812(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
821(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
851(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
933(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
941(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
957(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1084(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
1202(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1224(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
1241(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,
3518(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3609(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
3857(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
3911(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
4014(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
4029(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
4115(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4146(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4153(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4175(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
4246(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean, // Return Type
5172(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5192(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5212(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5232(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5252(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
5272(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Boolean,
Microsoft.CodeAnalysis.Analyzers (32)
Microsoft.CodeAnalysis.AnalyzerUtilities (39)
Microsoft.CodeAnalysis.CodeStyle (19)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp (196)
Binder\Binder_Operators.cs (12)
973return new BoundLiteral(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal), GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
1202GetSpecialType(SpecialType.System_Boolean, diagnostics, node));
1441if ((object)left.Type != null && left.Type.SpecialType == SpecialType.System_Boolean &&
1442(object)right.Type != null && right.Type.SpecialType == SpecialType.System_Boolean)
1505bool bothBool = signature.LeftType.SpecialType == SpecialType.System_Boolean &&
1506signature.RightType.SpecialType == SpecialType.System_Boolean;
1603var booleanType = Compilation.GetSpecialType(SpecialType.System_Boolean);
2022return GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
2732Debug.Assert(resultTypeSymbol.SpecialType == SpecialType.System_Boolean);
2741if (resultTypeSymbol.SpecialType != SpecialType.System_Boolean && constantValue != null && !constantValue.IsBad)
4847var resultType = (TypeSymbol)GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
5016boolType: GetSpecialType(SpecialType.System_Boolean, diagnostics, node),
Lowering\SyntheticBoundNodeFactory.cs (17)
664return new BoundIsOperator(this.Syntax, operand, Type(type), c.Kind, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
669Debug.Assert(left.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
670Debug.Assert(right.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
671return Binary(BinaryOperatorKind.LogicalBoolAnd, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
676Debug.Assert(left.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
677Debug.Assert(right.Type?.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
678return Binary(BinaryOperatorKind.LogicalBoolOr, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
683return Binary(BinaryOperatorKind.IntEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
688return Binary(BinaryOperatorKind.ObjectEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
735return Binary(BinaryOperatorKind.ObjectNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
740return Binary(BinaryOperatorKind.IntNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
745return Binary(BinaryOperatorKind.IntLessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
750return Binary(BinaryOperatorKind.IntGreaterThanOrEqual, SpecialType(CodeAnalysis.SpecialType.System_Boolean), left, right);
1187return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true };
1662Debug.Assert(expression is { Type: { SpecialType: CodeAnalysis.SpecialType.System_Boolean } });
1795TypeSymbol boolType = Compilation.GetSpecialType(CodeAnalysis.SpecialType.System_Boolean);
1862Debug.Assert(returnType.SpecialType == CodeAnalysis.SpecialType.System_Boolean);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Microsoft.CodeAnalysis.Extensions.Package (12)
Microsoft.CodeAnalysis.Features (17)
Microsoft.CodeAnalysis.NetAnalyzers (65)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (25)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.CodeAnalysis.Workspaces (17)
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Validation.ValidationsGenerator (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, _) }:
Roslyn.Diagnostics.Analyzers (32)
Roslyn.Diagnostics.CSharp.Analyzers (13)
System.Text.Json.SourceGeneration (3)
System.Windows.Forms.Analyzers (1)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (1)