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)
1310
TypeSymbol runtimeArgumentHandleType =
GetSpecialType
(SpecialType.System_RuntimeArgumentHandle, diagnostics, node);
4419
GetSpecialType
(SpecialType.System_Int32, diagnostics, nonNullSyntax))
4644
GetSpecialType
(SpecialType.System_Int32, diagnostics, node))
5257
lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.
GetSpecialType
(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true };
6248
NamedTypeSymbol collectionsIEnumerableType = this.
GetSpecialType
(SpecialType.System_Collections_IEnumerable, diagnostics, node);
6429
type:
GetSpecialType
(SpecialType.System_Void, diagnostics, elementInitializer),
9370
var int32 =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
9442
NamedTypeSymbol int32 =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
9480
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)
1724
TypeSymbol int32Type =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (3)
1300
return
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
1738
GetSpecialType
(operandSpecialType, diagnostics, syntax);
2822
GetSpecialType
(upconvertSpecialType, diagnostics, syntax);
Binder\Binder_Statements.cs (2)
1282
elementType = this.
GetSpecialType
(SpecialType.System_Char, diagnostics, initializerSyntax);
1515
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)
688
inferredType = TypeWithAnnotations.Create(
GetSpecialType
(SpecialType.System_Char, diagnostics, collectionExpr.Syntax));
1163
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(
GetSpecialType
(SpecialType.System_Object, diagnostics, errorLocationSyntax));
1281
builder.CollectionType =
GetSpecialType
(SpecialType.System_Collections_IEnumerable, diagnostics, syntax);
1288
GetSpecialType
(SpecialType.System_Object, diagnostics, syntax));
1293
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()));