We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We use KSP to analyze all classes in module and file location for each class is crucial. However, if we try to do something like:
classDeclaration .getSealedSubclasses() .forEach { sealedClass -> sealedClass.location //or sealedClass.parentDeclaration.containingFile }
We will get NonExistLocation or null. Is it an expected behavior or could it be fixed in the future?
NonExistLocation
null
The text was updated successfully, but these errors were encountered:
Is your sealed sub classes in source code or from another module/library? Location is only available for symbols on the current compile module.
Sorry, something went wrong.
In this scenario, sealed sub classes were located in source code from current module
neetopia
Successfully merging a pull request may close this issue.
We use KSP to analyze all classes in module and file location for each class is crucial.
However, if we try to do something like:
We will get
NonExistLocation
ornull
.Is it an expected behavior or could it be fixed in the future?
The text was updated successfully, but these errors were encountered: