C#: Re-factor the check whether we are in standalone mode.

This commit is contained in:
Michael Nebel
2025-02-28 10:36:52 +01:00
parent 9af170f60e
commit c2b835da40
4 changed files with 5 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ namespace Semmle.Extraction.CSharp
public ExtractorMode Mode { get; }
public string OutputPath { get; }
public IEnumerable<CompilationInfo> CompilationInfos { get; }
public bool IsStandalone => Mode.HasFlag(ExtractorMode.Standalone);
/// <summary>
/// Creates a new extractor instance for one compilation unit.