We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b2f07 commit c460e57Copy full SHA for c460e57
csharp/ql/test/library-tests/csharp9-standalone/ExtractorError.expected
@@ -0,0 +1 @@
1
+| GlobalStmt.cs:13:6:13:6 | TagStack unexpectedly empty | Unexpected C# extractor error: TagStack unexpectedly empty\n |
csharp/ql/test/library-tests/csharp9-standalone/ExtractorError.ql
@@ -0,0 +1,7 @@
+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