mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Java: PrintAst: Fix formatting
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
* @tags ide-contextual-queries/print-ast
|
||||
*/
|
||||
|
||||
import java
|
||||
import semmle.code.java.PrintAst
|
||||
import definitions
|
||||
import java
|
||||
import semmle.code.java.PrintAst
|
||||
import definitions
|
||||
|
||||
/**
|
||||
/**
|
||||
* The source file to generate an AST from.
|
||||
*/
|
||||
external string selectedSourceFile();
|
||||
@@ -25,4 +25,4 @@ class PrintAstConfigurationOverride extends PrintAstConfiguration {
|
||||
super.shouldPrint(e, l) and
|
||||
l.getFile() = getEncodedFile(selectedSourceFile())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ class Top extends @top {
|
||||
cached
|
||||
string toString() { hasName(this, result) }
|
||||
|
||||
/**
|
||||
/**
|
||||
* Gets the name of a primary CodeQL class to which this element belongs.
|
||||
*
|
||||
* For most elements, this is simply the most precise syntactic category to
|
||||
|
||||
@@ -17,4 +17,4 @@ 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