22 references to UnsafeGetNullableMethod
Microsoft.CodeAnalysis.CSharp (22)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
883
return BoundCall.Synthesized(syntax, expression,
UnsafeGetNullableMethod
(syntax, expression.Type, SpecialMember.System_Nullable_T_GetValueOrDefault));
911
return BoundCall.Synthesized(syntax, expression,
UnsafeGetNullableMethod
(syntax, expression.Type, SpecialMember.System_Nullable_T_get_HasValue));
1274
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor),
1571
UnsafeGetNullableMethod
(syntax, nullableBoolType, SpecialMember.System_Nullable_T__ctor),
1756
MethodSymbol getValueOrDefaultX =
UnsafeGetNullableMethod
(syntax, boundTempX.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
1757
MethodSymbol getValueOrDefaultY =
UnsafeGetNullableMethod
(syntax, boundTempY.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
155
UnsafeGetNullableMethod
(node.Syntax, loweredReceiver.Type, SpecialMember.System_Nullable_T_get_HasValue) :
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
922
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, rewrittenType, SpecialMember.System_Nullable_T__ctor);
938
MethodSymbol get_Value =
UnsafeGetNullableMethod
(syntax, rewrittenOperandType, SpecialMember.System_Nullable_T_get_Value);
1036
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor),
1115
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor),
1232
MethodSymbol ctor =
UnsafeGetNullableMethod
(call.Syntax, resultType, SpecialMember.System_Nullable_T__ctor);
1283
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
248
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(rewrittenLeft.Syntax, rewrittenLeftType, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (7)
199
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
350
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor);
659
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T_GetValueOrDefault);
660
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor);
738
MethodSymbol ctor =
UnsafeGetNullableMethod
(node.Syntax, binaryOperandType, SpecialMember.System_Nullable_T__ctor);
820
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, operand.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
821
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, operand.Type, SpecialMember.System_Nullable_T__ctor);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
362
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(resourceTypeSyntax, local.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);