Revert hack for annotations on built-ins
This reverts commit 5cae5c0338
This commit is contained in:
-31
@@ -60,37 +60,6 @@ public interface AnnotationDeserializer {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
AnnotationDeserializer EMPTY = new AnnotationDeserializer() {
|
|
||||||
@NotNull
|
|
||||||
@Override
|
|
||||||
public Annotations loadClassAnnotations(@NotNull ClassDescriptor descriptor, @NotNull ProtoBuf.Class classProto) {
|
|
||||||
return Annotations.EMPTY;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Override
|
|
||||||
public Annotations loadCallableAnnotations(
|
|
||||||
@NotNull ClassOrPackageFragmentDescriptor container,
|
|
||||||
@NotNull ProtoBuf.Callable proto,
|
|
||||||
@NotNull NameResolver nameResolver,
|
|
||||||
@NotNull AnnotatedCallableKind kind
|
|
||||||
) {
|
|
||||||
return Annotations.EMPTY;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Override
|
|
||||||
public Annotations loadValueParameterAnnotations(
|
|
||||||
@NotNull ClassOrPackageFragmentDescriptor container,
|
|
||||||
@NotNull ProtoBuf.Callable callable,
|
|
||||||
@NotNull NameResolver nameResolver,
|
|
||||||
@NotNull AnnotatedCallableKind kind,
|
|
||||||
@NotNull ProtoBuf.Callable.ValueParameter proto
|
|
||||||
) {
|
|
||||||
return Annotations.EMPTY;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
enum AnnotatedCallableKind {
|
enum AnnotatedCallableKind {
|
||||||
FUNCTION,
|
FUNCTION,
|
||||||
PROPERTY,
|
PROPERTY,
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class BuiltinsPackageFragment extends DeclarationDescriptorImpl implements Packa
|
|||||||
packageFragmentProvider = new BuiltinsPackageFragmentProvider();
|
packageFragmentProvider = new BuiltinsPackageFragmentProvider();
|
||||||
|
|
||||||
// TODO: support annotations
|
// TODO: support annotations
|
||||||
members = new DeserializedPackageMemberScope(storageManager, this, AnnotationDeserializer.EMPTY,
|
members = new DeserializedPackageMemberScope(storageManager, this, AnnotationDeserializer.UNSUPPORTED,
|
||||||
new BuiltInsDescriptorFinder(storageManager), loadPackage(), nameResolver);
|
new BuiltInsDescriptorFinder(storageManager), loadPackage(), nameResolver);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ class BuiltinsPackageFragment extends DeclarationDescriptorImpl implements Packa
|
|||||||
|
|
||||||
public BuiltInsDescriptorFinder(@NotNull StorageManager storageManager) {
|
public BuiltInsDescriptorFinder(@NotNull StorageManager storageManager) {
|
||||||
// TODO: support annotations
|
// TODO: support annotations
|
||||||
super(storageManager, AnnotationDeserializer.EMPTY, packageFragmentProvider);
|
super(storageManager, AnnotationDeserializer.UNSUPPORTED, packageFragmentProvider);
|
||||||
|
|
||||||
classNames = storageManager.createLazyValue(new Function0<Collection<Name>>() {
|
classNames = storageManager.createLazyValue(new Function0<Collection<Name>>() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user