Skip to content

Commit 461047f

Browse files
committed
C#: Address review comments.
1 parent 48455db commit 461047f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Diagnostics.CodeAnalysis;
22
using System.IO;
3-
using System.Linq;
43
using Microsoft.CodeAnalysis;
54
using Microsoft.CodeAnalysis.CSharp;
65
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -67,10 +66,7 @@ private Expression MakeZeroLiteral(IExpressionParentEntity parent, int child)
6766
/// <returns>An expression representing the endpoint of a range to be used in conjunction with a slice operation.</returns>
6867
private Expression MakeFromRangeEndpoint(ExpressionSyntax syntax, IExpressionParentEntity parent, int child)
6968
{
70-
var info = new ExpressionNodeInfo(Context, syntax, parent, child)
71-
{
72-
IsCompilerGenerated = true
73-
};
69+
var info = new ExpressionNodeInfo(Context, syntax, parent, child);
7470

7571
return syntax.Kind() == SyntaxKind.IndexExpression
7672
? PrefixUnary.Create(info.SetKind(ExprKind.INDEX))

0 commit comments

Comments
 (0)