diff options
author | Ting-Yuan Huang <laszio@google.com> | 2021-11-09 00:22:56 -0800 |
---|---|---|
committer | laszio <ting-yuan@users.noreply.github.com> | 2021-12-01 19:11:15 -0800 |
commit | 89446575bea4daf46e31e6cba86d77746bcb2b7b (patch) | |
tree | ea0a1acfbad25fc5a456ce39f1c171170e13d4bb /api | |
parent | bc38a6b798114ef05509070a6816941f1e81f9da (diff) | |
download | ksp-89446575bea4daf46e31e6cba86d77746bcb2b7b.tar.gz |
Introduce Resolver.getJavaWildcard
which computes the corresponding Java wildcard, from the given
reference.
Diffstat (limited to 'api')
-rw-r--r-- | api/src/main/kotlin/com/google/devtools/ksp/processing/Resolver.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/api/src/main/kotlin/com/google/devtools/ksp/processing/Resolver.kt b/api/src/main/kotlin/com/google/devtools/ksp/processing/Resolver.kt index 334da7e0..bdadbf42 100644 --- a/api/src/main/kotlin/com/google/devtools/ksp/processing/Resolver.kt +++ b/api/src/main/kotlin/com/google/devtools/ksp/processing/Resolver.kt @@ -273,4 +273,13 @@ interface Resolver { */ @KspExperimental fun effectiveJavaModifiers(declaration: KSDeclaration): Set<Modifier> + + /** + * Compute the corresponding Java wildcard, from the given reference. + * + * @param reference the reference to the type usage + * @return an equivalent type reference from the Java wildcard's point of view + */ + @KspExperimental + fun getJavaWildcard(reference: KSTypeReference): KSTypeReference } |