Comments (3)
We have this in our reference.md for asMemeberOf()
asMemberOf | ksClassDeclaration.typeArguments + ksClassDeclaration.asType
does this serve your purpose? It looks what you need is a type substitution for the type parameter of bar().
from ksp.
Besides using the type directly, I guess Types.asMemberOf()
is also useful on deducing the type arguments. This can be expensive potentially as it needs to resolve all the way up to the supertype that contains the member in question.
Let's make this P3 (nice to have) for now.
from ksp.
FYI I started working on this: https://github.com/yigit/ksp/tree/as-member-of based on the version in Room.
No promises on the timeline though :)
from ksp.
Related Issues (20)
- KSP2: embeddable artifacts
- KSP2: "Unresolved reference" in common code for entities annotated with SealedObjectInstances
- KSP warnings to raise a bug on Room even without Room HOT 2
- KSP 1.9.21-1.0.15 leaking memory and causing OOMs HOT 31
- KSP 1.9.21-1.0.15 leaking memory & causing OOMs for Buck HOT 1
- [KSP2] An operation is not implemented: Not yet implemented HOT 3
- KSP2: setSource method not found!
- Some strange problems occurred after using ksp, such as: resource id not found, no view found with id xxxx, or the content displayed by TextView is not normal. HOT 1
- NoClassDefFound in ksp.useKSP2=true mode HOT 1
- build fail when use kotlin 1.9.22 HOT 6
- e: java.lang.StackOverflowError when upgrade to AGP 8.2.0 and ksp HOT 1
- Class annotation values with `$` in name are `null` when used in Kotlin source HOT 1
- Unable to load class 'com.google.devtools.ksp.gradle.KspTaskJvm' HOT 1
- Issue when Compiling for iOS Kotlin Multiplatform for Latest Mvn Version 2.0.0-Beta2-1.0.16 HOT 1
- KSP2: An operation is not implemented `getPackagesWithAnnotation` HOT 1
- KSClassDeclaration.getAllProperties() does not return properties declared in primary constructor of a data class with properties declared in class body
- KSP does not read actualized typealias declaration
- Generate files that are neither source code nor resources HOT 1
- Android Studio with KSP: After changing kotlin code, the first assembleDebug task fails with compilation error, 2nd attempt always works fine but takes too long to build HOT 2
- Annotations missing on `KSTypeArgument` of `typealias` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksp.