Skip to content

Commit 8ee27be

Browse files
committed
C#: Small change in the attribute elements test. We now require that the attribute should be in source code and not the attributable.
1 parent 7d1d2e7 commit 8ee27be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/test/library-tests/attributes/AttributeElements.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import csharp
33
from Attributable element, Attribute attribute
44
where
55
attribute = element.getAnAttribute() and
6-
(element.(Element).fromSource() or element.(Assembly).getName() in ["attributes", "Assembly1"])
6+
(attribute.fromSource() or element.(Assembly).getName() in ["attributes", "Assembly1"])
77
select element, attribute, attribute.getType().getQualifiedName()

0 commit comments

Comments
 (0)