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

Class Raw::BlockExpr

INTERNAL: Do not use. A block expression. For example:

{
    let x = 42;
}
'label: {
    let x = 42;
    x
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this block expression (0-based).

getNumberOfAttrs

Gets the number of attrs of this block expression.

getStmtList

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

isAsync

Holds if this block expression is async.

isConst

Holds if this block expression is const.

isGen

Holds if this block expression is gen.

isMove

Holds if this block expression is move.

isTry

Holds if this block expression is try.

isUnsafe

Holds if this block expression is unsafe.

toString

Inherited predicates

getLabel

Gets the label of this labelable expression, if it exists.

from LabelableExpr