Kotlin: extract suspend modifier and handle suspend SAM conversions

This commit is contained in:
Tamas Vajk
2022-09-19 13:11:49 +02:00
parent 3e58605e8e
commit a6e44ed1cf
7 changed files with 103 additions and 9 deletions

View File

@@ -67,6 +67,9 @@ abstract class Modifiable extends Element {
/** Holds if this element has an `inline` modifier. */
predicate isInline() { this.hasModifier("inline") }
/** Holds if this element has a `suspend` modifier. */
predicate isSuspend() { this.hasModifier("suspend") }
/** Holds if this element has a `volatile` modifier. */
predicate isVolatile() { this.hasModifier("volatile") }