Skip to content

Commit a393bff

Browse files
committed
C#: Fix bad magic Element::getLocation in context of SelfAssignment.ql
1 parent 1f3f7e9 commit a393bff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/lib/semmle/code/dotnet/Element.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Element extends @dotnet_element {
1414
string toString() { none() }
1515

1616
/** Gets the location of this element. */
17+
pragma[nomagic]
1718
Location getLocation() { none() }
1819

1920
/**

0 commit comments

Comments
 (0)