Minor. Rename method
This commit is contained in:
+1
-1
@@ -350,7 +350,7 @@ public class ConstantExpressionEvaluator private (val trace: BindingTrace) : Jet
|
|||||||
if (DescriptorUtils.isAnnotationClass(classDescriptor)) {
|
if (DescriptorUtils.isAnnotationClass(classDescriptor)) {
|
||||||
val descriptor = AnnotationDescriptorImpl()
|
val descriptor = AnnotationDescriptorImpl()
|
||||||
descriptor.setAnnotationType(classDescriptor.getDefaultType())
|
descriptor.setAnnotationType(classDescriptor.getDefaultType())
|
||||||
AnnotationResolver.resolveAnnotationArgument(descriptor, call, trace)
|
AnnotationResolver.resolveAnnotationArguments(descriptor, call, trace)
|
||||||
return AnnotationValue(descriptor)
|
return AnnotationValue(descriptor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,11 +215,11 @@ public class AnnotationResolver {
|
|||||||
if (results.isSingleResult()) {
|
if (results.isSingleResult()) {
|
||||||
AnnotationDescriptorImpl annotationDescriptor = trace.getBindingContext().get(BindingContext.ANNOTATION, annotationEntry);
|
AnnotationDescriptorImpl annotationDescriptor = trace.getBindingContext().get(BindingContext.ANNOTATION, annotationEntry);
|
||||||
assert annotationDescriptor != null : "Annotation descriptor should be created before resolving arguments for " + annotationEntry.getText();
|
assert annotationDescriptor != null : "Annotation descriptor should be created before resolving arguments for " + annotationEntry.getText();
|
||||||
resolveAnnotationArgument(annotationDescriptor, results.getResultingCall(), trace);
|
resolveAnnotationArguments(annotationDescriptor, results.getResultingCall(), trace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void resolveAnnotationArgument(
|
public static void resolveAnnotationArguments(
|
||||||
@NotNull AnnotationDescriptorImpl annotationDescriptor,
|
@NotNull AnnotationDescriptorImpl annotationDescriptor,
|
||||||
@NotNull ResolvedCall<?> resolvedCall,
|
@NotNull ResolvedCall<?> resolvedCall,
|
||||||
@NotNull BindingTrace trace
|
@NotNull BindingTrace trace
|
||||||
|
|||||||
Reference in New Issue
Block a user