Skip to content

Commit 8e9551d

Browse files
committed
C#: Exclude non source parameters from arguments test cases (otherwise the test reports indexer access and calls to Add for list and collection creations).
1 parent 68ca307 commit 8e9551d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import csharp
22

33
from Call call, Expr arg, Parameter param
4-
where arg = call.getArgumentForParameter(param)
4+
where
5+
arg = call.getArgumentForParameter(param) and
6+
call.getTarget().fromSource()
57
select call, arg, param
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import csharp
22

33
from Parameter param
4+
where param.getCallable().fromSource()
45
select param, param.getAnAssignedArgument()

0 commit comments

Comments
 (0)