Write callable member's kind to JetMethod annotation
Reuse deprecated kind() parameter in JetMethod annotation to store CallableMemberDescriptor.Kind if it's not DECLARATION. JavaDescriptorResolver doesn't always resolve members to DECLARATION anymore, instead it deserializes member's kind from the annotation. Create DescriptorKindUtils to convert Kind to int value and back.
This commit is contained in:
@@ -34,9 +34,9 @@ import java.lang.annotation.Target;
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface JetMethod {
|
||||
/**
|
||||
* @deprecated use flags instead
|
||||
* See CallableMemberDescriptor.Kind
|
||||
* @return kind of this method
|
||||
*/
|
||||
@Deprecated
|
||||
int kind() default 0;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user