125 references to SpecialType
Microsoft.CodeAnalysis.CSharp (125)
Compiler\MethodBodySynthesizer.Lowered.cs (8)
55LocalSymbol i = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32)); 56LocalSymbol hashCode = F.SynthesizedLocal(F.SpecialType(SpecialType.System_UInt32)); 85F.Binary(BinaryOperatorKind.ObjectNotEqual, F.SpecialType(SpecialType.System_Boolean), 112F.Binary(BinaryOperatorKind.LessThan, F.SpecialType(SpecialType.System_Boolean), 151.Construct(F.SpecialType(SpecialType.System_Char)); 153LocalSymbol i = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32)); 154LocalSymbol hashCode = F.SynthesizedLocal(F.SpecialType(SpecialType.System_UInt32)); 201F.Binary(BinaryOperatorKind.LessThan, F.SpecialType(SpecialType.System_Boolean),
Emitter\Model\PEModuleBuilder.cs (7)
1839TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1840TypeSymbol argumentType = factory.SpecialType(SpecialType.System_Object); 1841TypeSymbol paramNameType = factory.SpecialType(SpecialType.System_String); 1869TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1870TypeSymbol unmatchedValueType = factory.SpecialType(SpecialType.System_Object); 1890TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1915TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void);
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
55factory.Array(payloadArrayType.ElementType, factory.Binary(BinaryOperatorKind.Addition, factory.SpecialType(SpecialType.System_Int32), factory.MaximumMethodDefIndex(), factory.Literal(1))));
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (6)
174var exceptionType = _F.SpecialType(SpecialType.System_Object); 177var pendingBranchVar = new SynthesizedLocal(_F.CurrentFunction, TypeWithAnnotations.Create(_F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingBranch, tryStatementSyntax); 394LocalSymbol obj = _F.SynthesizedLocal(_F.SpecialType(SpecialType.System_Object)); 523var catchType = node.ExceptionTypeOpt ?? _F.SpecialType(SpecialType.System_Object); 1009this.pendingCaughtException = new SynthesizedLocal(F.CurrentFunction, TypeWithAnnotations.Create(F.SpecialType(SpecialType.System_Object)), SynthesizedLocalKind.TryAwaitPendingCaughtException, tryStatementSyntax); 1010this.pendingCatch = new SynthesizedLocal(F.CurrentFunction, TypeWithAnnotations.Create(F.SpecialType(SpecialType.System_Int32)), SynthesizedLocalKind.TryAwaitPendingCatch, tryStatementSyntax);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (4)
136resultType: F.SpecialType(SpecialType.System_Void), 169resultType: F.SpecialType(SpecialType.System_Void), 241resultType: F.SpecialType(SpecialType.System_Void), 259resultType = F.SpecialType(SpecialType.System_Object);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
447resultType: F.SpecialType(SpecialType.System_Boolean)).ToExpression(); 458? F.SpecialType(SpecialType.System_Object)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (5)
126NamedTypeSymbol boolType = F.SpecialType(SpecialType.System_Boolean); 336var versionSymbol = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int16)); 497.Construct(F.SpecialType(SpecialType.System_Boolean)); 522.Construct(F.SpecialType(SpecialType.System_Boolean)); 548.Construct(F.SpecialType(SpecialType.System_Boolean));
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
141stateField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName(), isPublic: true); 147instanceIdField = F.StateMachineField(F.SpecialType(SpecialType.System_UInt64), GeneratedNames.MakeStateMachineStateIdFieldName(), isPublic: true);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (7)
105_int32Type = _bound.SpecialType(SpecialType.System_Int32); 106_objectType = _bound.SpecialType(SpecialType.System_Object); 107_nullableType = _bound.SpecialType(SpecialType.System_Nullable_T); 108_IEnumerableType = _bound.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T); 371var operand = _bound.Null(_bound.SpecialType(SpecialType.System_Object)); 524return _bound.SpecialType(possiblePromote); 697unquoted = _bound.StaticCall(_bound.SpecialType(SpecialType.System_Delegate), "CreateDelegate", _bound.Typeof(delegateType), receiver, _bound.MethodInfo(method));
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (3)
116TypeSymbol payloadElementType = methodBodyFactory.SpecialType(SpecialType.System_Boolean); 219methodBodyFactory.SpecialType(SpecialType.System_Int32), fileIndices.ToImmutable()); 292_methodBodyFactory.SpecialType(SpecialType.System_Boolean),
Lowering\IteratorRewriter\IteratorRewriter.cs (4)
177stateField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName()); 182instanceIdField = F.StateMachineField(F.SpecialType(SpecialType.System_UInt64), GeneratedNames.MakeStateMachineStateIdFieldName()); 218var IEnumeratorOfElementType = F.SpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(_elementType)); 258var IEnumerableOfElementType = F.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_elementType.Type);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (7)
792input = _factory.Convert(_factory.SpecialType(SpecialType.System_Int64), input); 798input = _factory.Convert(_factory.SpecialType(SpecialType.System_UInt64), input); 948TypeSymbol returnType = _factory.SpecialType(SpecialType.System_UInt32); 951StringPatternInput.String => _factory.SpecialType(SpecialType.System_String), 953.Construct(_factory.SpecialType(SpecialType.System_Char)), 955.Construct(_factory.SpecialType(SpecialType.System_Char)), 1066_whenNodeIdentifierLocal ??= _factory.SynthesizedLocal(_factory.SpecialType(SpecialType.System_Int32));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (7)
203inputType = _factory.SpecialType(SpecialType.System_Object); 373TypeSymbol objectType = _factory.SpecialType(SpecialType.System_Object); 374var operandType = new PointerTypeSymbol(TypeWithAnnotations.Create(_factory.SpecialType(SpecialType.System_Void))); 380_factory.SpecialType(SpecialType.System_Boolean), 423comparisonType = _factory.SpecialType(SpecialType.System_Int32); 428return this._localRewriter.MakeBinaryOperator(_factory.Syntax, operatorKind, input, literal, _factory.SpecialType(SpecialType.System_Boolean), method: null, constrainedToTypeOpt: null); 439.Construct(_factory.SpecialType(SpecialType.System_Char));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (10)
590return arrLength.Update(arrLength.Expression, _factory.SpecialType(SpecialType.System_UIntPtr)); 2290: _factory.Convert(_factory.SpecialType(destinationType), numericOperand, Conversion.IntegerToPointer); 2301TypeSymbol nativeIntType = _factory.SpecialType(SpecialType.System_IntPtr); 2315TypeSymbol longType = _factory.SpecialType(SpecialType.System_Int64); 2316TypeSymbol nativeIntType = _factory.SpecialType(SpecialType.System_IntPtr); 2328TypeSymbol longType = _factory.SpecialType(SpecialType.System_Int64); 2329TypeSymbol nativeIntType = _factory.SpecialType(SpecialType.System_IntPtr); 2340TypeSymbol ulongType = _factory.SpecialType(SpecialType.System_UInt64); 2341TypeSymbol nativeUIntType = _factory.SpecialType(SpecialType.System_UIntPtr); 2386_factory.SpecialType(SpecialType.System_IntPtr),
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
517BoundExpression lengthCheck = factory.Binary(BinaryOperatorKind.IntNotEqual, factory.SpecialType(SpecialType.System_Boolean), lengthCall, factory.Literal(0)); 520BoundExpression condition = factory.Binary(BinaryOperatorKind.LogicalBoolAnd, factory.SpecialType(SpecialType.System_Boolean), notNullCheck, lengthCheck);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
337var objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (2)
109TypeSymbol uintType = _factory.SpecialType(SpecialType.System_UInt32); 110TypeSymbol uintPtrType = _factory.SpecialType(SpecialType.System_UIntPtr);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
344var array = _factory.ArrayOrEmpty(_factory.SpecialType(SpecialType.System_String), loweredArgs);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
126var objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
216resultType = _factory.SpecialType(SpecialType.System_Void); 309resultType = _factory.SpecialType(SpecialType.System_Void); 503var resultType = _factory.SpecialType(SpecialType.System_Boolean); 909var systemObjectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\SpillSequenceSpiller.cs (6)
1197_F.Convert(_F.SpecialType(SpecialType.System_Object), receiver), 1198_F.Null(_F.SpecialType(SpecialType.System_Object))); 1215_F.Convert(_F.SpecialType(SpecialType.System_Object), _F.Default(receiver.Type)), 1216_F.Null(_F.SpecialType(SpecialType.System_Object))); 1224_F.Convert(_F.SpecialType(SpecialType.System_Object), _F.Local(clone)), 1225_F.Null(_F.SpecialType(SpecialType.System_Object))))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
125this.cachedState = F.SynthesizedLocal(F.SpecialType(SpecialType.System_Int32), syntax: F.Syntax, kind: SynthesizedLocalKind.StateMachineCachedState);
Lowering\StateMachineRewriter\ResumableStateMachineStateAllocator.cs (1)
86f.SpecialType(SpecialType.System_Boolean),
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
108initialThreadIdField = F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeIteratorCurrentThreadIdFieldName());
Lowering\SyntheticBoundNodeFactory.cs (27)
613return new BoundIsOperator(this.Syntax, operand, Type(type), c.Kind, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true }; 620return Binary(BinaryOperatorKind.LogicalBoolAnd, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 627return Binary(BinaryOperatorKind.LogicalBoolOr, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 632return Binary(BinaryOperatorKind.IntEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 637return Binary(BinaryOperatorKind.ObjectEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 642return Binary(BinaryOperatorKind.ObjectNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 647return Binary(BinaryOperatorKind.IntNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 652return Binary(BinaryOperatorKind.IntLessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right); 657return Binary(BinaryOperatorKind.IntGreaterThanOrEqual, SpecialType(CodeAnalysis.SpecialType.System_Boolean), left, right); 662return Binary(BinaryOperatorKind.IntSubtraction, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 667return Binary(BinaryOperatorKind.IntMultiplication, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right); 672return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Byte)) { WasCompilerGenerated = true }; 677return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 685return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_UInt32)) { WasCompilerGenerated = true }; 1064return new BoundLiteral(Syntax, ConstantValue.Create(value), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean)) { WasCompilerGenerated = true }; 1076return new BoundLiteral(Syntax, stringConst, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) { WasCompilerGenerated = true }; 1087return new BoundLiteral(Syntax, charConst, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Char)) { WasCompilerGenerated = true }; 1098return new BoundArrayLength(Syntax, array, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)); 1213return new BoundSizeOfOperator(Syntax, Type(type), Binder.GetConstantSizeOf(type), SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) { WasCompilerGenerated = true }; 1231SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1241SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1251SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1259SpecialType(Microsoft.CodeAnalysis.SpecialType.System_UInt64)) 1274return new BoundModuleVersionIdString(Syntax, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_String)) { WasCompilerGenerated = true }; 1286SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1298SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Int32)) 1645TypeSymbol objectType = SpecialType(CodeAnalysis.SpecialType.System_Object);
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
77F.Convert(F.SpecialType(SpecialType.System_Object), F.Parameter(parameter)));
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
72BoundExpression recordEquals = F.LogicalAnd(F.ObjectNotEqual(left, F.Null(F.SpecialType(SpecialType.System_Object))),
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
100retExpr = F.ObjectNotEqual(other, F.Null(F.SpecialType(SpecialType.System_Object)));
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
222F.Convert(F.SpecialType(SpecialType.System_Object), value))));
Symbols\Synthesized\SynthesizedThrowIfNullMethod.cs (1)
44F.Binary(BinaryOperatorKind.ObjectEqual, F.SpecialType(SpecialType.System_Boolean),