qtil
advanced-security/qtil-swift 0.0.3
Search

Member predicate Impl::Pattern::getMatchingExpr

Gets the expression that this pattern is matched against, if any. The expression and the pattern need not be top-level children of a pattern-matching construct, but they must match each other syntactically.

For example, in switch .some(e) { case let .some(p): ... }, the pattern p is matched against the expression e.

Expr getMatchingExpr()