Skip to content

Commit 3fd04ff

Browse files
committed
C#: The cached entity factory ensures the creation of label and writing it to trap.
1 parent 81adf52 commit 3fd04ff

File tree

1 file changed

+1
-6
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp/Entities/Locations

1 file changed

+1
-6
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Locations/Location.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ public abstract class Location : CachedEntity<Microsoft.CodeAnalysis.Location?>
66
#nullable restore warnings
77
protected Location(Context cx, Microsoft.CodeAnalysis.Location? init)
88
: base(cx, init)
9-
{
10-
if (cx.ExtractionContext.IsStandalone)
11-
{
12-
cx.AddFreshLabel(this);
13-
}
14-
}
9+
{ }
1510

1611
protected static void WriteStarId(EscapingTextWriter writer)
1712
{

0 commit comments

Comments
 (0)