- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getConstantFromExpressionBody (0.49 sec)
-
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/permissions/permissions.kt
* * // use case code * fun useCase() { * analyse(function) { * // 'getConstantFromExpressionBody' is an imaginary function * val valueBefore = function.getConstantFromExpressionBody() // valueBefore is 0 * * changeExpressionBodyTo(1) // now function will looks like `fun foo(): Int = 1` * val valueAfter = function.getConstantFromExpressionBody() // Wrong way: valueAfter is not guarantied to be '1' * } *
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon May 27 17:22:24 UTC 2024 - 4.5K bytes - Viewed (0)