79 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (79)
Binder\Binder_Await.cs (1)
350var asyncHelpersType = GetSpecialType(InternalSpecialType.System_Runtime_CompilerServices_AsyncHelpers, diagnostics, expression.Syntax);
Binder\Binder_Constraints.cs (1)
270GetSpecialType(SpecialType.System_ValueType, diagnostics, typeSyntax);
Binder\Binder_Crefs.cs (1)
572builder.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 (23)
1283TypeSymbol typedReferenceType = GetSpecialType(SpecialType.System_TypedReference, diagnostics, node); 1349TypeSymbol runtimeArgumentHandleType = GetSpecialType(SpecialType.System_RuntimeArgumentHandle, diagnostics, node); 1474this.GetSpecialType(SpecialType.System_Int32, diagnostics, node), hasErrors); 2683GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 2686TypeSymbol intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 2693NamedTypeSymbol nullableType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node); 2771GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 2773NamedTypeSymbol nullableType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node); 2800NamedTypeSymbol nullableType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, operand); 4461this.Compilation.CreateArrayTypeSymbol(GetSpecialType(SpecialType.System_Object, diagnostics, node)), 4562GetSpecialType(SpecialType.System_Int32, diagnostics, nonNullSyntax)) 4643count = GenerateConversionForAssignment(GetSpecialType(SpecialType.System_Int32, diagnostics, node), count, diagnostics); 4787GetSpecialType(SpecialType.System_Int32, diagnostics, node)) 5424lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.GetSpecialType(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true }; 6450NamedTypeSymbol collectionsIEnumerableType = this.GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, node); 6631type: GetSpecialType(SpecialType.System_Void, diagnostics, elementInitializer), 7568type = GetSpecialType(specialType, diagnostics, node); 7592var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).Construct(GetSpecialType(SpecialType.System_Byte, diagnostics, node)); 10021var int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 10093NamedTypeSymbol int32 = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 10131TypeSymbol type = GetSpecialType(specialType, attemptDiagnostics, node); 11686accessType = GetSpecialType(SpecialType.System_Void, diagnostics, node); 11697accessType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node).Construct(accessType);
Binder\Binder_InterpolatedString.cs (8)
41var stringType = GetSpecialType(SpecialType.System_String, diagnostics, node); 55var intType = GetSpecialType(SpecialType.System_Int32, diagnostics, node); 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 (2)
276TypeSymbol objType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 1843TypeSymbol int32Type = GetSpecialType(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (18)
563return ResultIsUsed(node) ? leftType : GetSpecialType(SpecialType.System_Void, diagnostics, node); 721type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); //we know the return type would have been void 755type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); 973return new BoundLiteral(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal), GetSpecialType(SpecialType.System_Boolean, diagnostics, node)); 1202GetSpecialType(SpecialType.System_Boolean, diagnostics, node)); 2022return GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 2709GetSpecialType(operandSpecialType, diagnostics, syntax); 3671return mode == InstanceUserDefinedIncrementUsageMode.ResultIsUsed ? operandType : GetSpecialType(SpecialType.System_Void, diagnostics, node); 4450GetSpecialType(upconvertSpecialType, diagnostics, syntax); 4732return new BoundLiteral(node, ConstantValue.Create((int)-2147483648), GetSpecialType(SpecialType.System_Int32, diagnostics, node)); 4747return new BoundLiteral(node, ConstantValue.Create(-9223372036854775808), GetSpecialType(SpecialType.System_Int64, diagnostics, node)); 4847var resultType = (TypeSymbol)GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 4996GetSpecialType(SpecialType.System_Object, diagnostics, node).Name // a pretty way of getting the string "Object" 5004inputType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 5474type: GetSpecialType(SpecialType.System_Object, diagnostics, node)); 5492operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 5499targetType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 5729var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, node);
Binder\Binder_Patterns.cs (1)
466node, expression, pattern, hasUnionMatching, GetSpecialType(SpecialType.System_Boolean, diagnostics, node),
Binder\Binder_Statements.cs (3)
1287elementType = this.GetSpecialType(SpecialType.System_Char, diagnostics, initializerSyntax); 1535type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); 2686var boolean = GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
Binder\Binder_Symbols.cs (3)
823return GetSpecialType(node.Keyword.Kind().GetSpecialType(), diagnostics, node); 1035return this.GetSpecialType(specialType, diagnostics, node).AsNativeInteger(); 1072this.GetSpecialType(SpecialType.System_Boolean, diagnostics, node);
Binder\Binder_TupleOperators.cs (3)
33TypeSymbol resultType = GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 132TypeSymbol boolean = GetSpecialType(SpecialType.System_Boolean, diagnostics, node); 427NamedTypeSymbol nullableT = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, syntax);
Binder\ForEachLoopBinder.cs (5)
711inferredType = TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, collectionExpr.Syntax)); 1186builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax)); 1301builder.CollectionType = GetSpecialType(SpecialType.System_Collections_IEnumerable, diagnostics, syntax); 1308GetSpecialType(SpecialType.System_Object, diagnostics, syntax)); 1313TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Char, diagnostics, syntax)) :
Symbols\Source\SourceConstructorSymbolBase.cs (1)
59_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceDelegateMethodSymbol.cs (5)
60var voidType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax)); 62var objectType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Object, diagnostics, syntax)); 63var intPtrType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_IntPtr, diagnostics, syntax)); 85var iAsyncResultType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_IAsyncResult, diagnostics, syntax)); 86var asyncCallbackType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_AsyncCallback, diagnostics, syntax));
Symbols\Source\SourceDestructorSymbol.cs (1)
86_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceFixedFieldSymbol.cs (1)
90TypeSymbol intType = binder.GetSpecialType(SpecialType.System_Int32, diagnostics, sizeExpression);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
418var type = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, this.GetSyntax()));