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

Class Raw::IfExpr

INTERNAL: Do not use. An if expression. For example:

if x == 42 {
    println!("that's the answer");
}
let y = if x > 0 {
    1
} else {
    0
};

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getCondition

Gets the condition of this if expression, if it exists.

getElse

Gets the else of this if expression, if it exists.

getNumberOfAttrs

Gets the number of attrs of this if expression.

getThen

Gets the then of this if expression, if it exists.

toString