694 references to GetSpecialType
Aspire.Hosting.Analyzers (1)
ConfigurationSchemaGenerator (9)
GenerateDocumentationAndConfigFiles (12)
Metrics (3)
Metrics.Legacy (3)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.App.Analyzers (3)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.CodeAnalysis (18)
Operations\ControlFlowGraphBuilder.cs (18)
2411INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
2469INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
2570INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
3309return MakeIsNullOperation(operand, _compilation.GetSpecialType(SpecialType.System_Boolean));
3963: _compilation.GetSpecialType(SpecialType.System_IDisposable);
4195return new AwaitOperation(invocation, semanticModel: null, value.Syntax, _compilation.GetSpecialType(SpecialType.System_Void), isImplicit: true);
4273ITypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object);
4539: _compilation.GetSpecialType(SpecialType.System_IDisposable);
4622return new AwaitOperation(moveNext, semanticModel: null, operation.Syntax, _compilation.GetSpecialType(SpecialType.System_Boolean), isImplicit: true);
4629return MakeInvalidOperation(_compilation.GetSpecialType(SpecialType.System_Boolean), enumeratorRef);
4742ITypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
5162_compilation.GetSpecialType(SpecialType.System_Boolean),
5243var shiftConst = new LiteralOperation(semanticModel: null, operand.Syntax, _compilation.GetSpecialType(SpecialType.System_Int32),
5345_compilation.GetSpecialType(SpecialType.System_Boolean),
5466INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
5832ITypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
7740INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
7795? MakeInvalidOperation(operation.Syntax, type: _compilation.GetSpecialType(SpecialType.System_Object), ImmutableArray<IOperation>.Empty)
Microsoft.CodeAnalysis.Analyzers (13)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
Microsoft.CodeAnalysis.BannedApiAnalyzers (12)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (19)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (34)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Features (9)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (74)
Compilation\CompilationAPITests.cs (28)
2460var elementType = comp.GetSpecialType(SpecialType.System_Object);
2489var elementType = comp.GetSpecialType(SpecialType.System_Object);
2519ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2520(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2531ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2532(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2543ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2544(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2555ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2556(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2597ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2606ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32)),
2625ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32),
2626compilation.GetSpecialType(SpecialType.System_Int32)),
2642ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)),
2657var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
2697var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3031var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3051typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3066var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3086typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
Microsoft.CodeAnalysis.CSharp.Workspaces (18)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.Features (34)
Microsoft.CodeAnalysis.Features.UnitTests (9)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (12)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (48)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (5)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (142)
Compilation\CompilationAPITests.vb (51)
329ntSmb = comp.GetSpecialType(CType(31, SpecialType))
1345comp.GetSpecialType((SpecialType.None))
1351comp.GetSpecialType(CType(0, SpecialType))
1356comp.GetSpecialType(CType(100, SpecialType))
1479Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32)
1480Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String)
1495Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32)
1496Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String)
1512Dim elementType = comp.GetSpecialType(SpecialType.System_Object)
1537Dim elementType = comp.GetSpecialType(SpecialType.System_Object)
1563ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1564DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1576ImmutableArray.Create(DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1577DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1587ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1588DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1608ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1609DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1635ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)),
1649ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)),
1664ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)),
1678Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1716Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1747Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1762Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1763Dim boolType = compilation.GetSpecialType(SpecialType.System_Boolean)
1772Dim stringType = compilation.GetSpecialType(SpecialType.System_String)
1781Dim stringType = compilation.GetSpecialType(SpecialType.System_String)
1782Dim boolType = compilation.GetSpecialType(SpecialType.System_Boolean)
1793Dim doubleType = compilation.GetSpecialType(SpecialType.System_Double)
1809Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1818Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1819Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType)
1840Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1852Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1861Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1862Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType)
1896Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1905Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1918Dim intType = Compilation.GetSpecialType(SpecialType.System_Int32)
1943Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1961typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1975Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1993typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
Semantics\Conversions.vb (72)
226Dim objectType = c1.GetSpecialType(System_Object)
227Dim booleanType = c1.GetSpecialType(System_Boolean)
228Dim byteType = c1.GetSpecialType(System_Byte)
229Dim sbyteType = c1.GetSpecialType(System_SByte)
230Dim int16Type = c1.GetSpecialType(System_Int16)
231Dim uint16Type = c1.GetSpecialType(System_UInt16)
232Dim int32Type = c1.GetSpecialType(System_Int32)
233Dim uint32Type = c1.GetSpecialType(System_UInt32)
234Dim int64Type = c1.GetSpecialType(System_Int64)
235Dim uint64Type = c1.GetSpecialType(System_UInt64)
236Dim doubleType = c1.GetSpecialType(System_Double)
237Dim singleType = c1.GetSpecialType(System_Single)
238Dim decimalType = c1.GetSpecialType(System_Decimal)
239Dim dateType = c1.GetSpecialType(System_DateTime)
240Dim stringType = c1.GetSpecialType(System_String)
241Dim charType = c1.GetSpecialType(System_Char)
242Dim intPtrType = c1.GetSpecialType(System_IntPtr)
356Dim nullableType = c1.GetSpecialType(System_Nullable_T)
1078Dim objectType = c1.GetSpecialType(System_Object)
1079Dim booleanType = c1.GetSpecialType(System_Boolean)
1080Dim byteType = c1.GetSpecialType(System_Byte)
1081Dim sbyteType = c1.GetSpecialType(System_SByte)
1082Dim int16Type = c1.GetSpecialType(System_Int16)
1083Dim uint16Type = c1.GetSpecialType(System_UInt16)
1084Dim int32Type = c1.GetSpecialType(System_Int32)
1085Dim uint32Type = c1.GetSpecialType(System_UInt32)
1086Dim int64Type = c1.GetSpecialType(System_Int64)
1087Dim uint64Type = c1.GetSpecialType(System_UInt64)
1088Dim doubleType = c1.GetSpecialType(System_Double)
1089Dim singleType = c1.GetSpecialType(System_Single)
1090Dim decimalType = c1.GetSpecialType(System_Decimal)
1091Dim dateType = c1.GetSpecialType(System_DateTime)
1092Dim stringType = c1.GetSpecialType(System_String)
1093Dim charType = c1.GetSpecialType(System_Char)
1094Dim intPtrType = c1.GetSpecialType(System_IntPtr)
1122Dim nullableType = c1.GetSpecialType(System_Nullable_T)
1485Dim arrayInt32 = c1.CreateArrayTypeSymbol(c1.GetSpecialType(System_Int32))
1494Dim enumerable = c1.GetSpecialType(System_Collections_Generic_IEnumerable_T)
1605Dim [object] = c1.GetSpecialType(System_Object)
1918Dim void = c1.GetSpecialType(System_Void)
1919Dim valueType = c1.GetSpecialType(System_ValueType)
2037Dim nullable = c1.GetSpecialType(System_Nullable_T)
2040c1.GetSpecialType(System_Byte),
2041c1.GetSpecialType(System_SByte),
2042c1.GetSpecialType(System_UInt16),
2043c1.GetSpecialType(System_Int16),
2044c1.GetSpecialType(System_UInt32),
2045c1.GetSpecialType(System_Int32),
2046c1.GetSpecialType(System_UInt64),
2047c1.GetSpecialType(System_Int64),
2048c1.GetSpecialType(System_Decimal),
2049c1.GetSpecialType(System_Single),
2050c1.GetSpecialType(System_Double),
2051c1.GetSpecialType(System_String),
2052c1.GetSpecialType(System_Char),
2053c1.GetSpecialType(System_Boolean),
2054c1.GetSpecialType(System_DateTime),
2055c1.GetSpecialType(System_Object),
2056nullable.Construct(c1.GetSpecialType(System_Byte)),
2057nullable.Construct(c1.GetSpecialType(System_SByte)),
2058nullable.Construct(c1.GetSpecialType(System_UInt16)),
2059nullable.Construct(c1.GetSpecialType(System_Int16)),
2060nullable.Construct(c1.GetSpecialType(System_UInt32)),
2061nullable.Construct(c1.GetSpecialType(System_Int32)),
2062nullable.Construct(c1.GetSpecialType(System_UInt64)),
2063nullable.Construct(c1.GetSpecialType(System_Int64)),
2064nullable.Construct(c1.GetSpecialType(System_Decimal)),
2065nullable.Construct(c1.GetSpecialType(System_Single)),
2066nullable.Construct(c1.GetSpecialType(System_Double)),
2067nullable.Construct(c1.GetSpecialType(System_Char)),
2068nullable.Construct(c1.GetSpecialType(System_Boolean)),
2069nullable.Construct(c1.GetSpecialType(System_DateTime))
Semantics\OverloadResolution.vb (14)
181Dim TestClass2OfInteger = TestClass2.Construct(c1.GetSpecialType(System_Int32))
192Dim intZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0I), c1.GetSpecialType(System_Int32))
193Dim longZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0L), c1.GetSpecialType(System_Int64))
194Dim unsignedOne As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(1UI), c1.GetSpecialType(System_UInt32))
195Dim longConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(-1L), c1.GetSpecialType(System_Int64), Nothing)
200Dim doubleConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(0.0R), c1.GetSpecialType(System_Double), Nothing)
202Dim shortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Int16))
203Dim ushortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_UInt16))
204Dim objectVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Object))
210Dim stringVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_String))
2881Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing)
2882Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
3072Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing)
3073Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
Microsoft.CodeAnalysis.Workspaces (13)
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (4)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.LibraryImportGenerator (7)
Microsoft.Interop.SourceGeneration (2)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Mvc.Analyzers.Test (7)
Mvc.Api.Analyzers.Test (2)
Roslyn.Diagnostics.Analyzers (12)
Roslyn.Diagnostics.CSharp.Analyzers (16)
Roslyn.Diagnostics.VisualBasic.Analyzers (4)
System.Text.Json.SourceGeneration (6)
Test.Utilities (3)
Text.Analyzers (12)