mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
C#: Add extractor error test for global statement extraction
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| GlobalStmt.cs:13:6:13:6 | TagStack unexpectedly empty | Unexpected C# extractor error: TagStack unexpectedly empty\n |
|
||||
@@ -0,0 +1,7 @@
|
||||
import csharp
|
||||
import semmle.code.csharp.commons.Diagnostics
|
||||
|
||||
from ExtractorError error
|
||||
where not exists(CompilerError ce | ce.getLocation().getFile() = error.getLocation().getFile())
|
||||
select error,
|
||||
"Unexpected " + error.getOrigin() + " error: " + error.getText() + "\n" + error.getStackTrace()
|
||||
Reference in New Issue
Block a user