30 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Crefs.cs (1)
373builder.Add(this.GetSpecialType(memberName == "nint" ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, diagnostics, syntax).AsNativeInteger());
Binder\Binder_Deconstruct.cs (1)
126var voidType = GetSpecialType(SpecialType.System_Void, diagnostics, node);
Binder\Binder_Expressions.cs (9)
1308TypeSymbol runtimeArgumentHandleType = GetSpecialType(SpecialType.System_RuntimeArgumentHandle, diagnostics, node); 4381GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 4606GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 5219lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.GetSpecialType(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true }; 6152NamedTypeSymbol collectionsIEnumerableType = this.GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, node); 6333type: GetSpecialType(SpecialType.System_Void, diagnostics, elementInitializer), 9274var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 9346NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 9384TypeSymbol type = GetSpecialType(specialType, attemptDiagnostics, node);
Binder\Binder_InterpolatedString.cs (5)
379var @string = GetSpecialType(SpecialType.System_String, diagnostics, rootSyntax); 536TypeSymbol objectType = GetSpecialType(SpecialType.System_Object, diagnostics, syntax); 573var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, syntax); 584var boolType = GetSpecialType(SpecialType.System_Boolean, diagnostics, syntax); 715var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, unconvertedInterpolatedString.Syntax);
Binder\Binder_Invocation.cs (1)
1724TypeSymbol int32Type = GetSpecialType(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (3)
1300return GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 1738GetSpecialType(operandSpecialType, diagnostics, syntax); 2822GetSpecialType(upconvertSpecialType, diagnostics, syntax);
Binder\Binder_Statements.cs (2)
1281elementType = this.GetSpecialType(SpecialType.System_Char, diagnostics, initializerSyntax); 1514type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node);
Binder\Binder_TupleOperators.cs (1)
420NamedTypeSymbol nullableT = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, syntax);
Binder\ForEachLoopBinder.cs (5)
688inferredType = TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, collectionExpr.Syntax)); 1163builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax)); 1280builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax); 1287GetSpecialType(SpecialType.System_Object, diagnostics, syntax)); 1292TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, syntax)) :
Symbols\Source\SourceConstructorSymbolBase.cs (1)
58_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
387var type = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, this.GetSyntax()));