Files
codeql/ql/examples/snippets/variable.ql
Sauyon Lee 1365da2224 examples/variable: Select declaration as well as the variable
This makes the test platform-independent
2020-02-12 10:41:58 -08:00

14 lines
225 B
Plaintext

/**
* @name Variable
* @description Finds variables called "err".
* @id go/examples/errvariable
* @tags variable
* err
*/
import go
from Variable err
where err.getName() = "err"
select err, err.getDeclaration()