How to know if isNullable from VariableElement? #1596
Answered
by
ZacSweers
universezy
asked this question in
Q&A
-
I got ExecutableElement from method, then I got list of VariableElement from ExecutableElement.parameters, for each VariableElement, how can I get that if the param is nullable with symbol "?" ? |
Beta Was this translation helpful? Give feedback.
Answered by
ZacSweers
Jun 9, 2023
Replies: 1 comment 9 replies
-
You would have to read the kotlin metadata from the enclosing class, find that corresponding KmFunction, and finally the KmParameter on that function. |
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
universezy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would have to read the kotlin metadata from the enclosing class, find that corresponding KmFunction, and finally the KmParameter on that function.