Skip to content

Commit 1386af4

Browse files
authored
Merge pull request #960 from hvitved/csharp/cache-get-arg
C#: Cache `Call::getArgumentForParameter()`
2 parents 8302ac4 + f8bb00a commit 1386af4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • csharp/ql/src/semmle/code/csharp/exprs

csharp/ql/src/semmle/code/csharp/exprs/Call.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Call extends DotNet::Call, Expr, @call {
7676
* }
7777
* ```
7878
*/
79-
pragma[nomagic]
79+
cached
8080
override Expr getArgumentForParameter(DotNet::Parameter p) {
8181
getTarget().getAParameter() = p and
8282
(

0 commit comments

Comments
 (0)