31 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Crefs.cs (1)
373
builder.Add(this.
GetSpecialType
(memberName == "nint" ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr, diagnostics, syntax).AsNativeInteger());
Binder\Binder_Deconstruct.cs (1)
126
var voidType =
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
Binder\Binder_Expressions.cs (9)
1317
TypeSymbol runtimeArgumentHandleType =
GetSpecialType
(SpecialType.System_RuntimeArgumentHandle, diagnostics, node);
4473
GetSpecialType
(SpecialType.System_Int32, diagnostics, nonNullSyntax))
4698
GetSpecialType
(SpecialType.System_Int32, diagnostics, node))
5311
lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.
GetSpecialType
(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true };
6302
NamedTypeSymbol collectionsIEnumerableType = this.
GetSpecialType
(SpecialType.System_Collections_IEnumerable, diagnostics, node);
6483
type:
GetSpecialType
(SpecialType.System_Void, diagnostics, elementInitializer),
9749
var int32 =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
9821
NamedTypeSymbol int32 =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
9859
TypeSymbol type =
GetSpecialType
(specialType, attemptDiagnostics, node);
Binder\Binder_InterpolatedString.cs (6)
414
expressions[0] = new BoundLiteral(syntax, ConstantValue.Create(formatString.ToStringAndFree()),
GetSpecialType
(Microsoft.CodeAnalysis.SpecialType.System_String, diagnostics, syntax)) { WasCompilerGenerated = true };
517
var @string =
GetSpecialType
(SpecialType.System_String, diagnostics, rootSyntax);
674
TypeSymbol objectType =
GetSpecialType
(SpecialType.System_Object, diagnostics, syntax);
711
var intType =
GetSpecialType
(SpecialType.System_Int32, diagnostics, syntax);
722
var boolType =
GetSpecialType
(SpecialType.System_Boolean, diagnostics, syntax);
853
var objectType =
GetSpecialType
(SpecialType.System_Object, diagnostics, unconvertedInterpolatedString.Syntax);
Binder\Binder_Invocation.cs (1)
1779
TypeSymbol int32Type =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (3)
1305
return
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
1743
GetSpecialType
(operandSpecialType, diagnostics, syntax);
2827
GetSpecialType
(upconvertSpecialType, diagnostics, syntax);
Binder\Binder_Statements.cs (2)
1282
elementType = this.
GetSpecialType
(SpecialType.System_Char, diagnostics, initializerSyntax);
1529
type = this.
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
Binder\Binder_TupleOperators.cs (1)
420
NamedTypeSymbol nullableT =
GetSpecialType
(SpecialType.System_Nullable_T, diagnostics, syntax);
Binder\ForEachLoopBinder.cs (5)
699
inferredType = TypeWithAnnotations.Create(
GetSpecialType
(SpecialType.System_Char, diagnostics, collectionExpr.Syntax));
1188
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(
GetSpecialType
(SpecialType.System_Object, diagnostics, errorLocationSyntax));
1306
builder.CollectionType =
GetSpecialType
(SpecialType.System_Collections_IEnumerable, diagnostics, syntax);
1313
GetSpecialType
(SpecialType.System_Object, diagnostics, syntax));
1318
TypeWithAnnotations.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)
387
var type = TypeWithAnnotations.Create(binder.
GetSpecialType
(SpecialType.System_Void, diagnostics, this.GetSyntax()));