82 references to GetSpecialType
Microsoft.CodeAnalysis.CSharp (82)
Binder\Binder_Await.cs (1)
350
var asyncHelpersType =
GetSpecialType
(InternalSpecialType.System_Runtime_CompilerServices_AsyncHelpers, diagnostics, expression.Syntax);
Binder\Binder_Constraints.cs (1)
270
GetSpecialType
(SpecialType.System_ValueType, diagnostics, typeSyntax);
Binder\Binder_Crefs.cs (1)
578
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 (26)
1286
TypeSymbol typedReferenceType =
GetSpecialType
(SpecialType.System_TypedReference, diagnostics, node);
1352
TypeSymbol runtimeArgumentHandleType =
GetSpecialType
(SpecialType.System_RuntimeArgumentHandle, diagnostics, node);
1477
this.
GetSpecialType
(SpecialType.System_Int32, diagnostics, node), hasErrors);
2686
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
2689
TypeSymbol intType =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
2696
NamedTypeSymbol nullableType =
GetSpecialType
(SpecialType.System_Nullable_T, diagnostics, node);
2774
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
2776
NamedTypeSymbol nullableType =
GetSpecialType
(SpecialType.System_Nullable_T, diagnostics, node);
2803
NamedTypeSymbol nullableType =
GetSpecialType
(SpecialType.System_Nullable_T, diagnostics, operand);
4464
this.Compilation.CreateArrayTypeSymbol(
GetSpecialType
(SpecialType.System_Object, diagnostics, node)),
4565
GetSpecialType
(SpecialType.System_Int32, diagnostics, nonNullSyntax))
4646
count = GenerateConversionForAssignment(
GetSpecialType
(SpecialType.System_Int32, diagnostics, node), count, diagnostics);
4802
GetSpecialType
(SpecialType.System_Int32, diagnostics, node))
5438
lengthOrCount = new BoundLiteral(expression.Syntax, ConstantValue.Create(length), @this.
GetSpecialType
(SpecialType.System_Int32, diagnostics, expression.Syntax)) { WasCompilerGenerated = true };
6466
NamedTypeSymbol collectionsIEnumerableType = this.
GetSpecialType
(SpecialType.System_Collections_IEnumerable, diagnostics, node);
6647
type:
GetSpecialType
(SpecialType.System_Void, diagnostics, elementInitializer),
7584
type =
GetSpecialType
(specialType, diagnostics, node);
7608
var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).Construct(
GetSpecialType
(SpecialType.System_Byte, diagnostics, node));
9619
var intPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, binder.
GetSpecialType
(SpecialType.System_Int32, diagnostics, syntax)) { WasCompilerGenerated = true };
10704
var int32 =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
10776
NamedTypeSymbol int32 =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
10814
TypeSymbol type =
GetSpecialType
(specialType, attemptDiagnostics, node);
11409
var startArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax,
GetSpecialType
(SpecialType.System_Int32, diagnostics, syntax)) { WasCompilerGenerated = true };
11410
var lengthArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax,
GetSpecialType
(SpecialType.System_Int32, diagnostics, syntax)) { WasCompilerGenerated = true };
12388
accessType =
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
12399
accessType =
GetSpecialType
(SpecialType.System_Nullable_T, diagnostics, node).Construct(accessType);
Binder\Binder_InterpolatedString.cs (8)
41
var stringType =
GetSpecialType
(SpecialType.System_String, diagnostics, node);
55
var intType =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
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 (2)
276
TypeSymbol objType =
GetSpecialType
(SpecialType.System_Object, diagnostics, node);
1868
TypeSymbol int32Type =
GetSpecialType
(SpecialType.System_Int32, diagnostics, node);
Binder\Binder_Operators.cs (18)
563
return ResultIsUsed(node) ? leftType :
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
721
type = this.
GetSpecialType
(SpecialType.System_Void, diagnostics, node); //we know the return type would have been void
755
type = this.
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
973
return new BoundLiteral(node, ConstantValue.Create(kind == BinaryOperatorKind.Equal),
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node));
1202
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node));
2022
return
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
2709
GetSpecialType
(operandSpecialType, diagnostics, syntax);
3671
return mode == InstanceUserDefinedIncrementUsageMode.ResultIsUsed ? operandType :
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
4450
GetSpecialType
(upconvertSpecialType, diagnostics, syntax);
4708
return new BoundLiteral(node, ConstantValue.Create((int)-2147483648),
GetSpecialType
(SpecialType.System_Int32, diagnostics, node));
4723
return new BoundLiteral(node, ConstantValue.Create(-9223372036854775808),
GetSpecialType
(SpecialType.System_Int64, diagnostics, node));
4823
var resultType = (TypeSymbol)
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
4972
GetSpecialType
(SpecialType.System_Object, diagnostics, node).Name // a pretty way of getting the string "Object"
4980
inputType =
GetSpecialType
(SpecialType.System_Object, diagnostics, node);
5450
type:
GetSpecialType
(SpecialType.System_Object, diagnostics, node));
5468
operandType =
GetSpecialType
(SpecialType.System_Object, diagnostics, node);
5475
targetType =
GetSpecialType
(SpecialType.System_Object, diagnostics, node);
5705
var objectType =
GetSpecialType
(SpecialType.System_Object, diagnostics, node);
Binder\Binder_Patterns.cs (1)
558
node, expression, pattern, hasUnionMatching,
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node),
Binder\Binder_Statements.cs (3)
1287
elementType = this.
GetSpecialType
(SpecialType.System_Char, diagnostics, initializerSyntax);
1535
type = this.
GetSpecialType
(SpecialType.System_Void, diagnostics, node);
2687
var boolean =
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
Binder\Binder_Symbols.cs (3)
823
return
GetSpecialType
(node.Keyword.Kind().GetSpecialType(), diagnostics, node);
1035
return this.
GetSpecialType
(specialType, diagnostics, node).AsNativeInteger();
1072
this.
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
Binder\Binder_TupleOperators.cs (3)
33
TypeSymbol resultType =
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
132
TypeSymbol boolean =
GetSpecialType
(SpecialType.System_Boolean, diagnostics, node);
426
NamedTypeSymbol nullableT =
GetSpecialType
(SpecialType.System_Nullable_T, diagnostics, syntax);
Binder\ForEachLoopBinder.cs (5)
711
inferredType = TypeWithAnnotations.Create(
GetSpecialType
(SpecialType.System_Char, diagnostics, collectionExpr.Syntax));
1186
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(
GetSpecialType
(SpecialType.System_Object, diagnostics, errorLocationSyntax));
1301
builder.CollectionType =
GetSpecialType
(SpecialType.System_Collections_IEnumerable, diagnostics, syntax);
1308
GetSpecialType
(SpecialType.System_Object, diagnostics, syntax));
1313
TypeWithAnnotations.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)
61
var voidType = TypeWithAnnotations.Create(binder.
GetSpecialType
(SpecialType.System_Void, diagnostics, syntax));
63
var objectType = TypeWithAnnotations.Create(binder.
GetSpecialType
(SpecialType.System_Object, diagnostics, syntax));
64
var intPtrType = TypeWithAnnotations.Create(binder.
GetSpecialType
(SpecialType.System_IntPtr, diagnostics, syntax));
86
var iAsyncResultType = TypeWithAnnotations.Create(binder.
GetSpecialType
(SpecialType.System_IAsyncResult, diagnostics, syntax));
87
var 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)
90
TypeSymbol intType = binder.
GetSpecialType
(SpecialType.System_Int32, diagnostics, sizeExpression);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
415
var type = TypeWithAnnotations.Create(binder.
GetSpecialType
(SpecialType.System_Void, diagnostics, this.GetSyntax()));