mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
27 lines
975 B
C#
27 lines
975 B
C#
using Semmle.Util.Logging;
|
|
|
|
namespace Semmle.Extraction
|
|
{
|
|
public class TracingExtractor : Extractor
|
|
{
|
|
public override ExtractorMode Mode { get; }
|
|
public string OutputPath { get; }
|
|
|
|
/// <summary>
|
|
/// Creates a new extractor instance for one compilation unit.
|
|
/// </summary>
|
|
/// <param name="outputPath">The name of the output DLL/EXE, or null if not specified (standalone extraction).</param>
|
|
/// <param name="logger">The object used for logging.</param>
|
|
/// <param name="pathTransformer">The object used for path transformations.</param>
|
|
public TracingExtractor(string outputPath, ILogger logger, PathTransformer pathTransformer, CommonOptions options) : base(logger, pathTransformer)
|
|
{
|
|
OutputPath = outputPath;
|
|
Mode = ExtractorMode.None;
|
|
if (options.QlTest)
|
|
{
|
|
Mode |= ExtractorMode.QlTest;
|
|
}
|
|
}
|
|
}
|
|
}
|