Merge pull request #9725 from igfoo/igfoo/inline

Kotlin: Extract inlineability of functions
This commit is contained in:
Ian Lynagh
2022-06-28 10:21:30 +01:00
committed by GitHub
6 changed files with 21 additions and 8 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
Added `Modifier.isInline()`.

View File

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