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:
Alexander Udalov
2012-09-06 18:42:44 +04:00
parent 8a33d390a2
commit cb13995057
9 changed files with 100 additions and 17 deletions
@@ -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;
/**