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

Predicate getImmediateParent

Gets the “immediate” parent of e. “Immediate” means not taking into account node resolution: for example if e has conversions, getImmediateParent(e) will give the innermost conversion in the hidden AST.

Import path

import codeql.rust.elements.internal.generated.ParentChild
Element getImmediateParent(Element e)