31 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (31)
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)
1310TypeSymbol runtimeArgumentHandleType = GetSpecialType(SpecialType.System_RuntimeArgumentHandle, diagnostics, node); 4422GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 4647GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 5260lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.GetSpecialType(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true }; 6251NamedTypeSymbol collectionsIEnumerableType = this.GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, node); 6432type: GetSpecialType(SpecialType.System_Void, diagnostics, elementInitializer), 9373var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 9445NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 9483TypeSymbol type = GetSpecialType(specialType, attemptDiagnostics, node);
Binder\Binder_InterpolatedString.cs (6)
414expressions[0] = new BoundLiteral(syntax, ConstantValue.Create(formatString.ToStringAndFree()), GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_String, diagnostics, syntax)) { WasCompilerGenerated = true }; 517var @string = GetSpecialType(SpecialType.System_String, diagnostics, rootSyntax); 674TypeSymbol objectType = GetSpecialType(SpecialType.System_Object, diagnostics, syntax); 711var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, syntax); 722var boolType = GetSpecialType(SpecialType.System_Boolean, diagnostics, syntax); 853var 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)
1282elementType = this.GetSpecialType(SpecialType.System_Char, diagnostics, initializerSyntax); 1517type = 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)); 1281builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax); 1288GetSpecialType(SpecialType.System_Object, diagnostics, syntax)); 1293TypeWithAnnotations.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()));