Skip to content

Commit 46da596

Browse files
committed
Move extraction context classes to the Semmle.Extraction.CSharp namespace
1 parent b7098b7 commit 46da596

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

csharp/extractor/Semmle.Extraction.CSharp/_Base/Extractor/BinaryLogExtractionContext.cs renamed to csharp/extractor/Semmle.Extraction.CSharp/Extractor/BinaryLogExtractionContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.CodeAnalysis;
55
using Semmle.Util.Logging;
66

7-
namespace Semmle.Extraction
7+
namespace Semmle.Extraction.CSharp
88
{
99
public class BinaryLogExtractionContext : ExtractionContext
1010
{

csharp/extractor/Semmle.Extraction.CSharp/_Base/Extractor/ExtractionContext.cs renamed to csharp/extractor/Semmle.Extraction.CSharp/Extractor/ExtractionContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Semmle.Util.Logging;
33
using CompilationInfo = (string key, string value);
44

5-
namespace Semmle.Extraction
5+
namespace Semmle.Extraction.CSharp
66
{
77
/// <summary>
88
/// Implementation of the main extractor state.

csharp/extractor/Semmle.Extraction.CSharp/_Base/Extractor/ExtractorMode.cs renamed to csharp/extractor/Semmle.Extraction.CSharp/Extractor/ExtractorMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace Semmle.Extraction
3+
namespace Semmle.Extraction.CSharp
44
{
55
/// <summary>
66
/// The mode in which a file is extracted.

csharp/extractor/Semmle.Extraction.CSharp/_Base/Context.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class Context
1818
/// <summary>
1919
/// Access various extraction functions, e.g. logger, trap writer.
2020
/// </summary>
21-
public ExtractionContext ExtractionContext { get; }
21+
public CSharp.ExtractionContext ExtractionContext { get; }
2222

2323
/// <summary>
2424
/// Access to the trap file.
@@ -190,7 +190,7 @@ public void PopulateAll()
190190
}
191191
}
192192

193-
protected Context(ExtractionContext extractionContext, TrapWriter trapWriter, bool shouldAddAssemblyTrapPrefix = false)
193+
protected Context(CSharp.ExtractionContext extractionContext, TrapWriter trapWriter, bool shouldAddAssemblyTrapPrefix = false)
194194
{
195195
ExtractionContext = extractionContext;
196196
TrapWriter = trapWriter;
@@ -274,7 +274,7 @@ private void Populate(ISymbol? optionalSymbol, CachedEntity entity)
274274

275275
bool duplicationGuard, deferred;
276276

277-
if (ExtractionContext.Mode is ExtractorMode.Standalone)
277+
if (ExtractionContext.Mode is CSharp.ExtractorMode.Standalone)
278278
{
279279
duplicationGuard = false;
280280
deferred = false;
@@ -408,7 +408,7 @@ private void ExtractionError(InternalError error)
408408

409409
private void ReportError(InternalError error)
410410
{
411-
if (!ExtractionContext.Mode.HasFlag(ExtractorMode.Standalone))
411+
if (!ExtractionContext.Mode.HasFlag(CSharp.ExtractorMode.Standalone))
412412
throw error;
413413

414414
ExtractionError(error);

0 commit comments

Comments
 (0)