Skip to content

Commit 2bf1300

Browse files
committed
Docs
1 parent 3c941e9 commit 2bf1300

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ReflectionAnalyzers/Helpers/Reflection/GetMethod.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ private GetMethod(InvocationExpressionSyntax invocation, IMethodSymbol target, R
2929

3030
internal IMethodSymbol? Single => this.Member.Match == FilterMatch.Single ? (IMethodSymbol)this.Member.Symbol! : null;
3131

32+
/// <summary>
33+
/// Check if <paramref name="candidate"/> is a call to Type.GetMethod.
34+
/// </summary>
3235
internal static GetMethod? Match(ExpressionSyntax candidate, SemanticModel semanticModel, CancellationToken cancellationToken)
3336
{
3437
return candidate switch
@@ -47,6 +50,9 @@ when semanticModel.TryGetSymbol(identifierName, cancellationToken, out ILocalSym
4750
};
4851
}
4952

53+
/// <summary>
54+
/// Check if <paramref name="candidate"/> is a call to Type.GetMethod.
55+
/// </summary>
5056
internal static GetMethod? Match(InvocationExpressionSyntax candidate, SemanticModel semanticModel, CancellationToken cancellationToken)
5157
{
5258
if (candidate.TryGetTarget(KnownSymbol.Type.GetMethod, semanticModel, cancellationToken, out var target) &&

0 commit comments

Comments
 (0)