47 references to System_Nullable_T_GetValueOrDefault
Microsoft.CodeAnalysis (12)
Operations\ControlFlowGraphBuilder.cs (12)
2345condition = CallNullableMember(condition, SpecialMember.System_Nullable_T_GetValueOrDefault); 2363condition = CallNullableMember(condition, SpecialMember.System_Nullable_T_GetValueOrDefault); 2577condition = CallNullableMember(OperationCloner.CloneOperation(capturedLeft), SpecialMember.System_Nullable_T_GetValueOrDefault); 2993possiblyUnwrappedValue = TryCallNullableMember(capturedValue, SpecialMember.System_Nullable_T_GetValueOrDefault); 3169CallNullableMember(valueCapture, SpecialMember.System_Nullable_T_GetValueOrDefault))); 3308Debug.Assert(nullableMember == SpecialMember.System_Nullable_T_GetValueOrDefault || 3531receiver = CallNullableMember(receiver, SpecialMember.System_Nullable_T_GetValueOrDefault); 4826stepValue = CallNullableMember(stepValue, SpecialMember.System_Nullable_T_GetValueOrDefault); 5081PushOperand(CallNullableMember(visitLoopControlVariableReference(forceImplicit: true), SpecialMember.System_Nullable_T_GetValueOrDefault)); // Yes we are going to evaluate it again 5082limitReference = CallNullableMember(GetCaptureReference(limitValueId, operation.LimitValue), SpecialMember.System_Nullable_T_GetValueOrDefault); 5284controlVariableReferenceForIncrement = CallNullableMember(controlVariableReferenceForIncrement, SpecialMember.System_Nullable_T_GetValueOrDefault); 5285stepValueForIncrement = CallNullableMember(stepValueForIncrement, SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp (15)
CodeGen\EmitExpression.cs (1)
1975if ((object)originalMethod == this._module.Compilation.GetSpecialTypeMember(SpecialMember.System_Nullable_T_GetValueOrDefault) ||
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
220_localRewriter.TryGetNullableMethod(t.Syntax, inputType, SpecialMember.System_Nullable_T_GetValueOrDefault, out MethodSymbol getValueOrDefault))
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
883return BoundCall.Synthesized(syntax, expression, UnsafeGetNullableMethod(syntax, expression.Type, SpecialMember.System_Nullable_T_GetValueOrDefault)); 1756MethodSymbol getValueOrDefaultX = UnsafeGetNullableMethod(syntax, boundTempX.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 1757MethodSymbol getValueOrDefaultY = UnsafeGetNullableMethod(syntax, boundTempY.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
906if (IsSpecialMember(method, SpecialMember.System_Nullable_T_GetValueOrDefault) ||
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1027if (!TryGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out getValueOrDefault)) 1283MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
73SpecialMember.System_Nullable_T_GetValueOrDefault,
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
139&& TryGetNullableMethod(rewrittenLeft.Syntax, rewrittenLeft.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out MethodSymbol getValueOrDefault)) 248MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(rewrittenLeft.Syntax, rewrittenLeftType, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
199MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault); 659MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, type, SpecialMember.System_Nullable_T_GetValueOrDefault); 820MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(syntax, operand.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
362MethodSymbol getValueOrDefault = UnsafeGetNullableMethod(resourceTypeSyntax, local.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2771c1.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
CodeGen\CodeGenOperators.cs (1)
5937comp.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)
1192compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\MissingSpecialMember.cs (11)
1182compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1263compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1489compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1570compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1758compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1867compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1899compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 1971compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2070compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2169compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault); 2327compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault);
Microsoft.CodeAnalysis.VisualBasic (2)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
191Dim getValueOrDefaultMethod = GetNullableMethod(expr.Syntax, expr.Type, SpecialMember.System_Nullable_T_GetValueOrDefault)
Operations\VisualBasicOperationFactory.vb (1)
1658GetSpecialTypeMember(SpecialMember.System_Nullable_T_GetValueOrDefault), MethodSymbol)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenTests.vb (1)
3590compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)
IOperation\IOperationTests_IForLoopStatement.vb (1)
8930compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault)
IOperation\IOperationTests_ISwitchOperation.vb (1)
10683compilation.MakeMemberMissing(SpecialMember.System_Nullable_T_GetValueOrDefault)