mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
23 lines
522 B
C#
23 lines
522 B
C#
namespace Semmle.Extraction.CIL
|
|
{
|
|
/// <summary>
|
|
/// A tuple that is an extraction product.
|
|
/// </summary>
|
|
internal class Tuple : IExtractionProduct
|
|
{
|
|
private readonly Extraction.Tuple tuple;
|
|
|
|
public Tuple(string name, params object[] args)
|
|
{
|
|
tuple = new Extraction.Tuple(name, args);
|
|
}
|
|
|
|
public void Extract(Context cx)
|
|
{
|
|
cx.TrapWriter.Emit(tuple);
|
|
}
|
|
|
|
public override string ToString() => tuple.ToString();
|
|
}
|
|
}
|