mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02: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 unboundFieldKey = PropertyField.Create(Context, Symbol.OriginalDefinition);
|
||||||
var name = Symbol.AssociatedSymbol is not null ? $"{Symbol.AssociatedSymbol.GetName()}.field" : Symbol.Name;
|
var name = Symbol.AssociatedSymbol is not null ? $"{Symbol.AssociatedSymbol.GetName()}.field" : Symbol.Name;
|
||||||
trapFile.fields(this, VariableKind.None, name, ContainingType!, Type.TypeRef, unboundFieldKey);
|
trapFile.fields(this, VariableKind.None, name, ContainingType!, Type.TypeRef, unboundFieldKey);
|
||||||
|
trapFile.compiler_generated(this);
|
||||||
|
|
||||||
|
PopulateModifiers(trapFile);
|
||||||
|
|
||||||
if (Context.OnlyScaffold)
|
if (Context.OnlyScaffold)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user