Skip to content

Commit

Permalink
Bound to BuiltInMethod kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurvdv committed Jan 3, 2024
1 parent 4db3a57 commit 60b39f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Design/Rule0044AnalyzeTransferField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ private async void AnalyzeTransferFields(OperationAnalysisContext ctx)
if (ctx.Operation.Syntax.GetType() != typeof(InvocationExpressionSyntax))
return;

if (((IInvocationExpression)ctx.Operation).TargetMethod.MethodKind != MethodKind.BuiltInMethod)
return;

InvocationExpressionSyntax invocationExpression = (InvocationExpressionSyntax)ctx.Operation.Syntax;

Tuple<string, string>? records = GetInvokingRecordNames(invocationExpression);
Expand Down

0 comments on commit 60b39f4

Please sign in to comment.