Skip to content

Commit 1aa7c3f

Browse files
committed
C#: Add test for the new lock type.
1 parent 29a0db8 commit 1aa7c3f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| statements.cs:285:13:288:13 | lock (...) {...} | statements.cs:285:19:285:28 | access to field lockObject | Lock | statements.cs:286:13:288:13 | {...} |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import csharp
2+
3+
from Method m, LockStmt ls, Expr lockExpr
4+
where
5+
ls.getEnclosingCallable() = m and
6+
m.getName() = "LockMethod" and
7+
lockExpr = ls.getExpr()
8+
select ls, lockExpr, lockExpr.getType().toString(), ls.getBlock()

0 commit comments

Comments
 (0)