mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
C#: Extract field modifiers and tag the field as being compiler generated.
This commit is contained in:
@@ -28,6 +28,9 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
var unboundFieldKey = PropertyField.Create(Context, Symbol.OriginalDefinition);
|
||||
var name = Symbol.AssociatedSymbol is not null ? $"{Symbol.AssociatedSymbol.GetName()}.field" : Symbol.Name;
|
||||
trapFile.fields(this, VariableKind.None, name, ContainingType!, Type.TypeRef, unboundFieldKey);
|
||||
trapFile.compiler_generated(this);
|
||||
|
||||
PopulateModifiers(trapFile);
|
||||
|
||||
if (Context.OnlyScaffold)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user