10 references to TryGetNullableMethod
Microsoft.CodeAnalysis.CSharp (10)
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 (2)
1909
/// Recommendation: Do not use, use <see cref="
TryGetNullableMethod
"/> instead!
1919
/// Recommendation: Do not use, use <see cref="
TryGetNullableMethod
"/> instead!
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
1171
if (!
TryGetNullableMethod
(syntax, boundTemp.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out getValueOrDefault))
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
74
if (!
TryGetNullableMethod
(syntax, targetNullableType, SpecialMember.System_Nullable_T__ctor, out MethodSymbol nullableCtor))
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (2)
84
if (!
TryGetNullableMethod
(leftOperand.Syntax,
92
if (!
TryGetNullableMethod
(leftOperand.Syntax,
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
140
TryGetNullableMethod
(rewrittenLeft.Syntax, rewrittenLeft.Type, SpecialMember.System_Nullable_T_GetValueOrDefault, out MethodSymbol? getValueOrDefault, isOptional: true))
147
TryGetNullableMethod
(rewrittenLeft.Syntax, rewrittenLeft.Type, SpecialMember.System_Nullable_T_GetValueOrDefaultDefaultValue, out MethodSymbol? getValueOrDefaultDefaultValue, isOptional: true))
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
95
if (!
TryGetNullableMethod
(node.Syntax, node.Type, SpecialMember.System_Nullable_T__ctor, out MethodSymbol nullableCtor))