Move extraction context classes to the Semmle.Extraction.CSharp namespace

This commit is contained in:
Tamas Vajk
2024-11-13 14:28:04 +01:00
parent b7098b72a4
commit 46da5960ee
4 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ using System.Linq;
using Microsoft.CodeAnalysis;
using Semmle.Util.Logging;
namespace Semmle.Extraction
namespace Semmle.Extraction.CSharp
{
public class BinaryLogExtractionContext : ExtractionContext
{

View File

@@ -2,7 +2,7 @@ using System.Collections.Generic;
using Semmle.Util.Logging;
using CompilationInfo = (string key, string value);
namespace Semmle.Extraction
namespace Semmle.Extraction.CSharp
{
/// <summary>
/// Implementation of the main extractor state.

View File

@@ -1,6 +1,6 @@
using System;
namespace Semmle.Extraction
namespace Semmle.Extraction.CSharp
{
/// <summary>
/// The mode in which a file is extracted.

View File

@@ -18,7 +18,7 @@ namespace Semmle.Extraction
/// <summary>
/// Access various extraction functions, e.g. logger, trap writer.
/// </summary>
public ExtractionContext ExtractionContext { get; }
public CSharp.ExtractionContext ExtractionContext { get; }
/// <summary>
/// Access to the trap file.
@@ -190,7 +190,7 @@ namespace Semmle.Extraction
}
}
protected Context(ExtractionContext extractionContext, TrapWriter trapWriter, bool shouldAddAssemblyTrapPrefix = false)
protected Context(CSharp.ExtractionContext extractionContext, TrapWriter trapWriter, bool shouldAddAssemblyTrapPrefix = false)
{
ExtractionContext = extractionContext;
TrapWriter = trapWriter;
@@ -274,7 +274,7 @@ namespace Semmle.Extraction
bool duplicationGuard, deferred;
if (ExtractionContext.Mode is ExtractorMode.Standalone)
if (ExtractionContext.Mode is CSharp.ExtractorMode.Standalone)
{
duplicationGuard = false;
deferred = false;
@@ -408,7 +408,7 @@ namespace Semmle.Extraction
private void ReportError(InternalError error)
{
if (!ExtractionContext.Mode.HasFlag(ExtractorMode.Standalone))
if (!ExtractionContext.Mode.HasFlag(CSharp.ExtractorMode.Standalone))
throw error;
ExtractionError(error);