зеркало из https://github.com/github/codeql.git
Merge pull request #714 from calumgrant/cs/event-accessors
C#: Fix extraction error when Event accessors are ordinary methods
This commit is contained in:
Коммит
4348de3120
|
@ -33,10 +33,10 @@ namespace Semmle.Extraction.CSharp.Entities
|
|||
var remover = symbol.RemoveMethod;
|
||||
|
||||
if (!(adder is null))
|
||||
EventAccessor.Create(Context, adder);
|
||||
Method.Create(Context, adder);
|
||||
|
||||
if (!(remover is null))
|
||||
EventAccessor.Create(Context, remover);
|
||||
Method.Create(Context, remover);
|
||||
|
||||
ExtractModifiers();
|
||||
BindComments();
|
||||
|
|
Загрузка…
Ссылка в новой задаче