to Type Name
fun KSType.toTypeName(typeParamResolver: TypeParameterResolver = TypeParameterResolver.EMPTY): TypeName
Content copied to clipboard
Returns the TypeName representation of this KSType.
See also
Parameters
type Param Resolver
an optional resolver for enclosing declarations' type parameters. Parent declarations can be anything with generics that child nodes declare as defined by KSType.arguments.
fun KSTypeArgument.toTypeName(typeParamResolver: TypeParameterResolver = TypeParameterResolver.EMPTY): TypeName
Content copied to clipboard
Returns a TypeName representation of this KSTypeArgument.
See also
Parameters
type Param Resolver
an optional resolver for enclosing declarations' type parameters. Parent declarations can be anything with generics that child nodes declare as defined by KSType.arguments.
fun KSTypeReference.toTypeName(typeParamResolver: TypeParameterResolver = TypeParameterResolver.EMPTY): TypeName
Content copied to clipboard
Returns a TypeName representation of this KSTypeReference.
See also
Parameters
type Param Resolver
an optional resolver for enclosing declarations' type parameters. Parent declarations can be anything with generics that child nodes declare as defined by KSType.arguments.