mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Move location creation to instance method on context
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Semmle.Extraction.Entities
|
||||
protected override void Populate(TextWriter trapFile)
|
||||
{
|
||||
trapFile.extractor_messages(this, msg.Severity, "C# extractor", msg.Text, msg.EntityText ?? string.Empty,
|
||||
msg.Location ?? Location.Create(cx), msg.StackTrace ?? string.Empty);
|
||||
msg.Location ?? cx.CreateLocation(), msg.StackTrace ?? string.Empty);
|
||||
}
|
||||
|
||||
public override TrapStackBehaviour TrapStackBehaviour => TrapStackBehaviour.NoLabel;
|
||||
|
||||
Reference in New Issue
Block a user