CodeQL library for Rust
codeql/rust-all 0.1.15-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)