mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
C#: Make synthetic ToString calls in string interpolation expressions.
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Semmle.Extraction.CSharp.Entities.Expressions
|
||||
{
|
||||
case SyntaxKind.Interpolation:
|
||||
var interpolation = (InterpolationSyntax)c;
|
||||
Create(Context, interpolation.Expression, this, child++);
|
||||
ImplicitToString.Create(Context, interpolation.Expression, this, child++);
|
||||
break;
|
||||
case SyntaxKind.InterpolatedStringText:
|
||||
// Create a string literal
|
||||
|
||||
Reference in New Issue
Block a user