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

Class Raw::LoopExpr

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

loop {
    println!("Hello, world (again)!");
};
'label: loop {
    println!("Hello, world (once)!");
    break 'label;
};
let mut x = 0;
loop {
    if x < 10 {
        x += 1;
    } else {
        break;
    }
};

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getNumberOfAttrs

Gets the number of attrs of this loop expression.

toString

Inherited predicates

getLabel

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

from LabelableExpr
getLoopBody

Gets the loop body of this looping expression, if it exists.

from LoopingExpr