1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.cs (1)
68_compilation = compilation;
186 references to _compilation
Microsoft.CodeAnalysis.CSharp (186)
Lowering\LocalRewriter\LocalRewriter.cs (10)
250if (this._compilation.TryGetInterceptor(nameofIdentiferSyntax) is not null) 332if (delegateType?.IsAnonymousType == true && delegateType.ContainingModule == _compilation.SourceModule && 395if (_compilation.ShouldEmitNativeIntegerAttributes()) 600symbol = (TSymbol?)Binder.GetWellKnownTypeMember(_compilation, member, _diagnostics, syntax: syntax, isOptional: isOptional, location: location); 611return UnsafeGetSpecialTypeMethod(syntax, specialMember, _compilation, _diagnostics); 638return TryGetSpecialTypeMethod(syntax, specialMember, _compilation, _diagnostics, out method, isOptional); 649TypeSymbol.Equals(node.Type, _compilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.AllIgnoreOptions)); 762bool optimize = _compilation.Options.OptimizationLevel == OptimizationLevel.Release; 837_compilation.GetWellKnownType(WellKnownType.System_Range), 1136return new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics, _compilation.Assembly);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (5)
760if (!this._localRewriter._compilation.FeatureDisableLengthBasedSwitch && 851var compilation = _localRewriter._compilation; 938StringPatternInput.String => _localRewriter._compilation.GetSpecialTypeMember(SpecialMember.System_String__Chars), 939StringPatternInput.SpanChar => _localRewriter._compilation.GetWellKnownTypeMember(WellKnownMember.System_Span_T__get_Item), 940StringPatternInput.ReadOnlySpanChar => _localRewriter._compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__get_Item),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (15)
646var boolean = _compilation.GetSpecialType(SpecialType.System_Boolean); 738var conversion = _compilation.Conversions.ClassifyConversionFromExpression(loweredLeft, boolean, isChecked: false, ref useSiteInfo); 812TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 908return MakeLiteral(syntax, ConstantValue.Create(value), _compilation.GetSpecialType(SpecialType.System_Boolean)); 997TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1224TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1457TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1642TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1643NamedTypeSymbol nullableBoolType = _compilation.GetOrCreateNullableType(boolType); 1834TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1896return UnsafeGetNullableMethod(syntax, nullableType, member, _compilation, _diagnostics); 2013method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member); 2016(object)(method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member)) == null) 2083TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 2097TypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_Call.cs (8)
144if (this._compilation.TryGetInterceptor(nameSyntax) is not var (attributeLocation, interceptor)) 175if (!interceptor.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(this._compilation, this._compilation.Conversions, includeNullability: true, attributeLocation, this._diagnostics))) 203var symbolForCompare = needToReduce ? ReducedExtensionMethodSymbol.Create(interceptor, receiverOpt!.Type, _compilation, out _) : interceptor; 212_compilation, 452(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_Object__ReferenceEquals)) 1412_compilation.GetSpecialType(SpecialType.System_Int32))), 1426MethodSymbol? arrayEmpty = _compilation.GetSpecialTypeMember(SpecialMember.System_Array__Empty) as MethodSymbol;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (35)
46if (ConversionsBase.IsSpanOrListType(_compilation, node.Type, WellKnownType.System_Collections_Generic_List_T, out var listElementType)) 53if (useListOptimization(_compilation, node)) 66if (ConversionsBase.IsSpanOrListType(_compilation, node.Type, WellKnownType.System_Collections_Immutable_ImmutableArray_T, out var arrayElementType)) 70_compilation.GetWellKnownTypeMember(WellKnownMember.System_Collections_Immutable_ImmutableArray_T__Empty) is FieldSymbol immutableArrayOfTEmpty) 79if (_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_ImmutableCollectionsMarshal__AsImmutableArray_T) is MethodSymbol asImmutableArray && 193Debug.Assert(targetEnumerableType.OriginalDefinition == (object)_compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)); 203var iCollectionOfTType = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_ICollection_T); 206conversion = _compilation.Conversions.ClassifyBuiltInConversion(spreadType, iCollectionOfElementType, isChecked: false, ref discardedUseSiteInfo); 213conversion = _compilation.Conversions.ClassifyImplicitConversionFromType(spreadType, targetEnumerableType, ref discardedUseSiteInfo); 240ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType), 264Debug.Assert(spanType.OriginalDefinition.Equals(_compilation.GetWellKnownType( 278Debug.Assert(!IsAllocatingRefStructCollectionExpression(node, collectionTypeKind, elementType.Type, _compilation)); 284if (ShouldUseInlineArray(node, _compilation) && 287Debug.Assert(!IsAllocatingRefStructCollectionExpression(node, collectionTypeKind, elementType.Type, _compilation)); 295Debug.Assert(IsAllocatingRefStructCollectionExpression(node, collectionTypeKind, elementType.Type, _compilation)); 296arrayType = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType); 317Debug.Assert(list.Type.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.AllIgnoreOptions)); 421arrayOrList = CreateEmptyArray(syntax, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)); 427? numberIncludingLastSpread == 0 && elements.Length == 1 && SynthesizedReadOnlyListTypeSymbol.CanCreateSingleElement(_compilation) 442SynthesizedReadOnlyListKind.Array => createArray(node, ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, elementType)), 481Debug.Assert(spanType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions)); 550Debug.Assert(_compilation.Assembly.RuntimeSupportsInlineArrayTypes); 680if (linqToArrayMethod.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(_compilation, _compilation.Conversions, Location.None, BindingDiagnosticBag.Discarded)) 701if (TypeSymbol.Equals(spreadTypeOriginalDefinition, this._compilation.GetWellKnownType(wellKnownType), TypeCompareKind.AllIgnoreOptions)) 752_compilation.GetSpecialType(SpecialType.System_Int32))), 862if (spanOfElementType.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(_compilation, _compilation.Conversions, Location.None, BindingDiagnosticBag.Discarded))) 875if ((!writableOnly && namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.ConsiderEverything)) 876|| namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.ConsiderEverything)) 883&& namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything) 890if (namedType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.ConsiderEverything) 970if (spreadOperandAsSpan.Type!.OriginalDefinition.Equals(this._compilation.GetWellKnownType(wellKnownSpanType)) 1042setCount = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__SetCount_T))?.Construct(typeArguments); 1043asSpan = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__AsSpan_T))?.Construct(typeArguments);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
414_compilation.GetWellKnownType(WellKnownType.System_Index), 622Debug.Assert(implicitIndexerAccess.Argument.Type!.Equals(_compilation.GetWellKnownType(WellKnownType.System_Index)) 623|| implicitIndexerAccess.Argument.Type!.Equals(_compilation.GetWellKnownType(WellKnownType.System_Range)));
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (14)
95Debug.Assert(_compilation.IsReadOnlySpanType(node.Type)); 104var byteArray = ArrayTypeSymbol.CreateSZArray(_compilation.Assembly, TypeWithAnnotations.Create(byteType)); 601if (spanType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions)) 607Debug.Assert(spanType.OriginalDefinition.Equals(_compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions)); 637if (!_inExpressionLambda && _compilation.IsReadOnlySpanType(destinationType)) 702if (Binder.TryFindAsSpanCharMethod(_compilation, destinationType) is not { } method) 744if (delegateType.IsAnonymousType && delegateType.ContainingModule == _compilation.SourceModule && 789Conversion conversion = MakeConversion(rewrittenOperand, rewrittenType, @checked: @checked, _compilation, _diagnostics, acceptFailingConversion); 1363if ((rewrittenOperand.Type.IsArray()) && _compilation.IsReadOnlySpanType(rewrittenType)) 1491Debug.Assert(!_compilation.Assembly.RuntimeSupportsNumericIntPtr); 1705operand = RewriteDecimalConversionCore(syntax, operand, fromType, get64BitType(_compilation, signed: toType.SpecialType == SpecialType.System_IntPtr), isImplicit, constantValueOpt); 1715operand = MakeConversionNode(operand, get64BitType(_compilation, signed: fromType.SpecialType == SpecialType.System_IntPtr), @checked); 1790Debug.Assert(!_compilation.Assembly.RuntimeSupportsNumericIntPtr); 1856var result = TryMakeConversion(syntax, _compilation.Conversions.ClassifyConversionFromType(fromType, toType, isChecked: @checked, ref useSiteInfo), fromType, toType, @checked: @checked);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
266compilation: _compilation, shouldCheckConstraints: false, includeNullability: false, errorPositions: default, syntax: (CSharpSyntaxNode)right.Syntax, diagnostics: _diagnostics);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (12)
80else if ((object)origDefinition == this._compilation.GetWellKnownType(WellKnownType.System_Span_T)) 86else if ((object)origDefinition == this._compilation.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T)) 294disposeMethod = (MethodSymbol)Binder.GetWellKnownTypeMember(_compilation, WellKnownMember.System_IAsyncDisposable__DisposeAsync, _diagnostics, syntax: forEachSyntax); 298return Binder.TryGetSpecialTypeMember(_compilation, SpecialMember.System_IDisposable__Dispose, forEachSyntax, _diagnostics, out disposeMethod); 459type: _compilation.GetSpecialType(SpecialType.System_Boolean)), 477TypeSymbol awaitExpressionType = disposeAwaitableInfoOpt.GetResult?.ReturnType ?? _compilation.DynamicType; 612TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 613TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 913TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 914TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1063TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 1064TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
38if (node.InterceptableNameSyntax is { } nameSyntax && this._compilation.TryGetInterceptor(nameSyntax) is var (attributeLocation, _))
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
17NamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (10)
215var getItemOrSliceHelper = (MethodSymbol?)_compilation.GetWellKnownTypeMember(node.GetItemOrSliceHelper); 229if (TypeSymbol.Equals(node.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions)) 241Debug.Assert(TypeSymbol.Equals(node.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Range), TypeCompareKind.AllIgnoreOptions)); 437_compilation.GetWellKnownType(WellKnownType.System_Index), 446_compilation.GetWellKnownType(WellKnownType.System_Range), 484_compilation.GetWellKnownType(WellKnownType.System_Index), 678_compilation.GetWellKnownType(WellKnownType.System_Index), 711_compilation.GetWellKnownType(WellKnownType.System_Index), 730(object)constructor == _compilation.GetWellKnownTypeMember(WellKnownMember.System_Index__ctor) && 776_compilation.GetWellKnownType(WellKnownType.System_Range),
Lowering\LocalRewriter\LocalRewriter_Literal.cs (15)
80useField = _compilation.GetSpecialTypeMember(SpecialMember.System_Decimal__Zero); 84useField = _compilation.GetSpecialTypeMember(SpecialMember.System_Decimal__One); 88useField = _compilation.GetSpecialTypeMember(SpecialMember.System_Decimal__MinusOne); 100arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((int)value), _compilation.GetSpecialType(SpecialType.System_Int32))); 106arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((uint)value), _compilation.GetSpecialType(SpecialType.System_UInt32))); 112arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((long)value), _compilation.GetSpecialType(SpecialType.System_Int64))); 118arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((ulong)value), _compilation.GetSpecialType(SpecialType.System_UInt64))); 124arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(low), _compilation.GetSpecialType(SpecialType.System_Int32))); 125arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(mid), _compilation.GetSpecialType(SpecialType.System_Int32))); 126arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(high), _compilation.GetSpecialType(SpecialType.System_Int32))); 127arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(isNegative), _compilation.GetSpecialType(SpecialType.System_Boolean))); 128arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(scale), _compilation.GetSpecialType(SpecialType.System_Byte))); 131var ctor = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member); 148arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(constantValue.DateTimeValue.Ticks), _compilation.GetSpecialType(SpecialType.System_Int64))); 150var ctor = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(SpecialMember.System_DateTime__CtorInt64);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (3)
36argumentType = _compilation.GetSpecialType(SpecialType.System_Object); 88argumentType = _compilation.GetSpecialType(SpecialType.System_Object); 141TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (8)
203if ((object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringString) || 204(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringStringString) || 205(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringStringStringString) || 206(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatObject) || 207(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatObjectObject) || 208(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatObjectObjectObject) || 209(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringArray) || 210(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatObjectArray))
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
343method.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(_compilation, _compilation.Conversions, syntax.GetLocation(), _diagnostics));
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (4)
421Debug.Assert(TypeSymbol.Equals(rangeArgument.Type, _compilation.GetWellKnownType(WellKnownType.System_Range), TypeCompareKind.ConsiderEverything)); 484if (TypeSymbol.Equals(implicitIndexer.Argument.Type, _compilation.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.ConsiderEverything)) 667Debug.Assert(_compilation.Conversions.ClassifyConversionFromType(rewrittenReceiver.Type, memberSymbol.ContainingType, isChecked: false, ref discardedUseSiteInfo).IsImplicit || 668_compilation.Conversions.HasImplicitConversionToOrImplementsVarianceCompatibleInterface(rewrittenReceiver.Type, memberSymbol.ContainingType, ref discardedUseSiteInfo, out _));
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (2)
44if (ReferenceEquals(propertySymbol, _compilation.GetSpecialTypeMember(SpecialMember.System_Array__Length)) || 45!_inExpressionLambda && ReferenceEquals(propertySymbol, _compilation.GetSpecialTypeMember(SpecialMember.System_Array__LongLength)))
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
143TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (2)
50else if (TypeSymbol.Equals(type.OriginalDefinition, _compilation.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.ConsiderEverything2)) 58stackAllocNode.Syntax, elementType, stackSize, initializerOpt, _compilation.CreatePointerTypeSymbol(elementType));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (14)
175if ((object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringString) || 176(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringStringString) || 177(object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringStringStringString)) 183if ((object)method == (object)_compilation.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringArray)) 218if ((object)sequenceCall.Method == _compilation.GetSpecialTypeMember(SpecialMember.System_String__Concat_2ReadOnlySpans) || 219(object)sequenceCall.Method == _compilation.GetSpecialTypeMember(SpecialMember.System_String__Concat_3ReadOnlySpans) || 220(object)sequenceCall.Method == _compilation.GetSpecialTypeMember(SpecialMember.System_String__Concat_4ReadOnlySpans)) 235case BoundCall { Method: var argMethod, Arguments: [var singleArgument] } when (object)argMethod == _compilation.GetSpecialTypeMember(SpecialMember.System_String__op_Implicit_ToReadOnlySpanOfChar): 247(object)objectCreationConstructor.OriginalDefinition == _compilation.GetSpecialTypeMember(SpecialMember.System_ReadOnlySpan_T__ctor_Reference) && 435(object)potentialToStringCall.Method.GetLeastOverriddenMethod(charType) == _compilation.GetSpecialTypeMember(SpecialMember.System_Object__ToString)) 447charType ?? _compilation.GetSpecialType(SpecialType.System_Char))); // We will pull 'charType' from BoundCall, if it is bad an error has been already reported elsewhere 627method.GetLeastOverriddenMember(charType) == _compilation.GetSpecialTypeMember(SpecialMember.System_Object__ToString)) 687!isFieldOfMarshalByRef(expr, _compilation)) 750type: _compilation.GetSpecialType(SpecialType.System_String));
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (2)
102var boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 225var toStringAndClear = (MethodSymbol)Binder.GetWellKnownTypeMember(_compilation, WellKnownMember.System_Runtime_CompilerServices_DefaultInterpolatedStringHandler__ToStringAndClear, _diagnostics, syntax: syntax);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (2)
47GenerateInstrumentation && _localRewriter._compilation.Options.OptimizationLevel != OptimizationLevel.Release; 151Conversion c = _localRewriter._compilation.Conversions.ClassifyConversionFromExpression(expression, type, isChecked: false, ref discardedUseSiteInfo);
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
22var optimizing = _compilation.Options.OptimizationLevel == OptimizationLevel.Release;
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
555BoundExpression dynamicResult = _dynamicFactory.MakeDynamicBinaryOperator(single.Kind, left, right, isCompoundAssignment: false, _compilation.DynamicType).ToExpression();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (8)
137_compilation.GetSpecialType(upconvertSpecialType); 166method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(SpecialMember.System_Decimal__op_UnaryNegation); 643type = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type); 739(TypeSymbol binaryOperandType, ConstantValue constantOne) = GetConstantOneForIncrement(_compilation, binaryOperatorKind); 754binaryOperandType = _compilation.GetOrCreateNullableType(binaryOperandType); 818var method = (MethodSymbol)_compilation.Assembly.GetSpecialTypeMember(member); 963NamedTypeSymbol type = _compilation.GetSpecialType(specialType); 966type = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (6)
163_compilation.GetSpecialType(SpecialType.System_IDisposable) : 164_compilation.GetWellKnownType(WellKnownType.System_IAsyncDisposable); 239_compilation.GetSpecialType(SpecialType.System_IDisposable) : 240_compilation.GetWellKnownType(WellKnownType.System_IAsyncDisposable); 451Binder.TryGetSpecialTypeMember(_compilation, SpecialMember.System_IDisposable__Dispose, resourceTypeSyntax, _diagnostics, out disposeMethod); 480TypeSymbol awaitExpressionType = awaitOpt.GetResult?.ReturnType ?? _compilation.DynamicType;