Skip to content

Commit

Permalink
explain special case
Browse files Browse the repository at this point in the history
  • Loading branch information
DeagleGross committed Oct 22, 2023
1 parent c61b69c commit 5c59ca7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dapper.AOT.Analyzers/Internal/Inspection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,7 @@ public static bool TryGetConstantValueWithSyntax<T>(IOperation val, out T? value

if (val is IInvocationOperation invocation)
{
// `string.Format()` special case
if (invocation.TargetMethod is {
Name: "Format",
ContainingType: { SpecialType: SpecialType.System_String },
Expand Down

0 comments on commit 5c59ca7

Please sign in to comment.