mirror of
https://github.com/github/codeql.git
synced 2026-08-03 00:43:00 +02:00
10 lines
334 B
Plaintext
10 lines
334 B
Plaintext
import codeql.unified.Ast
|
|
|
|
query predicate identifier(Swift::SimpleIdentifier node, string name) { name = node.getValue() }
|
|
|
|
query predicate func(Swift::FunctionDeclaration node) { any() }
|
|
|
|
query predicate add(Swift::AdditiveExpression node, Swift::AstNode lhs, Swift::AstNode rhs) {
|
|
lhs = node.getLhs(0) and rhs = node.getRhs(0)
|
|
}
|