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

Class Raw::StmtList

INTERNAL: Do not use. A list of statements in a block, with an optional tail expression at the end that determines the block’s value.

For example:

{
    let x = 1;
    let y = 2;
    x + y
}
//  ^^^^^^^^^

Import path

import codeql.rust.elements.internal.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getNumberOfAttrs

Gets the number of attrs of this statement list.

getNumberOfStatements

Gets the number of statements of this statement list.

getStatement

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

getTailExpr

Gets the tail expression of this statement list, if it exists.

toString