22 references to UnsafeGetNullableMethod
Microsoft.CodeAnalysis.CSharp (22)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
918
UnsafeGetNullableMethod
(syntax, expression.Type, SpecialMember.System_Nullable_T_GetValueOrDefault));
950
UnsafeGetNullableMethod
(syntax, expression.Type, SpecialMember.System_Nullable_T_get_HasValue));
1373
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor),
1669
UnsafeGetNullableMethod
(syntax, nullableBoolType, SpecialMember.System_Nullable_T__ctor),
1854
MethodSymbol getValueOrDefaultX =
UnsafeGetNullableMethod
(syntax, boundTempX.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
1855
MethodSymbol getValueOrDefaultY =
UnsafeGetNullableMethod
(syntax, boundTempY.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
154
UnsafeGetNullableMethod
(node.Syntax, loweredReceiver.Type, SpecialMember.System_Nullable_T_get_HasValue) :
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
1066
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, rewrittenType, SpecialMember.System_Nullable_T__ctor);
1082
MethodSymbol get_Value =
UnsafeGetNullableMethod
(syntax, rewrittenOperandType, SpecialMember.System_Nullable_T_get_Value);
1180
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor),
1264
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor),
1386
MethodSymbol ctor =
UnsafeGetNullableMethod
(call.Syntax, resultType, SpecialMember.System_Nullable_T__ctor);
1437
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
257
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(rewrittenLeft.Syntax, rewrittenLeftType, SpecialMember.System_Nullable_T_GetValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (7)
205
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
356
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor);
830
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T_GetValueOrDefault);
831
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, type, SpecialMember.System_Nullable_T__ctor);
914
MethodSymbol ctor =
UnsafeGetNullableMethod
(node.Syntax, binaryOperandType, SpecialMember.System_Nullable_T__ctor);
996
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(syntax, operand.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);
997
MethodSymbol ctor =
UnsafeGetNullableMethod
(syntax, operand.Type, SpecialMember.System_Nullable_T__ctor);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
363
MethodSymbol getValueOrDefault =
UnsafeGetNullableMethod
(resourceTypeSyntax, local.Type, SpecialMember.System_Nullable_T_GetValueOrDefault);