<h2 id="hasparent-matcher">hasParent</h2>

<div class='sourceset sourceset-common'>Common</div>

```kotlin
fun hasParent(matcher: SemanticsMatcher): SemanticsMatcher
```

Returns whether the node's parent satisfies the given matcher.

Returns false if no parent exists.