CodeQL library for Swift
codeql/swift-all 6.2.1-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.swift.generated.ParentChild
Element getImmediateParent(Element e)