73 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (73)
Binder\Binder_Constraints.cs (1)
269GetSpecialType(SpecialType.System_ValueType, diagnostics, typeSyntax);
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 (22)
1208TypeSymbol typedReferenceType = GetSpecialType(SpecialType.System_TypedReference, diagnostics, node); 1274TypeSymbol runtimeArgumentHandleType = GetSpecialType(SpecialType.System_RuntimeArgumentHandle, diagnostics, node); 1399this.GetSpecialType(SpecialType.System_Int32, diagnostics, node), hasErrors); 2349GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 2352TypeSymbol intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 2359NamedTypeSymbol nullableType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node); 2437GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 2439NamedTypeSymbol nullableType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node); 2466NamedTypeSymbol nullableType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, operand); 3664this.Compilation.CreateArrayTypeSymbol(GetSpecialType(SpecialType.System_Object, diagnostics, node)), 3765GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 3846count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics); 3990GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 5373TypeSymbol collectionsIEnumerableType = this.GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, node); 5513type: GetSpecialType(SpecialType.System_Void, diagnostics, elementInitializer), 6262type = GetSpecialType(specialType, diagnostics, node); 6286var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).Construct(GetSpecialType(SpecialType.System_Byte, diagnostics, node)); 8032var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 8104NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 8142TypeSymbol type = GetSpecialType(specialType, attemptDiagnostics, node); 9412accessType = GetSpecialType(SpecialType.System_Void, diagnostics, node); 9420accessType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node).Construct(accessType);
Binder\Binder_InterpolatedString.cs (7)
41var stringType = GetSpecialType(SpecialType.System_String, diagnostics, node); 55var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 371var @string = GetSpecialType(SpecialType.System_String, diagnostics, rootSyntax); 528TypeSymbol objectType = GetSpecialType(SpecialType.System_Object, diagnostics, syntax); 565var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, syntax); 576var boolType = GetSpecialType(SpecialType.System_Boolean, diagnostics, syntax); 685var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, unconvertedInterpolatedString.Syntax);
Binder\Binder_Invocation.cs (1)
196TypeSymbol objType = GetSpecialType(SpecialType.System_Object, diagnostics, node);
Binder\Binder_Operators.cs (16)
289type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); //we know the return type would have been void 322type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); 542return new BoundLiteral(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal), GetSpecialType(SpecialType.System_Boolean, diagnostics, node)); 707GetSpecialType(SpecialType.System_Boolean, diagnostics, node)); 1269return GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 1707GetSpecialType(operandSpecialType, diagnostics, syntax); 2779GetSpecialType(upconvertSpecialType, diagnostics, syntax); 3061return new BoundLiteral(node, ConstantValue.Create((int)-2147483648), GetSpecialType(SpecialType.System_Int32, diagnostics, node)); 3076return new BoundLiteral(node, ConstantValue.Create(-9223372036854775808), GetSpecialType(SpecialType.System_Int64, diagnostics, node)); 3176var resultType = (TypeSymbol)GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 3273GetSpecialType(SpecialType.System_Object, diagnostics, node).Name // a pretty way of getting the string "Object" 3282operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3722type: GetSpecialType(SpecialType.System_Object, diagnostics, node)); 3740operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3747targetType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3972var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, node);
Binder\Binder_Patterns.cs (1)
41node, expression, pattern, GetSpecialType(SpecialType.System_Boolean, diagnostics, node),
Binder\Binder_Statements.cs (3)
1291elementType = this.GetSpecialType(SpecialType.System_Char, diagnostics, initializerSyntax); 1524type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); 2539var boolean = GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
Binder\Binder_Symbols.cs (3)
809return GetSpecialType(node.Keyword.Kind().GetSpecialType(), diagnostics, node); 1021return this.GetSpecialType(specialType, diagnostics, node).AsNativeInteger(); 1058this.GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
Binder\Binder_TupleOperators.cs (3)
33TypeSymbol resultType = GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 131TypeSymbol boolean = GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 420NamedTypeSymbol nullableT = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, syntax);
Binder\ForEachLoopBinder.cs (5)
635inferredType = TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, collectionExpr.Syntax)); 988builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax)); 1076builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, _syntax); 1083GetSpecialType(SpecialType.System_Object, diagnostics, _syntax)); 1088TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, _syntax)) :
Symbols\Source\SourceConstructorSymbolBase.cs (1)
60_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceDelegateMethodSymbol.cs (5)
56var voidType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax)); 58var objectType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Object, diagnostics, syntax)); 59var intPtrType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_IntPtr, diagnostics, syntax)); 81var iAsyncResultType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_IAsyncResult, diagnostics, syntax)); 82var asyncCallbackType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_AsyncCallback, diagnostics, syntax));
Symbols\Source\SourceDestructorSymbol.cs (1)
73_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceFixedFieldSymbol.cs (1)
89TypeSymbol intType = binder.GetSpecialType(SpecialType.System_Int32, diagnostics, sizeExpression);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
388var type = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, this.GetSyntax()));