CodeQL library for Swift
codeql/swift-all 3.0.1-dev (changelog, source)
Search

Member predicate Impl::Pattern::getImmediateMatchingExpr

Gets the expression that this top-level pattern is matched against, if any.

For example, in switch e { case p: ... }, the pattern p is immediately matched against the expression e.

Expr getImmediateMatchingExpr()