CodeQL library for Rust
codeql/rust-all 0.2.5-dev (changelog, source)
Search

Member predicate Impl::StmtList::getStmtOrExpr

Gets the indexth statement or expression of this statement list (0-based).

This includes both the statements and any tail expression in the statement list. To access just the statements, use getStatement. To access just the tail expression, if any, use getTailExpr.

AstNode getStmtOrExpr(int index)