C#: Extraction of ref modifier for fields.

This commit is contained in:
Michael Nebel
2023-01-26 10:07:28 +01:00
parent f192191e8c
commit 3a4ec90ae9
2 changed files with 7 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ namespace Semmle.Extraction.CSharp.Entities
PopulateAttributes();
ContainingType!.PopulateGenerics();
PopulateNullability(trapFile, Symbol.GetAnnotatedType());
PopulateRefKind(trapFile, Symbol.RefKind);
var unboundFieldKey = Field.Create(Context, Symbol.OriginalDefinition);
trapFile.fields(this, (Symbol.IsConst ? 2 : 1), Symbol.Name, ContainingType, Type.TypeRef, unboundFieldKey);