Introduce SyntheticPropertyDescriptor interface
This commit is contained in:
+3
-3
@@ -44,9 +44,9 @@ fun canBePropertyAccessor(identifier: String): Boolean {
|
|||||||
return identifier.startsWith("get") || identifier.startsWith("is") || identifier.startsWith("set")
|
return identifier.startsWith("get") || identifier.startsWith("is") || identifier.startsWith("set")
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SyntheticJavaPropertyDescriptor : PropertyDescriptor {
|
interface SyntheticJavaPropertyDescriptor : PropertyDescriptor, SyntheticPropertyDescriptor {
|
||||||
val getMethod: FunctionDescriptor
|
override val getMethod: FunctionDescriptor
|
||||||
val setMethod: FunctionDescriptor?
|
override val setMethod: FunctionDescriptor?
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun findByGetterOrSetter(getterOrSetter: FunctionDescriptor, syntheticScopes: SyntheticScopes): SyntheticJavaPropertyDescriptor? {
|
fun findByGetterOrSetter(getterOrSetter: FunctionDescriptor, syntheticScopes: SyntheticScopes): SyntheticJavaPropertyDescriptor? {
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||||
|
* that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.descriptors
|
||||||
|
|
||||||
|
interface SyntheticPropertyDescriptor {
|
||||||
|
val getMethod: FunctionDescriptor
|
||||||
|
val setMethod: FunctionDescriptor?
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user