Minor. Rename resolveValueArguments -> resolveAnnotationValueArguments
This commit is contained in:
+2
-2
@@ -86,7 +86,7 @@ public class ConstantExpressionEvaluator(
|
|||||||
val varargElementType = parameterDescriptor.getVarargElementType()
|
val varargElementType = parameterDescriptor.getVarargElementType()
|
||||||
val argumentsAsVararg = varargElementType != null && !hasSpread(resolvedArgument)
|
val argumentsAsVararg = varargElementType != null && !hasSpread(resolvedArgument)
|
||||||
val constantType = if (argumentsAsVararg) varargElementType else parameterDescriptor.getType()
|
val constantType = if (argumentsAsVararg) varargElementType else parameterDescriptor.getType()
|
||||||
val compileTimeConstants = resolveValueArguments(resolvedArgument, constantType!!, trace)
|
val compileTimeConstants = resolveAnnotationValueArguments(resolvedArgument, constantType!!, trace)
|
||||||
val constants = compileTimeConstants.map { it.toConstantValue(constantType) }
|
val constants = compileTimeConstants.map { it.toConstantValue(constantType) }
|
||||||
|
|
||||||
if (argumentsAsVararg) {
|
if (argumentsAsVararg) {
|
||||||
@@ -168,7 +168,7 @@ public class ConstantExpressionEvaluator(
|
|||||||
return arguments.size() == 1 && arguments.get(0).getSpreadElement() != null
|
return arguments.size() == 1 && arguments.get(0).getSpreadElement() != null
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun resolveValueArguments(
|
private fun resolveAnnotationValueArguments(
|
||||||
resolvedValueArgument: ResolvedValueArgument,
|
resolvedValueArgument: ResolvedValueArgument,
|
||||||
expectedType: JetType,
|
expectedType: JetType,
|
||||||
trace: BindingTrace): List<CompileTimeConstant<*>> {
|
trace: BindingTrace): List<CompileTimeConstant<*>> {
|
||||||
|
|||||||
Reference in New Issue
Block a user