Skip to content

Commit 2a30dee

Browse files
authored
Merge pull request #621 from calumgrant/cs/invalid-key
C#: Fix [INVALID_KEY] error
2 parents 9e73ed7 + 919d7cb commit 2a30dee

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

csharp/ql/test/library-tests/extractor/tagstack/A.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
class C
44
{
5-
E M1() { M2(); M2(); return null; }
5+
object M1() { M2(); M2(); return null; }
66
void M2() { }
77
}
8-
9-
class E
10-
{
11-
}

csharp/ql/test/library-tests/extractor/tagstack/B.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
class C
44
{
5-
D M1() { M3(); return null; }
5+
object M1() { M3(); return null; }
66
void M3() { }
77
}
8-
9-
class D
10-
{
11-
}

csharp/ql/test/library-tests/extractor/tagstack/Bodies.expected

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import csharp
2+
3+
from Method m
4+
where strictcount(m.getBody()) > 1
5+
select m, "This method has multiple bodies."
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
| A.cs:3:7:3:7 | C |
2-
| A.cs:9:7:9:7 | E |
3-
| B.cs:9:7:9:7 | D |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| A.cs:5:7:5:8 | M1 |
1+
| A.cs:5:12:5:13 | M1 |
22
| A.cs:6:10:6:11 | M2 |

0 commit comments

Comments
 (0)