mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
C#: Small change in the attribute elements test. We now require that the attribute should be in source code and not the attributable.
This commit is contained in:
@@ -3,5 +3,5 @@ import csharp
|
||||
from Attributable element, Attribute attribute
|
||||
where
|
||||
attribute = element.getAnAttribute() and
|
||||
(element.(Element).fromSource() or element.(Assembly).getName() in ["attributes", "Assembly1"])
|
||||
(attribute.fromSource() or element.(Assembly).getName() in ["attributes", "Assembly1"])
|
||||
select element, attribute, attribute.getType().getQualifiedName()
|
||||
|
||||
Reference in New Issue
Block a user