Skip to content

Commit 5f539c5

Browse files
committed
C#: Make synthetic ToString calls in string interpolation expressions.
1 parent e9beeac commit 5f539c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Expressions/InterpolatedString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected override void PopulateExpression(TextWriter trapFile)
2020
{
2121
case SyntaxKind.Interpolation:
2222
var interpolation = (InterpolationSyntax)c;
23-
Create(Context, interpolation.Expression, this, child++);
23+
ImplicitToString.Create(Context, interpolation.Expression, this, child++);
2424
break;
2525
case SyntaxKind.InterpolatedStringText:
2626
// Create a string literal

0 commit comments

Comments
 (0)