File tree Expand file tree Collapse file tree
java/ql/test/library-tests/errortype Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ | Test.java:7:12:7:14 | nsc |
Original file line number Diff line number Diff line change 1+ import java
2+
3+ select any ( Expr e | e .getType ( ) instanceof ErrorType )
Original file line number Diff line number Diff line change 1+ Test.java:
2+ # 6| [TypeAccess] NoSuchClass
3+ # 0| [CompilationUnit] Test
4+ #-----| -1: (Imports)
5+ # 1| 1: [ImportType] import NoSuchClass
6+ # 3| 1: [Class] Test
7+ # 5| 2: [Method] test
8+ # 5| 3: [TypeAccess] NoSuchClass
9+ # 5| 5: [BlockStmt] { ... }
10+ # 6| 0: [LocalVariableDeclStmt] var ...;
11+ # 6| 0: [TypeAccess] NoSuchClass
12+ # 6| 1: [LocalVariableDeclExpr] nsc
13+ # 7| 1: [ReturnStmt] return ...
14+ # 7| 0: [VarAccess] nsc
Original file line number Diff line number Diff line change 1+ semmle/code/java/PrintAst.ql
Original file line number Diff line number Diff line change 1+ import nosuchpackage .NoSuchClass ;
2+
3+ public class Test {
4+
5+ public NoSuchClass test () {
6+ NoSuchClass nsc = new NoSuchClass ();
7+ return nsc ;
8+ }
9+
10+ }
Original file line number Diff line number Diff line change 1+ //semmle-extractor-options: --no-strict-javac-errors --javac-args -source 17 -target 17
You can’t perform that action at this time.
0 commit comments