Distinguish Constants and Enum Members #28967
Replies: 3 comments 6 replies
-
@nadeeshaan +1. By a completion item kind, you mean we just need to show the completion item kind as |
Beta Was this translation helpful? Give feedback.
-
+1 for this. Is there an issue for this? If not, can you create one? |
Beta Was this translation helpful? Give feedback.
-
For this, will it be enough to be able to identify a constant symbol as being an enum member? For example, was thinking along the lines of introducing a new symbol kind, |
Beta Was this translation helpful? Give feedback.
-
In the current compiler implementation, the Enum Members are being converted to Constants. Hence, when we access the particular symbols in the semantic API as well as third party compiler API consumers such as the language server, it is necessary to distinguish the constants and the enum members. In the language server we need to assign a completion item kind for the enum members and this cannot achieved due to $subject.
@hasithaa @pubudu91 @rasika @IMS94 thoughts?
Beta Was this translation helpful? Give feedback.
All reactions