Skip to content

Commit c3a1eb1

Browse files
committed
C#: Extract field modifiers and tag the field as being compiler generated.
1 parent d93f485 commit c3a1eb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/PropertyField.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public override void Populate(TextWriter trapFile)
2828
var unboundFieldKey = PropertyField.Create(Context, Symbol.OriginalDefinition);
2929
var name = Symbol.AssociatedSymbol is not null ? $"{Symbol.AssociatedSymbol.GetName()}.field" : Symbol.Name;
3030
trapFile.fields(this, VariableKind.None, name, ContainingType!, Type.TypeRef, unboundFieldKey);
31+
trapFile.compiler_generated(this);
32+
33+
PopulateModifiers(trapFile);
3134

3235
if (Context.OnlyScaffold)
3336
{

0 commit comments

Comments
 (0)