28 references to SpecialMember
Microsoft.CodeAnalysis (26)
Compilation\Compilation.cs (3)
984
internal abstract ISymbolInternal CommonGetSpecialTypeMember(
SpecialMember
specialMember);
3698
internal void MakeMemberMissing(
SpecialMember
member)
3708
internal bool IsMemberMissing(
SpecialMember
member)
Operations\ControlFlowGraphBuilder.cs (21)
2362
condition = CallNullableMember(condition,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
2380
condition = CallNullableMember(condition,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
2594
condition = CallNullableMember(OperationCloner.CloneOperation(capturedLeft),
SpecialMember
.System_Nullable_T_GetValueOrDefault);
3010
possiblyUnwrappedValue = TryCallNullableMember(capturedValue,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
3186
CallNullableMember(valueCapture,
SpecialMember
.System_Nullable_T_GetValueOrDefault)));
3190
CallNullableMember(OperationCloner.CloneOperation(valueCapture),
SpecialMember
.System_Nullable_T_get_HasValue),
3323
private IOperation? TryCallNullableMember(IOperation value,
SpecialMember
nullableMember)
3325
Debug.Assert(nullableMember ==
SpecialMember
.System_Nullable_T_GetValueOrDefault ||
3326
nullableMember ==
SpecialMember
.System_Nullable_T_get_HasValue ||
3327
nullableMember ==
SpecialMember
.System_Nullable_T_get_Value ||
3328
nullableMember ==
SpecialMember
.System_Nullable_T__op_Explicit_ToT ||
3329
nullableMember ==
SpecialMember
.System_Nullable_T__op_Implicit_FromT);
3353
private IOperation CallNullableMember(IOperation value,
SpecialMember
nullableMember)
3548
receiver = CallNullableMember(receiver,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
4149
resource = CallNullableMember(resource,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
4173
: (IMethodSymbol?)_compilation.CommonGetSpecialTypeMember(
SpecialMember
.System_IDisposable__Dispose)?.GetISymbol());
4923
stepValue = CallNullableMember(stepValue,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
5178
PushOperand(CallNullableMember(visitLoopControlVariableReference(forceImplicit: true),
SpecialMember
.System_Nullable_T_GetValueOrDefault)); // Yes we are going to evaluate it again
5179
limitReference = CallNullableMember(GetCaptureReference(limitValueId, operation.LimitValue),
SpecialMember
.System_Nullable_T_GetValueOrDefault);
5381
controlVariableReferenceForIncrement = CallNullableMember(controlVariableReferenceForIncrement,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
5382
stepValueForIncrement = CallNullableMember(stepValueForIncrement,
SpecialMember
.System_Nullable_T_GetValueOrDefault);
SpecialMembers.cs (2)
1318
string[] allNames = new string[(int)
SpecialMember
.Count]
1482
public static MemberDescriptor GetDescriptor(
SpecialMember
member)
Microsoft.CodeAnalysis.CSharp (2)
Lowering\LocalRewriter\LocalRewriter.cs (2)
606
/// Recommendation: Do not use, use <see cref="TryGetSpecialTypeMethod(SyntaxNode,
SpecialMember
, out MethodSymbol, bool)"/> instead!
616
/// Recommendation: Do not use, use <see cref="TryGetSpecialTypeMethod(SyntaxNode,
SpecialMember
, CSharpCompilation, BindingDiagnosticBag, out MethodSymbol, bool)"/> instead!