CodeQL library for Swift
codeql/swift-all 2.0.4-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()