mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
600 B
C#
22 lines
600 B
C#
using System.IO;
|
|
|
|
namespace Semmle.Extraction.Entities
|
|
{
|
|
internal class ExtractionMessage : FreshEntity
|
|
{
|
|
private readonly Message msg;
|
|
|
|
public ExtractionMessage(Context cx, Message msg) : base(cx)
|
|
{
|
|
this.msg = msg;
|
|
TryPopulate();
|
|
}
|
|
|
|
protected override void Populate(TextWriter trapFile)
|
|
{
|
|
trapFile.extractor_messages(this, msg.Severity, "C# extractor", msg.Text, msg.EntityText ?? string.Empty,
|
|
msg.Location ?? Context.CreateLocation(), msg.StackTrace ?? string.Empty);
|
|
}
|
|
}
|
|
}
|