mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Java: PrintAst: Add tests
This commit is contained in:
20
java/ql/src/semmle/code/java/PrintAst.ql
Normal file
20
java/ql/src/semmle/code/java/PrintAst.ql
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @name Print AST
|
||||
* @description Outputs a representation of the Abstract Syntax Tree.
|
||||
* @id csharp/print-ast
|
||||
* @kind graph
|
||||
*/
|
||||
|
||||
import java
|
||||
import PrintAst
|
||||
|
||||
/**
|
||||
* Temporarily tweak this class or make a copy to control which functions are
|
||||
* printed.
|
||||
*/
|
||||
class PrintAstConfigurationOverride extends PrintAstConfiguration {
|
||||
/**
|
||||
* TWEAK THIS PREDICATE AS NEEDED.
|
||||
*/
|
||||
override predicate shouldPrint(Element e, Location l) { super.shouldPrint(e, l) }
|
||||
}
|
||||
Reference in New Issue
Block a user