-
In the semantic API, the The following issue is one such case where the user needs access to the type def symbol: #27804 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I feel like we need this. Say we are going to use the |
Beta Was this translation helpful? Give feedback.
-
Had a discussion regarding this during the sprint meetings as well since this requirement again came up in #29287 as well and decided to go ahead and add an API to the type ref symbol to get the associated type definition symbol of the type ref. Will add the following method to public TypeDefinitionSymbol definition(); Additionally, with this change, should we consider returning |
Beta Was this translation helpful? Give feedback.
Had a discussion regarding this during the sprint meetings as well since this requirement again came up in #29287 as well and decided to go ahead and add an API to the type ref symbol to get the associated type definition symbol of the type ref. Will add the following method to
TypeReferenceTypeSymbol
:Additionally, with this change, should we consider returning
Optional.empty()
fromgetLocation()
implementation in type ref? Since the location in type ref may be misunderstood to mean the location of the usage of the type def (especially since now there will be a way to get the associated definition symbol)?