mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
14 lines
314 B
Plaintext
14 lines
314 B
Plaintext
import rust
|
|
import TestUtils
|
|
|
|
from StmtList sl, string tail
|
|
where
|
|
toBeTested(sl) and
|
|
if sl.hasTailExpr() then tail = "hasTailExpr" else tail = ""
|
|
select sl, sl.getNumberOfStatements(), tail,
|
|
concat(int i, AstNode n |
|
|
n = sl.getStmtOrExpr(i)
|
|
|
|
|
i.toString() + ":" + n.toString(), ", " order by i
|
|
)
|