45 references to System_Nullable_T_GetValueOrDefault
Microsoft.CodeAnalysis (13)
Operations\ControlFlowGraphBuilder.cs (13)
2362condition = CallNullableMember(condition, SpecialMember.System_Nullable_T_GetValueOrDefault); 2380condition = CallNullableMember(condition, SpecialMember.System_Nullable_T_GetValueOrDefault); 2594condition = CallNullableMember(OperationCloner.CloneOperation(capturedLeft), SpecialMember.System_Nullable_T_GetValueOrDefault); 3010possiblyUnwrappedValue = TryCallNullableMember(capturedValue, SpecialMember.System_Nullable_T_GetValueOrDefault); 3186CallNullableMember(valueCapture, SpecialMember.System_Nullable_T_GetValueOrDefault))); 3325Debug.Assert(nullableMember == SpecialMember.System_Nullable_T_GetValueOrDefault || 3548receiver = CallNullableMember(receiver, SpecialMember.System_Nullable_T_GetValueOrDefault); 4149resource = CallNullableMember(resource, SpecialMember.System_Nullable_T_GetValueOrDefault); 4923stepValue = CallNullableMember(stepValue, SpecialMember.System_Nullable_T_GetValueOrDefault); 5178PushOperand(CallNullableMember(visitLoopControlVariableReference(forceImplicit: true), SpecialMember.System_Nullable_T_GetValueOrDefault)); // Yes we are going to evaluate it again 5179limitReference = CallNullableMember(GetCaptureReference(limitValueId, operation.LimitValue), SpecialMember.System_Nullable_T_GetValueOrDefault); 5381controlVariableReferenceForIncrement = CallNullableMember(controlVariableReferenceForIncrement, SpecialMember.System_Nullable_T_GetValueOrDefault); 5382stepValueForIncrement = CallNullableMember(stepValueForIncrement, SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp (15)
CodeGen\EmitExpression.cs (1)
2211if ((object)originalMethod == this._module.Compilation.GetSpecialTypeMember(SpecialMember.System_Nullable_T_GetValueOrDefault) ||
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
224_localRewriter.TryGetNullableMethod(t.Syntax, inputType, SpecialMember.System_Nullable_T_GetValueOrDefault, out MethodSymbol getValueOrDefault))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
918UnsafeGetNullableMethod(syntax, expression.Type, SpecialMember.System_Nullable_T_GetValueOrDefault)); 1854MethodSymbol getValueOrDefaultX = UnsafeGetNullableMethod(syntax, boundTempX.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 1855MethodSymbol getValueOrDefaultY = UnsafeGetNullableMethod(syntax, boundTempY.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
1017if (IsSpecialMember(method, SpecialMember.System_Nullable_T_GetValueOrDefault) ||
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1171if (!TryGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out getValueOrDefault)) 1437MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
86SpecialMember.System_Nullable_T_GetValueOrDefault,
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
140TryGetNullableMethod(rewrittenLeft.Syntax, rewrittenLeft.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out MethodSymbol? getValueOrDefault, isOptional: true)) 257MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(rewrittenLeft.Syntax, rewrittenLeftType, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
205MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 830MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, type, SpecialMember.System_Nullable_T_GetValueOrDefault); 996MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, operand.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
363MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(resourceTypeSyntax, local.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2772c1.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
CodeGen\CodeGenOperators.cs (3)
6084comp.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 6116comp.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 6179comp.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_ICoalesceOperation.cs (1)
1528compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
IOperation\IOperationTests_IConditionalAccessExpression.cs (1)
1131compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\MissingSpecialMember.cs (11)
1214compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1295compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1521compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1602compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1788compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1897compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1929compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2001compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2100compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2199compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2357compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);