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