You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Where functionDeclaration is the doSomething function decleration
functionDeclaration.parameters.map(KSValueParameter::toParameterSpec)
fun KSValueParameter.toParameterSpec(): ParameterSpec {
returnParameterSpec.builder(
name = name?.asString().orEmpty(),
type = type.toTypeName(),
).build()
}
Produced ParameterSpec will lose the annotations applied to the original function.
Expected behavior
I would expect the KSTypeReference.toTypeName to preserve annotations applied to function parameters and TypeArguments if any.
The text was updated successfully, but these errors were encountered:
Describe the bug
Consider the following function
And later in the processor
Produced ParameterSpec will lose the annotations applied to the original function.
Expected behavior
I would expect the KSTypeReference.toTypeName to preserve annotations applied to function parameters and TypeArguments if any.
The text was updated successfully, but these errors were encountered: