Skip to content

Commit 39e3254

Browse files
authored
Merge pull request #7182 from hvitved/csharp/self-assignment-bad-magic
C#: Fix bad magic `Element::fromSource` in context of `SelfAssignment.ql`
2 parents 9f08aca + a393bff commit 39e3254

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)