mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
21 lines
588 B
C#
21 lines
588 B
C#
using System.IO;
|
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using Semmle.Extraction.Kinds;
|
|
|
|
namespace Semmle.Extraction.CSharp.Entities.Expressions
|
|
{
|
|
internal class Tuple : Expression<TupleExpressionSyntax>
|
|
{
|
|
public static Expression Create(ExpressionNodeInfo info) => new Tuple(info).TryPopulate();
|
|
|
|
private Tuple(ExpressionNodeInfo info) : base(info.SetKind(ExprKind.TUPLE))
|
|
{
|
|
}
|
|
|
|
protected override void PopulateExpression(TextWriter trapFile)
|
|
{
|
|
PopulateArguments(trapFile, Syntax.Arguments, 0);
|
|
}
|
|
}
|
|
}
|