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:
Michael Nebel
2022-02-01 10:58:58 +01:00
parent 7d1d2e792c
commit 8ee27be908

View File

@@ -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()