mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
23 lines
633 B
C#
23 lines
633 B
C#
using System.IO;
|
|
|
|
namespace Semmle.Extraction.Entities
|
|
{
|
|
class ExtractionMessage : FreshEntity
|
|
{
|
|
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, msg.Location ?? GeneratedLocation.Create(cx), msg.StackTrace);
|
|
}
|
|
|
|
public override TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
|
}
|
|
}
|