mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
Move extraction context classes to the Semmle.Extraction.CSharp namespace
This commit is contained in:
@@ -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
|
||||
{
|
||||
@@ -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.
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Semmle.Extraction
|
||||
namespace Semmle.Extraction.CSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// The mode in which a file is extracted.
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user