C#: Add extractor error test for global statement extraction

This commit is contained in:
Tamas Vajk
2022-06-20 09:30:16 +02:00
parent 77b2f07eff
commit c460e5757b
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1 @@
| GlobalStmt.cs:13:6:13:6 | TagStack unexpectedly empty | Unexpected C# extractor error: TagStack unexpectedly empty\n |

View File

@@ -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()