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.RawPredicates
| getAttr | Gets the |
| 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 |