mirror of
https://github.com/github/codeql.git
synced 2026-04-07 16:14:02 +02:00
patch upper-case acronyms to be PascalCase
This commit is contained in:
@@ -130,7 +130,7 @@ class AsyncCallback extends Function {
|
||||
*
|
||||
* This is the primary extension point for this query.
|
||||
*/
|
||||
abstract class LikelyExceptionThrower extends ASTNode { }
|
||||
abstract class LikelyExceptionThrower extends AstNode { }
|
||||
|
||||
/**
|
||||
* A `throw` statement.
|
||||
@@ -152,7 +152,7 @@ class CompilerConfusingExceptionThrower extends LikelyExceptionThrower {
|
||||
* - step 3. exception follows the call graph backwards until an async callee is encountered
|
||||
* - step 4. (at this point, the program crashes)
|
||||
*/
|
||||
query predicate edges(ASTNode pred, ASTNode succ) {
|
||||
query predicate edges(AstNode pred, AstNode succ) {
|
||||
exists(LikelyExceptionThrower thrower | main(_, _, _, thrower) |
|
||||
pred = thrower and
|
||||
succ = thrower.getContainer()
|
||||
@@ -174,7 +174,7 @@ query predicate edges(ASTNode pred, ASTNode succ) {
|
||||
/**
|
||||
* Holds if `node` is in the `edge/2` relation above.
|
||||
*/
|
||||
query predicate nodes(ASTNode node) {
|
||||
query predicate nodes(AstNode node) {
|
||||
edges(node, _) or
|
||||
edges(_, node)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user