Skip to content

Commit c460e57

Browse files
committed
C#: Add extractor error test for global statement extraction
1 parent 77b2f07 commit c460e57

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| GlobalStmt.cs:13:6:13:6 | TagStack unexpectedly empty | Unexpected C# extractor error: TagStack unexpectedly empty\n |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import csharp
2+
import semmle.code.csharp.commons.Diagnostics
3+
4+
from ExtractorError error
5+
where not exists(CompilerError ce | ce.getLocation().getFile() = error.getLocation().getFile())
6+
select error,
7+
"Unexpected " + error.getOrigin() + " error: " + error.getText() + "\n" + error.getStackTrace()

0 commit comments

Comments
 (0)