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

Member predicate Generated::AwaitExpr::getAPrimaryQlClass

Gets the name of a primary CodeQL class to which this element belongs.

This is the most precise syntactic category to which they belong; for example, CallExpr is a primary class, but ApplyExpr is not.

There might be some corner cases when this returns multiple classes, or none.

string getAPrimaryQlClass()