mirror of
https://github.com/github/codeql.git
synced 2026-06-10 07:21:12 +02:00
The output is not so interesting as the mapping removes most nodes from the current test file. I added a name_expr.swift test so at least one NameExpr makes it through.
6 lines
227 B
Plaintext
6 lines
227 B
Plaintext
import codeql.unified.Ast::Unified
|
|
|
|
query predicate nameExpr(NameExpr node, string value) { value = node.getIdentifier().getValue() }
|
|
|
|
query predicate unsupported(UnsupportedNode node, string value) { value = node.getValue() }
|