1 write to _compilation
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter.cs (1)
68
_compilation
= compilation;
184 references to _compilation
Microsoft.CodeAnalysis.CSharp (184)
Lowering\LocalRewriter\LocalRewriter.cs (10)
250
if (this.
_compilation
.TryGetInterceptor(nameofIdentiferSyntax) is not null)
332
if (delegateType?.IsAnonymousType == true && delegateType.ContainingModule ==
_compilation
.SourceModule &&
395
if (
_compilation
.ShouldEmitNativeIntegerAttributes())
600
symbol = (TSymbol?)Binder.GetWellKnownTypeMember(
_compilation
, member, _diagnostics, syntax: syntax, isOptional: isOptional, location: location);
611
return UnsafeGetSpecialTypeMethod(syntax, specialMember,
_compilation
, _diagnostics);
638
return TryGetSpecialTypeMethod(syntax, specialMember,
_compilation
, _diagnostics, out method, isOptional);
649
TypeSymbol.Equals(node.Type,
_compilation
.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.AllIgnoreOptions));
762
bool optimize =
_compilation
.Options.OptimizationLevel == OptimizationLevel.Release;
837
_compilation
.GetWellKnownType(WellKnownType.System_Range),
1136
return new CompoundUseSiteInfo<AssemblySymbol>(_diagnostics,
_compilation
.Assembly);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (5)
760
if (!this._localRewriter.
_compilation
.FeatureDisableLengthBasedSwitch &&
851
var compilation = _localRewriter.
_compilation
;
938
StringPatternInput.String => _localRewriter.
_compilation
.GetSpecialTypeMember(SpecialMember.System_String__Chars),
939
StringPatternInput.SpanChar => _localRewriter.
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Span_T__get_Item),
940
StringPatternInput.ReadOnlySpanChar => _localRewriter.
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__get_Item),
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (15)
646
var boolean =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
738
var conversion =
_compilation
.Conversions.ClassifyConversionFromExpression(loweredLeft, boolean, isChecked: false, ref useSiteInfo);
812
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
908
return MakeLiteral(syntax, ConstantValue.Create(value),
_compilation
.GetSpecialType(SpecialType.System_Boolean));
997
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1224
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1457
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1642
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1643
NamedTypeSymbol nullableBoolType =
_compilation
.GetOrCreateNullableType(boolType);
1834
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1896
return UnsafeGetNullableMethod(syntax, nullableType, member,
_compilation
, _diagnostics);
2013
method = (MethodSymbol)
_compilation
.Assembly.GetSpecialTypeMember(member);
2016
(object)(method = (MethodSymbol)
_compilation
.Assembly.GetSpecialTypeMember(member)) == null)
2083
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
2097
TypeSymbol objectType =
_compilation
.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_Call.cs (8)
145
if (this.
_compilation
.TryGetInterceptor(nameSyntax) is not var (attributeLocation, interceptor))
176
if (!interceptor.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(this.
_compilation
, this.
_compilation
.Conversions, includeNullability: true, attributeLocation, this._diagnostics)))
204
var symbolForCompare = needToReduce ? ReducedExtensionMethodSymbol.Create(interceptor, receiverOpt!.Type,
_compilation
, out _) : interceptor;
213
_compilation
,
453
(object)method == (object)
_compilation
.GetSpecialTypeMember(SpecialMember.System_Object__ReferenceEquals))
1413
_compilation
.GetSpecialType(SpecialType.System_Int32))),
1427
MethodSymbol? arrayEmpty =
_compilation
.GetSpecialTypeMember(SpecialMember.System_Array__Empty) as MethodSymbol;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (33)
46
if (ConversionsBase.IsSpanOrListType(
_compilation
, node.Type, WellKnownType.System_Collections_Generic_List_T, out var listElementType))
53
if (useListOptimization(
_compilation
, node))
66
if (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)
79
if (
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_ImmutableCollectionsMarshal__AsImmutableArray_T) is MethodSymbol asImmutableArray &&
190
Debug.Assert(targetEnumerableType.OriginalDefinition == (object)
_compilation
.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T));
200
var iCollectionOfTType =
_compilation
.GetSpecialType(SpecialType.System_Collections_Generic_ICollection_T);
203
conversion =
_compilation
.Conversions.ClassifyBuiltInConversion(spreadType, iCollectionOfElementType, isChecked: false, ref discardedUseSiteInfo);
210
conversion =
_compilation
.Conversions.ClassifyImplicitConversionFromType(spreadType, targetEnumerableType, ref discardedUseSiteInfo);
237
ArrayTypeSymbol.CreateSZArray(
_compilation
.Assembly, elementType),
261
Debug.Assert(spanType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(
275
Debug.Assert(!IsAllocatingRefStructCollectionExpression(node, collectionTypeKind, elementType.Type,
_compilation
));
281
if (ShouldUseInlineArray(node,
_compilation
) &&
284
Debug.Assert(!IsAllocatingRefStructCollectionExpression(node, collectionTypeKind, elementType.Type,
_compilation
));
292
Debug.Assert(IsAllocatingRefStructCollectionExpression(node, collectionTypeKind, elementType.Type,
_compilation
));
293
arrayType = ArrayTypeSymbol.CreateSZArray(
_compilation
.Assembly, elementType);
310
Debug.Assert(list.Type.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.AllIgnoreOptions));
414
arrayOrList = CreateEmptyArray(syntax, ArrayTypeSymbol.CreateSZArray(
_compilation
.Assembly, elementType));
420
? numberIncludingLastSpread == 0 && elements.Length == 1 && SynthesizedReadOnlyListTypeSymbol.CanCreateSingleElement(
_compilation
)
435
SynthesizedReadOnlyListKind.Array => CreateAndPopulateArray(node, ArrayTypeSymbol.CreateSZArray(
_compilation
.Assembly, elementType)),
466
Debug.Assert(spanType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions));
535
Debug.Assert(
_compilation
.Assembly.RuntimeSupportsInlineArrayTypes);
677
if (TypeSymbol.Equals(spreadTypeOriginalDefinition, this.
_compilation
.GetWellKnownType(wellKnownType), TypeCompareKind.AllIgnoreOptions))
706
_compilation
.GetSpecialType(SpecialType.System_Int32))),
817
if (
_compilation
.Conversions.ClassifyConversionFromType(source: arrayType.ElementType, destination:
_compilation
.GetSpecialType(SpecialType.System_Object), isChecked: false, ref useSiteInfo).IsImplicit)
830
if ((!writableOnly && namedType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.ConsiderEverything))
831
|| namedType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.ConsiderEverything))
838
&& namedType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T), TypeCompareKind.ConsiderEverything)
845
if (namedType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T), TypeCompareKind.ConsiderEverything)
925
if (spreadOperandAsSpan.Type!.OriginalDefinition.Equals(this.
_compilation
.GetWellKnownType(wellKnownSpanType))
997
setCount = ((MethodSymbol?)
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__SetCount_T))?.Construct(typeArguments);
998
asSpan = ((MethodSymbol?)
_compilation
.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__AsSpan_T))?.Construct(typeArguments);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
414
_compilation
.GetWellKnownType(WellKnownType.System_Index),
622
Debug.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)
95
Debug.Assert(
_compilation
.IsReadOnlySpanType(node.Type));
104
var byteArray = ArrayTypeSymbol.CreateSZArray(
_compilation
.Assembly, TypeWithAnnotations.Create(byteType));
601
if (spanType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions))
607
Debug.Assert(spanType.OriginalDefinition.Equals(
_compilation
.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.AllIgnoreOptions));
637
if (!_inExpressionLambda &&
_compilation
.IsReadOnlySpanType(destinationType))
702
if (Binder.TryFindAsSpanCharMethod(
_compilation
, destinationType) is not { } method)
744
if (delegateType.IsAnonymousType && delegateType.ContainingModule ==
_compilation
.SourceModule &&
789
Conversion conversion = MakeConversion(rewrittenOperand, rewrittenType, @checked: @checked,
_compilation
, _diagnostics, acceptFailingConversion);
1363
if ((rewrittenOperand.Type.IsArray()) &&
_compilation
.IsReadOnlySpanType(rewrittenType))
1491
Debug.Assert(!
_compilation
.Assembly.RuntimeSupportsNumericIntPtr);
1705
operand = RewriteDecimalConversionCore(syntax, operand, fromType, get64BitType(
_compilation
, signed: toType.SpecialType == SpecialType.System_IntPtr), isImplicit, constantValueOpt);
1715
operand = MakeConversionNode(operand, get64BitType(
_compilation
, signed: fromType.SpecialType == SpecialType.System_IntPtr), @checked);
1790
Debug.Assert(!
_compilation
.Assembly.RuntimeSupportsNumericIntPtr);
1856
var result = TryMakeConversion(syntax,
_compilation
.Conversions.ClassifyConversionFromType(fromType, toType, isChecked: @checked, ref useSiteInfo), fromType, toType, @checked: @checked);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
266
compilation:
_compilation
, shouldCheckConstraints: false, includeNullability: false, errorPositions: default, syntax: (CSharpSyntaxNode)right.Syntax, diagnostics: _diagnostics);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (12)
80
else if ((object)origDefinition == this.
_compilation
.GetWellKnownType(WellKnownType.System_Span_T))
86
else if ((object)origDefinition == this.
_compilation
.GetWellKnownType(WellKnownType.System_ReadOnlySpan_T))
294
disposeMethod = (MethodSymbol)Binder.GetWellKnownTypeMember(
_compilation
, WellKnownMember.System_IAsyncDisposable__DisposeAsync, _diagnostics, syntax: forEachSyntax);
298
return Binder.TryGetSpecialTypeMember(
_compilation
, SpecialMember.System_IDisposable__Dispose, forEachSyntax, _diagnostics, out disposeMethod);
459
type:
_compilation
.GetSpecialType(SpecialType.System_Boolean)),
477
TypeSymbol awaitExpressionType = disposeAwaitableInfoOpt.GetResult?.ReturnType ??
_compilation
.DynamicType;
612
TypeSymbol intType =
_compilation
.GetSpecialType(SpecialType.System_Int32);
613
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
913
TypeSymbol intType =
_compilation
.GetSpecialType(SpecialType.System_Int32);
914
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
1063
TypeSymbol intType =
_compilation
.GetSpecialType(SpecialType.System_Int32);
1064
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
38
if (node.InterceptableNameSyntax is { } nameSyntax && this.
_compilation
.TryGetInterceptor(nameSyntax) is var (attributeLocation, _))
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
17
NamedTypeSymbol booleanType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (10)
215
var getItemOrSliceHelper = (MethodSymbol?)
_compilation
.GetWellKnownTypeMember(node.GetItemOrSliceHelper);
229
if (TypeSymbol.Equals(node.Argument.Type,
_compilation
.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.AllIgnoreOptions))
241
Debug.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)
80
useField =
_compilation
.GetSpecialTypeMember(SpecialMember.System_Decimal__Zero);
84
useField =
_compilation
.GetSpecialTypeMember(SpecialMember.System_Decimal__One);
88
useField =
_compilation
.GetSpecialTypeMember(SpecialMember.System_Decimal__MinusOne);
100
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((int)value),
_compilation
.GetSpecialType(SpecialType.System_Int32)));
106
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((uint)value),
_compilation
.GetSpecialType(SpecialType.System_UInt32)));
112
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((long)value),
_compilation
.GetSpecialType(SpecialType.System_Int64)));
118
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((ulong)value),
_compilation
.GetSpecialType(SpecialType.System_UInt64)));
124
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(low),
_compilation
.GetSpecialType(SpecialType.System_Int32)));
125
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(mid),
_compilation
.GetSpecialType(SpecialType.System_Int32)));
126
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(high),
_compilation
.GetSpecialType(SpecialType.System_Int32)));
127
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(isNegative),
_compilation
.GetSpecialType(SpecialType.System_Boolean)));
128
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(scale),
_compilation
.GetSpecialType(SpecialType.System_Byte)));
131
var ctor = (MethodSymbol)
_compilation
.Assembly.GetSpecialTypeMember(member);
148
arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(constantValue.DateTimeValue.Ticks),
_compilation
.GetSpecialType(SpecialType.System_Int64)));
150
var ctor = (MethodSymbol)
_compilation
.Assembly.GetSpecialTypeMember(SpecialMember.System_DateTime__CtorInt64);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (3)
36
argumentType =
_compilation
.GetSpecialType(SpecialType.System_Object);
88
argumentType =
_compilation
.GetSpecialType(SpecialType.System_Object);
141
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (8)
203
if ((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)
343
method.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(
_compilation
,
_compilation
.Conversions, syntax.GetLocation(), _diagnostics));
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (4)
421
Debug.Assert(TypeSymbol.Equals(rangeArgument.Type,
_compilation
.GetWellKnownType(WellKnownType.System_Range), TypeCompareKind.ConsiderEverything));
484
if (TypeSymbol.Equals(implicitIndexer.Argument.Type,
_compilation
.GetWellKnownType(WellKnownType.System_Index), TypeCompareKind.ConsiderEverything))
667
Debug.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)
44
if (ReferenceEquals(propertySymbol,
_compilation
.GetSpecialTypeMember(SpecialMember.System_Array__Length)) ||
45
!_inExpressionLambda && ReferenceEquals(propertySymbol,
_compilation
.GetSpecialTypeMember(SpecialMember.System_Array__LongLength)))
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
143
TypeSymbol boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (2)
50
else if (TypeSymbol.Equals(type.OriginalDefinition,
_compilation
.GetWellKnownType(WellKnownType.System_Span_T), TypeCompareKind.ConsiderEverything2))
58
stackAllocNode.Syntax, elementType, stackSize, initializerOpt,
_compilation
.CreatePointerTypeSymbol(elementType));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (14)
175
if ((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))
183
if ((object)method == (object)
_compilation
.GetSpecialTypeMember(SpecialMember.System_String__ConcatStringArray))
218
if ((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))
235
case 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))
447
charType ??
_compilation
.GetSpecialType(SpecialType.System_Char))); // We will pull 'charType' from BoundCall, if it is bad an error has been already reported elsewhere
627
method.GetLeastOverriddenMember(charType) ==
_compilation
.GetSpecialTypeMember(SpecialMember.System_Object__ToString))
687
!isFieldOfMarshalByRef(expr,
_compilation
))
750
type:
_compilation
.GetSpecialType(SpecialType.System_String));
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (2)
102
var boolType =
_compilation
.GetSpecialType(SpecialType.System_Boolean);
225
var toStringAndClear = (MethodSymbol)Binder.GetWellKnownTypeMember(
_compilation
, WellKnownMember.System_Runtime_CompilerServices_DefaultInterpolatedStringHandler__ToStringAndClear, _diagnostics, syntax: syntax);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (2)
47
GenerateInstrumentation && _localRewriter.
_compilation
.Options.OptimizationLevel != OptimizationLevel.Release;
151
Conversion c = _localRewriter.
_compilation
.Conversions.ClassifyConversionFromExpression(expression, type, isChecked: false, ref discardedUseSiteInfo);
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
22
var optimizing =
_compilation
.Options.OptimizationLevel == OptimizationLevel.Release;
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
555
BoundExpression dynamicResult = _dynamicFactory.MakeDynamicBinaryOperator(single.Kind, left, right, isCompoundAssignment: false,
_compilation
.DynamicType).ToExpression();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (8)
137
_compilation
.GetSpecialType(upconvertSpecialType);
166
method = (MethodSymbol)
_compilation
.Assembly.GetSpecialTypeMember(SpecialMember.System_Decimal__op_UnaryNegation);
643
type =
_compilation
.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
739
(TypeSymbol binaryOperandType, ConstantValue constantOne) = GetConstantOneForIncrement(
_compilation
, binaryOperatorKind);
754
binaryOperandType =
_compilation
.GetOrCreateNullableType(binaryOperandType);
818
var method = (MethodSymbol)
_compilation
.Assembly.GetSpecialTypeMember(member);
963
NamedTypeSymbol type =
_compilation
.GetSpecialType(specialType);
966
type =
_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);
451
Binder.TryGetSpecialTypeMember(
_compilation
, SpecialMember.System_IDisposable__Dispose, resourceTypeSyntax, _diagnostics, out disposeMethod);
480
TypeSymbol awaitExpressionType = awaitOpt.GetResult?.ReturnType ??
_compilation
.DynamicType;