Skip to content

Commit

Permalink
Merge pull request #477 from StefanMaron/development
Browse files Browse the repository at this point in the history
Bound LC0044 to BuiltInMethod only
  • Loading branch information
Arthurvdv authored Jan 3, 2024
2 parents c19bc74 + 60b39f4 commit 1ea5df0
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 1ea5df0

Please sign in to comment.